/* =========================================================================
   Safari in Kenya e Watamu con Batman
   Single shared stylesheet.
   Palette: deep teal / lagoon, Tsavo red earth, warm sand, ochre accent.
   Fonts: Anton (display) + Karla (body).
   ========================================================================= */

/* ---------------------------------------------------------------- Tokens */
:root {
    --teal:        #0F5E5A;
    --teal-deep:   #0A4744;
    --lagoon:      #1B9C90;
    --red-earth:   #A6431F;
    --red-earth-d: #863518;
    --sand:        #F4E9D6;
    --sand-deep:   #EBDBBE;
    --ochre:       #E0A526;
    --cream:       #FBF6EC;
    --ink:         #211F1A;
    --muted:       #6C6A61;
    --dark:        #132321;
    --white:       #ffffff;
    --wa:          #25D366;
    --wa-dark:     #1da851;

    --radius:      6px;
    --radius-lg:   10px;
    --shadow-sm:   0 2px 10px rgba(19, 35, 33, .08);
    --shadow-md:   0 14px 40px rgba(19, 35, 33, .16);
    --maxw:        1180px;

    --font-display: 'Anton', Impact, sans-serif;
    --font-body:    'Karla', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    overflow-x: clip; /* prevents any right-side overflow strip from animations */
}

img, picture { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-earth); }

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.05; }

.container { max-width: var(--maxw); }

/* ---------------------------------------------------------------- Type */
.section__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    letter-spacing: .5px;
    color: var(--teal-deep);
    text-transform: uppercase;
}
.section__title--light { color: var(--white); }

.eyebrow {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: .78rem;
    color: var(--red-earth);
    margin: 0 0 .5rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 3px;
    background: var(--ochre);
    display: inline-block;
}
.eyebrow--light { color: var(--ochre); }

.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--dark); color: var(--white); }

.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin: .4rem 0 0; }
.section--dark .section__lead { color: rgba(255,255,255,.75); }
.section__note {
    font-size: .9rem;
    color: var(--muted);
    font-style: italic;
    margin-top: .6rem;
}

/* ---------------------------------------------------------------- Buttons */
.btn-wa,
.btn-ghost,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-body);
    font-weight: 700;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: .8rem 1.5rem;
    line-height: 1;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-wa {
    background: var(--wa);
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .3);
}
.btn-wa:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); }
.btn-wa--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-wa--sm { padding: .55rem 1rem; font-size: .9rem; box-shadow: none; }
.btn-wa__icon { display: inline-flex; }

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.btn-submit {
    background: var(--red-earth);
    color: #fff;
    padding: .95rem 2.2rem;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-submit:hover { background: var(--red-earth-d); transform: translateY(-2px); }

/* ---------------------------------------------------------------- Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--teal);
    color: #fff;
    padding: .7rem 1.1rem;
    z-index: 2000;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------- Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 246, 236, .96);
    backdrop-filter: saturate(1.2) blur(6px);
    border-bottom: 1px solid rgba(15, 94, 90, .12);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { width: 52px; height: 52px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__line1 { font-family: var(--font-display); font-size: .96rem; letter-spacing: .3px; color: var(--teal-deep); text-transform: uppercase; }
.brand__line2 { font-family: var(--font-body); font-weight: 700; font-size: .78rem; color: var(--red-earth); text-transform: uppercase; letter-spacing: 1px; }

.primary-nav__list {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-nav__link {
    font-weight: 500;
    color: var(--ink);
    font-size: .98rem;
    padding: .3rem 0;
    position: relative;
}
.primary-nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--ochre);
    transition: width .2s ease;
}
.primary-nav__link:hover { color: var(--teal-deep); }
.primary-nav__link:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 10px;
}
.nav-toggle__bar {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--teal-deep);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- Hero */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
}
.hero__carousel { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; }
.hero__slide.is-active img { animation: kenburns 8s ease-out forwards; }

@keyframes kenburns {
    from { transform: scale(1.001); }
    to   { transform: scale(1.09); }
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,71,68,.15) 0%, rgba(10,71,68,.25) 45%, rgba(19,35,33,.88) 100%),
        linear-gradient(90deg, rgba(10,71,68,.4) 0%, rgba(10,71,68,0) 60%);
    z-index: 1;
}
.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
    padding-top: 4rem;
}
.hero__eyebrow {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .82rem;
    color: var(--ochre);
    margin: 0 0 .8rem;
}
.hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: .98;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 15ch;
    text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero__subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    max-width: 44ch;
    margin: 1rem 0 1.8rem;
    color: rgba(255,255,255,.92);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__dots {
    position: absolute;
    z-index: 3;
    right: max(1.2rem, 4vw);
    bottom: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    gap: .55rem;
}
.hero__dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.hero__dot.is-active { background: var(--ochre); border-color: var(--ochre); transform: scale(1.15); }

/* ---------------------------------------------------------------- Facts */
.facts { background: var(--teal-deep); color: #fff; }
.facts__row { text-align: center; }
.fact {
    padding: 1.6rem 1rem;
    border-right: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.col-6:nth-child(2n) .fact { border-right: 0; }
.fact__value {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    color: var(--ochre);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.fact__label { font-size: .9rem; color: rgba(255,255,255,.82); letter-spacing: .3px; }

/* ---------------------------------------------------------------- Framed images */
.framed {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    /* Plain rectangular frame with a small radius only. No arch/curved crops. */
}

/* ---------------------------------------------------------------- Chi Sono */
.chi-sono__portrait { position: relative; }
.chi-sono__portrait::before {
    content: "";
    position: absolute;
    left: -14px; top: -14px;
    width: 60%; height: 60%;
    border: 3px solid var(--ochre);
    border-radius: var(--radius);
    z-index: 0;
}
.chi-sono__portrait .framed { position: relative; z-index: 1; width: 100%; }
.chi-sono__portrait img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.chi-sono__text { margin-bottom: 1rem; color: #3a382f; }
.chi-sono .btn-wa { margin-top: .5rem; }

/* ---------------------------------------------------------------- Tour cards */
.tour-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.tour-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tour-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.tour-card__media .framed { border-radius: 0; box-shadow: none; height: 100%; }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tour-card:hover .tour-card__media img { transform: scale(1.05); }
.tour-card__badge {
    position: absolute;
    top: .8rem; left: .8rem;
    background: var(--ochre);
    color: #2a2410;
    font-weight: 700;
    font-size: .78rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    letter-spacing: .3px;
}
.tour-card__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tour-card__place {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--red-earth);
    font-weight: 700;
    margin: 0 0 .35rem;
}
.tour-card__name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--teal-deep);
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 0 0 .55rem;
}
.tour-card__text { color: var(--muted); font-size: .96rem; margin: 0 0 1.1rem; }
.tour-card__cta {
    margin-top: auto;
    font-weight: 700;
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.tour-card__cta span { transition: transform .2s ease; }
.tour-card__cta:hover { color: var(--red-earth); }
.tour-card__cta:hover span { transform: translateX(4px); }

/* ---------------------------------------------------------------- Safari band */
.safari-band {
    position: relative;
    background: var(--dark) url("/assets/img/safari-band.jpg") center / cover no-repeat;
    color: #fff;
    padding: clamp(4rem, 9vw, 7rem) 0;
    overflow: hidden;
}
.safari-band__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,71,68,.92) 0%, rgba(10,71,68,.68) 55%, rgba(166,67,31,.45) 100%);
    z-index: 0;
}
.safari-band__content { position: relative; z-index: 1; max-width: 640px; }
.safari-band__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.2rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.02;
}
.safari-band__text { font-size: 1.1rem; color: rgba(255,255,255,.9); margin: 1rem 0 1.8rem; }

/* ---------------------------------------------------------------- Why cards */
.why-card {
    background: var(--cream);
    border: 1px solid rgba(15,94,90,.12);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.4rem;
    height: 100%;
}
.why-card__num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--sand-deep);
    display: block;
    line-height: 1;
    margin-bottom: .5rem;
}
.why-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--teal-deep);
    margin: 0 0 .4rem;
}
.why-card__text { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------------- Gallery masonry */
.masonry {
    column-count: 3;
    column-gap: 1rem;
}
.masonry__item {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    break-inside: avoid;
    position: relative;
}
.masonry__item .framed { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.masonry__item img { width: 100%; height: auto; transition: transform .35s ease, filter .35s ease; }
.masonry__item:hover img { transform: scale(1.04); filter: brightness(.9); }
.masonry__item:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

/* ---------------------------------------------------------------- Reviews */
.review-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--ochre);
}
.review-card__stars { margin-bottom: .8rem; letter-spacing: 2px; }
.review-card__stars .star { color: #d9d4c6; font-size: 1.05rem; }
.review-card__stars .star--on { color: var(--ochre); }
.review-card__text {
    margin: 0 0 1.1rem;
    font-size: 1rem;
    color: #3a382f;
    font-style: italic;
    quotes: "\201C" "\201D";
}
.review-card__text::before { content: open-quote; color: var(--sand-deep); font-size: 1.4rem; }
.review-card__author { margin-top: auto; display: flex; flex-direction: column; }
.review-card__name { font-weight: 700; color: var(--teal-deep); }
.review-card__origin { font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------- Contact */
.contatti__lead { color: rgba(255,255,255,.8); margin-bottom: 1.6rem; }
.contatti__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contatti__list li { display: flex; flex-direction: column; }
.contatti__label {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ochre);
    font-weight: 700;
    margin-bottom: .2rem;
}
.contatti__list a { color: #fff; font-size: 1.1rem; font-weight: 500; }
.contatti__list a:hover { color: var(--ochre); }
.contatti__list span:not(.contatti__label) { color: rgba(255,255,255,.9); }

.form-label { font-weight: 700; font-size: .9rem; color: rgba(255,255,255,.92); margin-bottom: .35rem; }
.contact-form .form-control,
.contact-form .form-select {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    border-radius: var(--radius);
    padding: .7rem .85rem;
}
.contact-form .form-control::placeholder { color: rgba(255,255,255,.5); }
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: rgba(255,255,255,.1);
    border-color: var(--ochre);
    box-shadow: 0 0 0 .2rem rgba(224,165,38,.25);
    color: #fff;
    outline: none;
}
.contact-form .form-select option { color: #211f1a; }
.contact-form .is-invalid { border-color: #ff8f6b; }
.field-error { display: block; color: #ffb59b; font-size: .82rem; margin-top: .3rem; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash {
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    margin-bottom: 1.3rem;
    font-weight: 500;
}
.flash--success { background: rgba(37,211,102,.15); border: 1px solid var(--wa); color: #d9ffe8; }
.flash--error { background: rgba(255,120,80,.15); border: 1px solid #ff8f6b; color: #ffd9cc; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,.82); padding: clamp(3rem,6vw,4.5rem) 0 1.6rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand__logo { width: 64px; height: 64px; border-radius: 50%; }
.footer-brand__name { font-family: var(--font-display); color: #fff; font-size: 1.05rem; text-transform: uppercase; margin: 0; line-height: 1.1; }
.footer-text { font-size: .95rem; max-width: 42ch; }
.footer-title { font-family: var(--font-display); font-weight: 400; color: var(--ochre); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .9rem; }
.footer-links, .footer-contact, .footer-social { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.82); }
.footer-links a:hover, .footer-contact a:hover { color: var(--ochre); }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-social a { color: #fff; font-weight: 700; font-size: .9rem; }
.site-footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,.14);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    font-size: .85rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__credit a { color: var(--ochre); font-weight: 700; }

/* ---------------------------------------------------------------- Floating WhatsApp */
.wa-float {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 900;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(37,211,102,.45);
    animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { background: var(--wa-dark); color: #fff; }
@keyframes wa-pulse {
    0%   { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
    70%  { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------------------------------------------------------------- Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(10,20,19,.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 90vw; max-height: 84vh; }
.lightbox__img { max-width: 90vw; max-height: 84vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close, .lightbox__nav {
    position: absolute;
    background: rgba(255,255,255,.12);
    border: 0;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.lightbox__close { top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* ---------------------------------------------------------------- Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--ochre);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- 404 page */
.error-page {
    background: var(--teal-deep);
    color: #fff;
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: clamp(3rem, 8vw, 6rem) 0;
}
.error-page__inner { max-width: 620px; margin: 0 auto; }
.error-page__code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 18vw, 10rem);
    line-height: .9;
    color: var(--ochre);
    margin: 0;
}
.error-page__title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: .5px;
}
.error-page__text { color: rgba(255,255,255,.85); margin: 0 0 1.8rem; }
.error-page__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ================================================================ Responsive */
@media (max-width: 991px) {
    .primary-nav {
        position: fixed;
        inset: 72px 0 auto 0;
        background: var(--cream);
        border-bottom: 1px solid rgba(15,94,90,.14);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        box-shadow: var(--shadow-md);
    }
    .primary-nav.is-open { max-height: 80vh; }
    .primary-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 0 1rem;
    }
    .primary-nav__item { padding: 0 1.4rem; }
    .primary-nav__link { display: block; padding: .85rem 0; border-bottom: 1px solid rgba(15,94,90,.08); }
    .primary-nav__link::after { display: none; }
    .primary-nav__item--cta { padding: .9rem 1.4rem 0; }
    .primary-nav__item--cta .btn-wa { width: 100%; }
    .nav-toggle { display: flex; }
}

@media (max-width: 767px) {
    .fact { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .masonry { column-count: 2; }
    .chi-sono__portrait::before { display: none; }
    .hero { min-height: 92vh; }
    .lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }

    /* AOS: on small screens, side-motion becomes vertical to avoid horizontal overflow. */
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: translate3d(0, 28px, 0);
    }
    [data-aos="fade-left"].aos-animate,
    [data-aos="fade-right"].aos-animate {
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 480px) {
    .masonry { column-count: 1; }
    .hero__actions { width: 100%; }
    .hero__actions .btn-wa, .hero__actions .btn-ghost { width: 100%; }
}

/* ================================================================ Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .hero__slide { transition: none; }
    .hero__slide.is-active img { animation: none; }
    .wa-float { animation: none; }
}
