/* ===== VARIABLES ===== */
:root {
    --paper:          #ffffff;
    --paper-light:    #fdfafe;
    --terracotta:     #8b6fb0;   /* viola elegante */
    --terracotta-mid: #7a5ea0;
    --terracotta-dark:#561840;   /* borgogna/vino scuro */
    --rose:           #c4a8dc;   /* lavanda */
    --rose-light:     #e8d5f5;   /* lavanda chiara */
    --sage:           #7a9a6e;
    --text:           #3d1a2e;   /* testo scuro vino */
    --text-light:     #8b6880;   /* testo più chiaro */
    --font-serif:     'Playfair Display', serif;
    --font-script:    'Parisienne', cursive;
    --font-sans:      'Montserrat', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); background: var(--paper); font-weight: 300; line-height: 1.7; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.1rem 2.5rem;
    background: transparent;
    transition: background .4s, backdrop-filter .4s;
}
.navbar.scrolled {
    background: rgba(22, 22, 16, .78);
    backdrop-filter: blur(10px);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 1rem;
}
.nav-links { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
.nav-links-left  { justify-content: flex-end; }
.nav-links-right { justify-content: flex-start; }
.nav-links a {
    text-decoration: none; font-size: .72rem; letter-spacing: .15em;
    text-transform: uppercase; color: rgba(255,255,255,.82);
    transition: color .2s;
}
.nav-links a:hover { color: var(--rose-light); }
.nav-monogram { display: block; transition: opacity .2s; text-decoration: none; }

/* ===== MOBILE NAV TOGGLE ===== */
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer;
    position: absolute; top: 50%; right: 1.5rem; transform: translateY(-50%);
    z-index: 210;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links-mobile {
    display: none; list-style: none; position: fixed; top: 0; right: 0;
    width: min(75vw, 320px); height: 100vh;
    background: rgba(22,22,16,.97); backdrop-filter: blur(10px);
    flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    transform: translateX(100%); transition: transform .3s ease; z-index: 205;
}
.nav-links-mobile.open { transform: translateX(0); }
.nav-links-mobile a {
    text-decoration: none; font-size: .95rem; letter-spacing: .15em;
    text-transform: uppercase; color: rgba(255,255,255,.9);
}
.nav-links-mobile .nav-mobile-highlight { color: var(--rose-light); font-weight: 600; }
.nav-monogram:hover { opacity: .75; }

.monogram-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(12px); /* Sposta l'elemento più in basso */
}
.monogram-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    background-color: var(--terracotta);
    -webkit-mask-image: url('https://hellloexpert.com/tf/html/lavelo/img/section/3.png');
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('https://hellloexpert.com/tf/html/lavelo/img/section/3.png');
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
}
.monogram-text {
    position: relative; z-index: 1;
    font-family: var(--font-serif); font-size: 19px; font-style: italic;
    color: var(--terracotta); letter-spacing: 1px; margin-left: 2px;
}

/* ===== FLASH MESSAGES ===== */
.flash-container { position: fixed; top: 5rem; left: 50%; transform: translateX(-50%); z-index: 200; width: 90%; max-width: 500px; }
.flash { padding: 1rem 1.5rem; border-radius: 8px; margin-bottom: .5rem; font-size: .95rem; text-align: center; animation: slideDown .3s ease; }
.flash-success { background: #f3e8e0; color: var(--terracotta-dark); border: 1px solid var(--rose); }
.flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-info    { background: #fdf3e8; color: var(--text-light); border: 1px solid var(--rose-light); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh; min-height: 640px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden;
    background-color: #2a2e1e;
}
.hero-slides {
    position: absolute; inset: 0; z-index: 0;
}
.slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s linear;
    transform: scale(1.05); /* Effetto zoom lento in stile Lavelo */
}
.slide.active {
    opacity: 1;
    transform: scale(1);
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: rgba(12, 14, 8, .65); /* Scurito dal 45% al 65% per maggior leggibilità */
}
.hero-content {
    position: relative; z-index: 2;
    color: white; padding: 2rem;
    display: flex; flex-direction: column; align-items: center;
}
.hero-pre {
    font-family: var(--font-serif); font-size: .82rem;
    letter-spacing: .35em; text-transform: uppercase;
    color: rgba(255,255,255,.8); margin-bottom: .6rem;
}
.hero-heart {
    font-family: var(--font-sans); font-size: 0.7em;
    color: var(--terracotta); display: inline-block; margin: 0 0.3rem;
    animation: pulseHeart 2s infinite;
}
@keyframes pulseHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.hero-script {
    font-family: var(--font-script);
    font-size: clamp(4.5rem, 11vw, 9.5rem);
    color: white; line-height: 1.2;
    text-shadow: 0 2px 40px rgba(0,0,0,.35);
    margin-bottom: 1.6rem;
}
.hero-line { width: 50px; height: 1px; background: rgba(255,255,255,.4); margin-bottom: 1.6rem; }
.hero-monogram {
    font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
    letter-spacing: .4em; color: var(--terracotta);
    text-transform: uppercase; margin-bottom: 1.4rem;
}
.hero-monogram span { font-weight: 300; opacity: .6; }

.hero-name {
    font-family: 'Cormorant Garamond', var(--font-serif);
    font-size: clamp(3.2rem, 8vw, 5.5rem);
    font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
    color: white; line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-surname {
    font-family: var(--font-script); font-size: clamp(2rem, 5vw, 3.2rem);
    color: rgba(255,255,255,.92); line-height: 1.2; margin-bottom: .4rem;
    text-shadow: 0 2px 15px rgba(0,0,0,.35);
}
.hero-e {
    font-family: var(--font-serif); font-style: italic; font-size: 1rem;
    color: rgba(255,255,255,.7); letter-spacing: .08em;
    margin: .5rem 0;
}
.hero-subtitle {
    font-family: var(--font-sans); font-size: .68rem;
    letter-spacing: .3em; text-transform: uppercase;
    color: rgba(255,255,255,.75); margin: .8rem 0 1.2rem;
    line-height: 2;
}

.hero-line { width: 50px; height: 1px; background: var(--rose); margin: 1.4rem auto; }

.hero-date-block {
    display: flex; align-items: baseline; justify-content: center; gap: 1rem;
    margin-bottom: .4rem;
}
.hero-day  { font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 300; color: white; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-month-year { text-align: left; }
.hero-month { display: block; font-family: var(--font-serif); font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: white; }
.hero-year  { display: block; font-family: var(--font-serif); font-size: .85rem; letter-spacing: .15em; color: rgba(255,255,255,.7); }
.hero-time  { font-family: var(--font-serif); font-size: 1rem; letter-spacing: .18em; color: rgba(255,255,255,.8); margin-bottom: 1.6rem; }

.hero-venue {
    font-family: var(--font-sans); font-size: .78rem; letter-spacing: .15em;
    text-transform: uppercase; color: var(--terracotta);
    margin-bottom: 2rem; line-height: 1.8;
}

.hero-date-location {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    font-weight: 400;
}

/* Countdown */
.countdown-wrapper {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: rgba(22, 22, 16, 0.78);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    z-index: 3;
}
.countdown { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin: 0; }
.countdown-item { display: flex; flex-direction: column; align-items: center; min-width: 62px; }
.countdown-num { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; color: white; font-weight: 300; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.countdown-label { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: .3rem; }
.countdown-sep { font-size: 1.2rem; color: rgba(255,255,255,.3); align-self: flex-start; margin-top: .3rem; }

.btn-hero {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--terracotta);
    border: 1px solid var(--terracotta);
    color: white;
    text-decoration: none;
    font-family: var(--font-sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
    transition: background .25s, border-color .25s, transform .2s;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.btn-hero:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); transform: translateY(-2px); }

/* ===== SECTIONS ===== */
.section { padding: 6rem 2rem; }
.section-light { background: var(--paper-light); }
.section-warm  { background: var(--paper); }
.section-rsvp  { background: var(--terracotta-dark); color: white; position: relative; }
.container { max-width: 860px; margin: 0 auto; }

.section-label {
    display: block; font-family: var(--font-sans); font-size: .72rem;
    letter-spacing: .3em; text-transform: uppercase;
    color: var(--terracotta); margin-bottom: .5rem;
}
.section-rsvp .section-label { color: var(--terracotta); }
.section-title {
    font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400; line-height: 1.15; margin-bottom: .8rem;
    color: var(--terracotta-dark);
}
.section-rsvp .section-title { color: var(--terracotta-dark); }

.divider { width: 50px; height: 1px; background: var(--rose); margin-bottom: 2.5rem; }
.divider-light { background: rgba(255,255,255,.3); }

/* section ornament */
.section-ornament {
    font-family: var(--font-script); font-size: 1.6rem;
    color: var(--rose); opacity: .7; display: block; margin-bottom: .3rem;
}

/* ornamento floreale stile partecipazione */
.floral-divider {
    display: flex; align-items: center; justify-content: center;
    gap: .8rem; margin: 1.5rem 0;
}
.floral-divider::before,
.floral-divider::after {
    content: ''; flex: 1; max-width: 80px;
    height: 1px; background: var(--rose);
}
.floral-divider span {
    color: var(--terracotta); font-size: 1.1rem; opacity: .8;
}

/* pipe monogramma hero */
.hero-pipe {
    font-family: var(--font-serif); font-weight: 200;
    opacity: .5; margin: 0 .6rem;
}

/* ===== PARALLAX ===== */
.section-parallax {
    position: relative;
    /* Immagine di sfondo temporanea, sostituiscila con una tua foto! */
    background-image: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?q=80&w=2000&auto=format&fit=crop');
    background-attachment: fixed; /* È questo che tiene ferma l'immagine! */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
}
.section-parallax::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(74, 51, 40, 0.4); /* Scurisce leggermente per far leggere il testo */
    backdrop-filter: blur(3px); /* Effetto sfocato */
    z-index: 1;
}
.parallax-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.parallax-quote {
    font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.5rem);
    font-style: italic; font-weight: 300; line-height: 1.4;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ===== HAPPY COUPLE ===== */
.couple-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: start;
}
@media (max-width: 768px) { .couple-grid { grid-template-columns: 1fr; gap: 3rem; } }
.couple-card { text-align: center; }
.couple-img {
    width: 100%; max-width: 320px; margin: 0 auto 1.5rem;
    position: relative;
}
.couple-img::before {
    content: ''; position: absolute; inset: -12px;
    border: 1px solid var(--rose); border-radius: 12px;
    z-index: 0;
}
.couple-img img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
    border-radius: 8px; position: relative; z-index: 1;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.couple-name {
    font-family: var(--font-script); font-size: 3.5rem;
    color: var(--terracotta-dark); line-height: 1; margin-bottom: .2rem;
}
.couple-role {
    font-family: var(--font-sans); font-size: .75rem;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--terracotta); margin-bottom: 1rem;
}
.couple-bio { color: var(--text-light); font-size: .95rem; line-height: 1.8; max-width: 280px; margin: 0 auto; }

/* ===== STORIA ===== */
.story-timeline {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 2rem;
}
.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed var(--rose);
    transform: translateX(-50%);
}
.story-top, .story-bottom {
    position: absolute;
    left: 50%;
    width: 14px;
    height: 14px;
    background: var(--terracotta);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.story-top { top: -7px; }
.story-bottom { bottom: -7px; }
.story-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    width: 100%;
}
.story-item:nth-child(even) { flex-direction: row-reverse; }
.story-content { width: 42%; text-align: right; }
.story-item:nth-child(even) .story-content { text-align: left; }

.story-date {
    font-family: var(--font-script);
    font-size: 2.8rem;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: .5rem;
}
.story-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--terracotta-dark);
    margin-bottom: 1rem;
    font-weight: 400;
}
.story-content p { color: var(--text-light); font-size: 1rem; line-height: 1.8; text-align: justify; }

.story-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--paper-light);
    border: 1px solid var(--terracotta);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center; z-index: 1;
}
.story-center-inner {
    width: 12px; height: 12px;
    background: var(--terracotta); border-radius: 50%;
}
.story-image { 
    width: 42%;
    position: relative;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,.06);
}
/* Freccia che punta a sinistra (per le immagini a destra) */
.story-item:nth-child(odd) .story-image::before {
    content: ''; position: absolute; top: 50%; left: -12px; transform: translateY(-50%);
    border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-right: 12px solid white;
}
/* Freccia che punta a destra (per le immagini a sinistra) */
.story-item:nth-child(even) .story-image::before {
    content: ''; position: absolute; top: 50%; right: -12px; transform: translateY(-50%);
    border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 12px solid white;
}
.story-image img {
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

/* ===== WHEN & WHERE (PROGRAMMA) ===== */
.ceremony-wrap {
    margin-bottom: 5rem;
}
.ceremony-wrap:last-child {
    margin-bottom: 0;
}
.ceremony-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 -15px;
}
.ceremony-row.row-reverse {
    flex-direction: row-reverse;
}
.ceremony-col-img {
    width: 41.66%;
    padding: 0 15px;
}
.ceremony-col-text {
    width: 58.33%;
    padding: 0 15px;
}
.ceremony-img img {
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.ceremony-content {
    text-align: left;
    padding: 0 2rem;
}
.ceremony-content h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--terracotta-dark);
    margin-bottom: 0.8rem;
    font-weight: 400;
}
.ceremony-meta {
    display: block;
    font-family: var(--font-sans);
    color: var(--terracotta);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.ceremony-meta:nth-of-type(2) {
    color: var(--text-light);
    margin-bottom: 1.2rem;
}
.ceremony-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .ceremony-col-img, .ceremony-col-text { width: 100%; }
    .ceremony-row { flex-direction: column !important; gap: 2rem; }
    .ceremony-content { padding: 0; text-align: center; }
}

/* ===== LOCATION ===== */
.location-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: start; }
@media (max-width: 680px) { .location-grid { grid-template-columns: 1fr; } }
.location-card { background: var(--paper); border: 1px solid var(--rose-light); padding: 2rem; border-radius: 4px; }
.section-light .location-card { background: var(--paper-light); }
.location-icon { font-size: 2rem; margin-bottom: 1rem; }
.location-card h3 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--terracotta-dark); margin-bottom: .2rem; }
.location-sub { font-family: var(--font-serif); font-style: italic; font-size: .9rem; color: var(--text-light); margin-bottom: .8rem; }
.location-card p { color: var(--text-light); font-size: .95rem; line-height: 1.7; margin-bottom: 1.2rem; }
.btn-outline {
    display: inline-block; padding: .5rem 1.3rem;
    border: 1px solid var(--terracotta); color: var(--terracotta);
    text-decoration: none; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
    transition: background .25s, color .25s;
}
.btn-outline:hover { background: var(--terracotta); color: white; }
.location-map { border-radius: 4px; overflow: hidden; box-shadow: 0 4px 24px rgba(120,53,24,.1); }
.location-map iframe { display: block; }

/* ===== IBAN ===== */
.iban-box {
    margin-top: 3rem; padding: 2rem;
    border: 1px dashed var(--rose);
    background: var(--paper);
    border-radius: 8px;
    text-align: center;
}
.iban-box p { font-size: .85rem; letter-spacing: .05em; color: var(--text-light); margin-bottom: .5rem; line-height: 1.8; }
.iban-code {
    font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: .08em;
    color: var(--terracotta-dark); margin: .5rem 0; font-weight: 600;
}
.iban-intestato { font-size: .8rem; color: var(--text-light); letter-spacing: .05em; }

/* ===== RSVP FORM ===== */
.section-rsvp {
    position: relative;
    background-image: url('../img/spiaggia.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 8rem 2rem;
}
.section-rsvp::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(30, 10, 35, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1;
}
.section-rsvp .container { position: relative; z-index: 2; }
.rsvp-box {
    background: var(--paper-light); padding: 4rem 3rem; border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); max-width: 760px; margin: 0 auto;
}
@media (max-width: 600px) { .rsvp-box { padding: 3rem 1.5rem; } }
.rsvp-intro { color: var(--text-light); margin-bottom: 2.5rem; font-size: 1rem; }
.rsvp-form { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.form-group-full { grid-column: 1 / -1; }
.form-group label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-dark); font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
    background: white;
    border: 1px solid var(--rose);
    color: var(--text); padding: .75rem 1rem;
    font-family: var(--font-sans); font-size: .95rem;
    outline: none; transition: border-color .25s, box-shadow .25s; border-radius: 4px;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #ccc; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(242, 122, 77, 0.1);
}
.form-group select option { background: white; color: var(--text); }
.form-group textarea { resize: vertical; }
.required { color: var(--terracotta); }

.radio-group { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: .4rem; }
.radio-label { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .95rem; color: var(--text); }
.radio-label input[type="radio"] { accent-color: var(--terracotta); width: 16px; height: 16px; }

.btn-submit {
    width: 100%; padding: 1rem;
    background: var(--terracotta); color: white;
    border: 1px solid var(--terracotta);
    font-family: var(--font-sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
    cursor: pointer; transition: background .25s, border-color .25s; margin-top: 1rem; border-radius: 4px; font-weight: 600;
}
.btn-submit:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }

/* ===== FOOTER ===== */
footer {
    text-align: center; padding: 2rem;
    background: #2a0a28; color: rgba(255,255,255,.35);
    font-size: .78rem; letter-spacing: .1em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-inner { grid-template-columns: 1fr; justify-items: center; }
    .nav-toggle { display: flex; }
    .nav-links-mobile { display: flex; }
    /* Rende la storia leggibile anche su mobile spostando la linea a sinistra */
    .story-timeline::before { left: 24px; }
    .story-top, .story-bottom { left: 24px; }
    .story-item { flex-direction: column !important; align-items: flex-end; margin-bottom: 3rem; }
    .story-icon { left: 24px; top: 50%; }
    .story-content, .story-image {
        width: calc(100% - 65px); margin-bottom: 1.5rem;
    }
    /* Su mobile le frecce puntano tutte a sinistra verso la linea */
    .story-item:nth-child(even) .story-content::after,
    .story-item:nth-child(odd) .story-content::after {
        left: -12px; right: auto; top: 50%;
        border-left: none; border-right: 12px solid white;
    }
}
