/* ============================================================
   RUOTA DELLA FORTUNA — LANDING PAGE
   Mobile first. Breakpoint: base (≤640px) → 641px → 993px.
   Look & feel ereditato dalla precedente opt-in.
   ============================================================ */

/* ------------------------------------------------------------
   FALLBACK FONT METRIC-MATCHED
   ------------------------------------------------------------
   Montserrat e Open Sans arrivano dal CDN dopo il primo paint.
   Senza questi fallback il testo viene disegnato con le metriche
   di Arial e poi "salta" di 2-3px quando il font vero atterra:
   un layout shift che sposta anche la VSL e le CTA sotto.
   Questi @font-face non cambiano NULLA nel rendering finale:
   agiscono solo nella frazione di secondo prima dello swap.
   ------------------------------------------------------------ */
@font-face {
    font-family: 'Montserrat Fallback';
    src: local('Arial');
    ascent-override: 96.9%;
    descent-override: 25.2%;
    line-gap-override: 0%;
    size-adjust: 105.6%;
}

@font-face {
    font-family: 'Open Sans Fallback';
    src: local('Arial');
    ascent-override: 101.2%;
    descent-override: 27.7%;
    line-gap-override: 0%;
    size-adjust: 106.9%;
}

/* ------------------------------------------------------------
   CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
    --blue-dark: #5C0A0A;
    --blue-medium: #7A1212;
    --blue-light: #8B1A1A;
    --gold: #D4AF37;
    --gold-hover: #F2A900;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-medium: #E9ECEF;
    --gray-text: #6C757D;
    --text-dark: #212529;
    --text-body: #495057;
    --danger: #E74C3C;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C4A;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
    --container-pad: 20px;
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Mobile first: nessuno scroll orizzontale, mai. */
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', 'Open Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', 'Montserrat Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.3;
    color: var(--text-dark);
    overflow-wrap: break-word;
}

p {
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   CONTAINER & UTILITY
   ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.text-center {
    text-align: center;
}

.gold {
    color: var(--gold);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------
   ANIMAZIONI D'INGRESSO
   ------------------------------------------------------------ */
.animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .animate {
        opacity: 1;
        transform: none;
    }
}

/* ------------------------------------------------------------
   BOTTONI
   ------------------------------------------------------------ */
.btn {
    display: inline-block;
    width: 100%;
    max-width: 520px;
    /* Touch target ampiamente sopra i 48px raccomandati. */
    min-height: 60px;
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    padding: 0.9rem 1.25rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.btn--gold {
    background: linear-gradient(135deg, #D4AF37, #F5D576, #D4AF37);
    color: var(--blue-dark);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.45);
    animation: ctaPulse 2s ease-in-out infinite;
}

.btn--gold:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
}

.btn--whatsapp {
    background: linear-gradient(135deg, var(--whatsapp), #1EBE5D);
    color: #06301A;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn--whatsapp:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.55);
}

.btn--disabled,
.btn--disabled:hover {
    filter: grayscale(0.75);
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
    box-shadow: none;
}

.btn__sub {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

@keyframes ctaPulse {
    0%,
    100% {
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.45);
    }

    50% {
        box-shadow: 0 6px 35px rgba(212, 175, 55, 0.7);
    }
}

/* ------------------------------------------------------------
   TOP BAR
   ------------------------------------------------------------ */
.top-bar {
    background: var(--gold);
    text-align: center;
    padding: 8px 14px;
}

.top-bar__text {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 800;
    font-size: 0.6rem;
    color: var(--blue-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.4;
    margin: 0;
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
    background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue-medium) 50%, var(--blue-light) 100%);
    color: var(--white);
    padding: 18px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    line-height: 1.5;
}

.hero__headline {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 auto 12px;
    max-width: 750px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.hero__pre-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
    font-style: italic;
}

/* --- Logo Ruota + luci --- */
.ruota-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.hero__title-img {
    width: 100%;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.ruota-lights {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88%;
    height: 88%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.ruota-light {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFD700;
    box-shadow: 0 0 6px 3px rgba(255, 215, 0, 0.6);
    animation: lightBlink 1.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.075s);
    transform: translate(-50%, -50%);
}

.ruota-light:nth-child(1)  { top: 4%;  left: 50%; }
.ruota-light:nth-child(2)  { top: 7%;  left: 67%; }
.ruota-light:nth-child(3)  { top: 17%; left: 82%; }
.ruota-light:nth-child(4)  { top: 33%; left: 93%; }
.ruota-light:nth-child(5)  { top: 50%; left: 96%; }
.ruota-light:nth-child(6)  { top: 67%; left: 93%; }
.ruota-light:nth-child(7)  { top: 83%; left: 82%; }
.ruota-light:nth-child(8)  { top: 93%; left: 67%; }
.ruota-light:nth-child(9)  { top: 96%; left: 50%; }
.ruota-light:nth-child(10) { top: 93%; left: 33%; }
.ruota-light:nth-child(11) { top: 83%; left: 18%; }
.ruota-light:nth-child(12) { top: 67%; left: 7%;  }
.ruota-light:nth-child(13) { top: 50%; left: 4%;  }
.ruota-light:nth-child(14) { top: 33%; left: 7%;  }
.ruota-light:nth-child(15) { top: 17%; left: 18%; }
.ruota-light:nth-child(16) { top: 7%;  left: 33%; }

@keyframes lightBlink {
    0%,
    100% {
        opacity: 0.2;
        background: #B8860B;
        box-shadow: 0 0 4px 2px rgba(184, 134, 11, 0.3);
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        opacity: 1;
        background: #FFD700;
        box-shadow: 0 0 16px 8px rgba(255, 215, 0, 0.9), 0 0 30px 12px rgba(255, 223, 0, 0.4);
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.hero__subheadline {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: clamp(1rem, 4.2vw, 1.3rem);
    font-weight: 700;
    color: var(--white);
    max-width: 700px;
    margin: 20px auto 18px;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.hero__description {
    font-size: 0.85rem;
    max-width: 600px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.hero__community {
    max-width: 620px;
    margin: 0 auto 28px;
    padding: 16px 18px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius);
    background: rgba(212, 175, 55, 0.08);
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}

/* ------------------------------------------------------------
   VSL — contenitore responsive + placeholder
   ------------------------------------------------------------ */
.vsl {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 28px;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Riserva SEMPRE lo spazio 16:9: nessun layout shift quando
   la VSL viene collegata. */
.vsl::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.vsl > * {
    position: absolute;
    inset: 0;
}

/* Quando Vidalytics è attivo il player gestisce da sé l'aspect ratio. */
.vsl.vsl--loaded {
    overflow: visible;
}

.vsl.vsl--loaded::before {
    display: none;
}

.vsl.vsl--loaded > * {
    position: static;
}

/* Su mobile la VSL della hero va a tutta larghezza, come nella
   precedente opt-in. La hero ha overflow:hidden: nessuno scroll
   orizzontale. */
.hero .vsl {
    width: calc(100% + (var(--container-pad) * 2));
    max-width: none;
    margin-left: calc(var(--container-pad) * -1);
    margin-right: calc(var(--container-pad) * -1);
    border-radius: 0;
}

/* Cover mostrata al posto del placeholder generico quando è
   disponibile la grafica ma non ancora l'id del video.
   Riempie lo slot 16:9: stesso ingombro del player. */
.vsl__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Non è cliccabile finché la VSL non è collegata. */
    cursor: default;
}

.vsl__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(160deg, #2E0505, #4A0808);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.7);
}

.vsl__placeholder-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.18);
    border: 2px solid rgba(212, 175, 55, 0.5);
    flex-shrink: 0;
}

.vsl__placeholder-icon::after {
    content: '';
    width: 0;
    height: 0;
    margin-left: 5px;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--gold);
}

.vsl__placeholder-text {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin: 0;
}

.vsl--light .vsl__placeholder {
    background: linear-gradient(160deg, #F3F4F6, #E6E8EB);
    border-color: rgba(92, 10, 10, 0.18);
    color: var(--gray-text);
}

/* ------------------------------------------------------------
   FORM (hero + modale)
   ------------------------------------------------------------ */
.riserva-form {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius);
    padding: 24px 18px 20px;
    backdrop-filter: blur(8px);
}

.riserva-form__title {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 900;
    font-size: clamp(1.1rem, 4.4vw, 1.6rem);
    color: var(--white);
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    line-height: 1.35;
}

.riserva-form__field {
    position: relative;
    margin-bottom: 14px;
}

.riserva-form__field > svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 2;
}

.riserva-form__input {
    width: 100%;
    /* 16px evita lo zoom automatico su iOS al focus. */
    font-size: 16px;
    padding: 15px 16px 15px 48px;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-family: 'Open Sans', 'Open Sans Fallback', sans-serif;
    transition: border-color var(--transition), background var(--transition);
}

.riserva-form__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.riserva-form__input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.12);
}

.riserva-form__input.is-invalid {
    border-color: var(--danger);
    background: rgba(231, 76, 60, 0.12);
}

.riserva-form__btn {
    display: block;
    width: 100%;
    min-height: 60px;
    padding: 15px 18px;
    margin-top: 8px;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, #D4AF37, #F5D576, #D4AF37);
    color: var(--blue-dark);
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.45);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: ctaPulse 2s ease-in-out infinite;
}

.riserva-form__btn:hover {
    transform: scale(1.02);
}

.riserva-form__btn[disabled] {
    opacity: 0.7;
    cursor: progress;
    animation: none;
}

.riserva-form__btn .btn__sub {
    font-size: 0.8rem;
}

.riserva-form__privacy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

/* --- intl-tel-input --- */
.riserva-form__field .iti {
    display: block;
    width: 100%;
}

.riserva-form__field--tel .iti .riserva-form__input {
    padding-left: 92px;
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: transparent;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.iti--separate-dial-code .iti__selected-dial-code {
    color: var(--white);
    font-family: 'Open Sans', 'Open Sans Fallback', sans-serif;
    font-size: 16px;
}

.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag,
.iti__flag-container:hover .iti__selected-flag {
    background-color: rgba(255, 255, 255, 0.08);
}

/* La tendina dei paesi resta chiara, leggibile e MAI più larga
   del viewport (causa classica di scroll orizzontale su mobile). */
.iti__country-list {
    color: var(--text-dark);
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    font-family: 'Open Sans', 'Open Sans Fallback', sans-serif;
    /* La tendina è posizionata dentro il contenitore della bandierina,
       quindi si dimensiona sul contenuto. Il cap tiene conto del
       margine sinistro del campo (max 38px) più altrettanto a destra:
       a 390px resta sempre dentro il viewport. */
    width: max-content;
    min-width: 260px;
    max-width: calc(100vw - 76px);
    box-sizing: border-box;
    /* La hero è text-align:center: la tendina deve restare a sinistra. */
    text-align: left;
}

.iti__country {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}

.iti__country-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0;
}

.iti__dial-code {
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   SECTIONS
   ------------------------------------------------------------ */
.section {
    padding: 36px 0;
}

.section--white {
    background-color: var(--white);
}

.section--light {
    background-color: var(--gray-light);
}

.section--dark {
    background: linear-gradient(160deg, var(--blue-dark), var(--blue-medium));
    color: var(--white);
}

.section__title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--blue-dark);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.section__title--left {
    text-align: left;
}

.section__title--white {
    color: var(--white);
}

.highlight-mark {
    background: linear-gradient(135deg, #D4AF37, #F5D576, #D4AF37);
    color: var(--blue-dark);
    padding: 2px 8px;
    margin: 0 2px;
    border-radius: 8px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.highlight-mark--slot {
    animation: slotBlink 1.5s ease-in-out infinite;
}

@keyframes slotBlink {
    0%,
    100% {
        background: linear-gradient(135deg, #D4AF37, #F5D576, #D4AF37);
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    }

    50% {
        background: linear-gradient(135deg, #F5D576, #FFF4C1, #F5D576);
        box-shadow: 0 0 26px rgba(245, 213, 118, 0.9);
    }
}

/* ------------------------------------------------------------
   CTA BLOCK (ricorrente)
   ------------------------------------------------------------ */
.cta-block {
    text-align: center;
    margin-top: 28px;
}

.cta-block__posti {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #980000;
    letter-spacing: 1px;
    margin-top: 14px;
}

.cta-block__note {
    font-size: 0.8rem;
    color: var(--gray-text);
    max-width: 620px;
    margin: 8px auto 0;
    line-height: 1.6;
}

.section--dark .cta-block__posti {
    color: var(--gold);
}

.section--dark .cta-block__note {
    color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------
   COME FUNZIONA — Steps
   ------------------------------------------------------------ */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-medium);
    transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-card__img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.step-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-dark);
}

/* ------------------------------------------------------------
   I DUE REGALI — Gift cards
   ------------------------------------------------------------ */
.gifts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.gift-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-medium);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gift-card--highlight {
    border-color: var(--gold);
}

.gift-card__badge {
    display: inline-block;
    background: var(--blue-dark);
    color: var(--gold);
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.gift-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 14px;
}

.gift-card__text {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
}

.gift-card__list {
    margin-top: 16px;
}

.gift-card__list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

.gift-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ------------------------------------------------------------
   TESTIMONIANZE — Marquee
   ------------------------------------------------------------ */
.marquee {
    overflow: hidden;
    margin-bottom: 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marqueeLeft 30s linear infinite;
}

.marquee--reverse .marquee__track {
    animation: marqueeRight 30s linear infinite;
}

.marquee__track:hover {
    animation-play-state: paused;
}

.testimonial-img {
    flex-shrink: 0;
    width: 250px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

@keyframes marqueeLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ------------------------------------------------------------
   COPY LUNGA
   ------------------------------------------------------------ */
.regalo-body {
    max-width: 750px;
    margin: 0 auto;
}

.regalo-body p {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--text-body);
    line-height: 1.8;
}

.regalo-body__img {
    width: 100%;
    max-width: 500px;
    margin: 24px auto;
    display: block;
    border-radius: var(--radius);
}

.regalo-body__highlight {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin: 28px 0 18px;
    line-height: 1.4;
}

.regalo-body__big {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    color: #B8860B !important;
    margin: 20px 0 !important;
}

.regalo-body .section__title {
    margin-top: 36px;
}

/* ------------------------------------------------------------
   CHECKLIST — Questo evento è adatto anche a te se
   ------------------------------------------------------------ */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 auto;
}

.checklist-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--white);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.checklist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.checklist-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.checklist-card__text {
    padding: 22px 18px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
    text-align: center;
}

.checklist-card__text::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 50%;
    background-color: #27ae60;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 12 10 16 18 8'/%3E%3C/svg%3E");
    background-size: 13px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ------------------------------------------------------------
   IL MOTIVO
   ------------------------------------------------------------ */
.motivo {
    max-width: 750px;
    margin: 0 auto;
}

.motivo__text p {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-body);
    line-height: 1.8;
}

.motivo__highlight {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin: 28px 0 18px;
    line-height: 1.4;
}

.motivo__cta-title {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 28px 0 20px;
    line-height: 1.4;
    text-align: center;
}

/* ------------------------------------------------------------
   BIO — Chi è Gabriele Sartori
   ------------------------------------------------------------ */
.bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.bio__avatar {
    flex-shrink: 0;
    width: 160px;
}

.bio__avatar img {
    width: 100%;
    border-radius: var(--radius);
}

.bio__list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-align: left;
}

.bio__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-medium);
}

.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-dark);
    text-align: left;
    line-height: 1.5;
    transition: color var(--transition);
}

.faq-item__question:hover {
    color: #8a6d1f;
}

.faq-item__icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #B8860B;
    transition: transform var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    padding-bottom: 20px;
}

.faq-item__answer p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.8;
}

/* ------------------------------------------------------------
   CALENDARIO DATE
   ------------------------------------------------------------ */
.cal-dates {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.cal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    flex: 1 1 0;
    min-width: 0;
    max-width: 180px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cal-card__day {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #D4AF37, #F5D576, #D4AF37);
    color: var(--blue-dark);
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 800;
    font-size: 0.55rem;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 6px 2px;
}

.cal-card__num {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--blue-dark);
    line-height: 1.1;
    padding-top: 8px;
}

.cal-card__month {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 700;
    font-size: 0.55rem;
    color: var(--gray-text);
    letter-spacing: 0.5px;
    text-align: center;
}

.cal-card__time {
    font-family: 'Open Sans', 'Open Sans Fallback', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--text-body);
    padding: 6px 2px 10px;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.55);
    padding: 28px 0;
    text-align: center;
    font-size: 0.8rem;
}

.footer__disclaimer {
    margin-top: 12px;
    font-size: 0.72rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.6;
}

/* ------------------------------------------------------------
   MODALE LEAD
   ------------------------------------------------------------ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 5, 5, 0.8);
    backdrop-filter: blur(3px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 12px;
    z-index: 1000;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-overlay.open {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: auto;
    background: linear-gradient(160deg, var(--blue-dark), var(--blue-medium));
    border-radius: var(--radius);
    border-top: 6px solid var(--gold);
    box-shadow: var(--shadow-lg);
    padding: 26px 18px 20px;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal__close {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color var(--transition);
}

.modal__close:hover {
    color: var(--white);
}

.modal__logo {
    width: 150px;
    max-width: 55%;
    margin: 4px auto 14px;
    display: block;
}

.modal__title {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--white);
    text-align: center;
    margin-bottom: 18px;
}

/* Nella modale il form non ha la propria cornice. */
.modal .riserva-form {
    background: none;
    border: none;
    padding: 0;
    max-width: none;
    backdrop-filter: none;
}

/* ============================================================
   THANK-YOU PAGE
   ============================================================ */
.typ-hero {
    background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue-medium) 60%, var(--blue-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 28px 0 32px;
}

.typ-hero__logo {
    width: 200px;
    max-width: 62%;
    margin: 0 auto 18px;
}

.typ-hero__alert {
    display: inline-block;
    background: var(--gold);
    color: var(--blue-dark);
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.typ-hero__headline {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.4;
    max-width: 720px;
    margin: 0 auto 12px;
}

.typ-hero__sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.typ-step {
    max-width: 750px;
    margin: 0 auto 28px;
    background: var(--white);
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius);
    padding: 24px 18px;
    box-shadow: var(--shadow-sm);
}

.typ-step--highlight {
    border-color: var(--whatsapp);
}

.typ-step__badge {
    display: inline-block;
    background: var(--blue-dark);
    color: var(--gold);
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.typ-step--highlight .typ-step__badge {
    background: var(--whatsapp-dark);
    color: var(--white);
}

.typ-step__title {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1.4;
    margin-bottom: 12px;
}

.typ-step__text {
    font-size: 0.98rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 14px;
}

.typ-step__text:last-child {
    margin-bottom: 0;
}

.typ-step__warning {
    font-size: 0.9rem;
    color: #980000;
    font-weight: 600;
    margin-top: 12px;
}

.typ-step__cta {
    text-align: center;
    margin-top: 18px;
}

.typ-step__cta-note {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-top: 12px;
    line-height: 1.6;
}

.typ-dates {
    background: linear-gradient(160deg, var(--blue-dark), var(--blue-medium));
    color: var(--white);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    margin-top: 18px;
}

.typ-dates__title {
    font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

/* ============================================================
   BREAKPOINT ≥ 641px — tablet / mobile landscape
   ============================================================ */
@media (min-width: 641px) {
    .top-bar__text {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .section {
        padding: 48px 0;
    }

    .section__title {
        font-size: 1.9rem;
    }

    .hero {
        padding: 24px 0 72px;
    }

    .hero__headline {
        font-size: 1.4rem;
    }

    .hero__pre-subtitle {
        font-size: 1.05rem;
    }

    .hero__eyebrow {
        font-size: 0.95rem;
    }

    .btn {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }

    .btn__sub {
        font-size: 0.95rem;
    }

    .riserva-form {
        padding: 32px 28px 28px;
    }

    .hero .vsl {
        width: 100%;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        border-radius: var(--radius);
    }

    .riserva-form__btn {
        font-size: 1.2rem;
        padding: 18px 24px;
    }

    .ruota-light {
        width: 14px;
        height: 14px;
    }

    .testimonial-img {
        width: 320px;
    }

    .cal-dates {
        gap: 20px;
    }

    .cal-card__day {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .cal-card__num {
        font-size: 2.8rem;
    }

    .cal-card__month {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .cal-card__time {
        font-size: 0.85rem;
    }

    .checklist-card__text {
        font-size: 1.1rem;
        padding: 28px 24px 22px;
    }

    .regalo-body p,
    .motivo__text p {
        font-size: 1.05rem;
    }

    .regalo-body__highlight {
        font-size: 1.3rem;
    }

    .regalo-body__big {
        font-size: 1.5rem !important;
    }

    .motivo__highlight {
        font-size: 1.4rem;
    }

    .motivo__cta-title {
        font-size: 1.2rem;
    }

    .gift-card__title {
        font-size: 1.35rem;
    }

    .gift-card__badge {
        font-size: 1.1rem;
    }

    .step-card {
        padding: 34px 26px;
    }

    .step-card__title {
        font-size: 1.1rem;
    }

    .faq-item__question {
        font-size: 1.05rem;
        padding: 22px 0;
    }

    .modal {
        padding: 30px 26px 24px;
    }

    .modal__title {
        font-size: 1.15rem;
    }

    .typ-hero {
        padding: 36px 0 44px;
    }

    .typ-hero__headline {
        font-size: 1.6rem;
    }

    .typ-step {
        padding: 32px 28px;
    }

    .typ-step__title {
        font-size: 1.35rem;
    }
}

/* ============================================================
   BREAKPOINT ≥ 993px — desktop (target 1440px)
   ============================================================ */
@media (min-width: 993px) {
    .section {
        padding: 56px 0;
    }

    .section__title {
        font-size: 2.4rem;
    }

    .hero {
        padding: 24px 0 80px;
    }

    .hero__headline {
        font-size: 1.7rem;
    }

    .hero__subheadline {
        font-size: clamp(1.1rem, 3.2vw, 1.5rem);
    }

    .hero__description {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 1.8rem;
        padding: 1rem 2.5rem;
    }

    .btn__sub {
        font-size: 1rem;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: none;
    }

    .gifts {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: none;
    }

    .checklist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .bio {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .bio__avatar {
        width: 220px;
    }

    .bio__list li {
        font-size: 1rem;
    }

    .cta-block {
        margin-top: 40px;
    }
}
