/* === Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    font-family: Georgia, 'Times New Roman', serif;
}

/* === Layout base === */
body {
    background-color: #2a0a12;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* La .stage è un contenitore flex verticale: header / main / footer.
   Header e footer scorrono normalmente con la pagina. */
.stage {
    position: relative;
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    background-color: #800020;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

/* === Header e footer floreali === */
.site-header,
.site-footer {
    width: 100%;
    user-select: none;
}

/* margin-top: auto sul footer → su pagine con poco contenuto
   il footer va comunque in fondo allo stage (100vh) */
.site-footer {
    margin-top: auto;
}

.site-header img,
.site-footer img {
    display: block;
    width: 100%;
    height: auto;
}

/* === Contenuto === */
.content {
    padding: 2rem 1.5rem;
    text-align: center;
}

/* Variante per la home: contenuto centrato verticalmente nello spazio disponibile */
.content.center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === Tipografia === */
.eyebrow {
    color: #d8bd7a;
    font-size: clamp(1.1rem, 3.2vw, 1.4rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

h1 {
    font-size: clamp(1.9rem, 6vw, 2.7rem);
    color: #f5ecd9;
    margin-bottom: 0.8rem;
    font-weight: normal;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.subtitle {
    color: #f5ecd9;
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin: 0 auto 2.2rem;
    line-height: 1.5;
    max-width: 420px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.intro {
    color: #f5ecd9;
    font-size: 1rem;
    line-height: 1.55;
    max-width: 460px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.note {
    margin: 2rem auto 0;
    max-width: 390px;
    color: rgba(245, 236, 217, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* === Card achievement === */
.card {
    background-color: rgba(245, 236, 217, 0.94);
    color: #3a2a1a;
    border: 2px solid #c9a961;
    border-radius: 6px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    text-align: left;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.card h2 {
    font-size: 1.15rem;
    font-weight: normal;
    color: #800020;
    margin-bottom: 0.4rem;
}

.card p {
    font-size: 0.98rem;
    line-height: 1.45;
}

/* === Lista regole === */
.rules {
    margin: 1.5rem 0 2rem;
    padding-left: 1.2rem;
    color: #f5ecd9;
    text-align: left;
    line-height: 1.55;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.rules li {
    margin-bottom: 0.6rem;
}

/* === Gruppo bottoni in colonna === */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

/* === Bottone === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: #3a2a1a;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #c9a961;
    border-radius: 4px;
    text-decoration: none;
    font-family: Georgia, serif;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn:hover {
    background-color: #c9a961;
    color: #fff;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.6);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: rgba(128, 0, 32, 0.65);
    color: #f5ecd9;
}

.btn-secondary:hover {
    background-color: #c9a961;
    color: #fff;
}
