/* ============================================================
   MONDO PICCOLO - modern.css
   Design system Mobile-First, accessibile e SEO-friendly
   ============================================================ */

@view-transition {
    navigation: auto;
}

:root {
    --bg-page: #FD6A62;
    --bg-surface: #fff7f7;
    --bg-soft: #fff0f0;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --brand-primary: #9e1b1b;
    --brand-primary-dark: #7a1212;
    --brand-accent: #1f7a55;
    --border-light: #f2d4d4;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background: linear-gradient(180deg, #fff6f6 0%, #ffffff 420px, #f8fafc 100%);
    min-height: 100vh;
}

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

a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--brand-primary-dark);
}

/* ── CONTENITORE PRINCIPALE (FULL-WIDTH) ─────────────────── */
.site-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER & NAVIGAZIONE STILE HORIZON (STICKY FULL-WIDTH) ── */
.site-topbar {
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
    background: rgba(255, 252, 252, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 0;
    overflow: hidden;
}

.header-brand-strip {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 6px 12px;
}

.header-banner {
    display: block;
    max-width: 920px;
    margin: 0 auto;
}

.header-banner img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.topbar-main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
}

.site-nav {
    width: 100%;
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    min-height: 40px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-toggle-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle:hover {
    background: #fff0f0;
    border-color: var(--brand-primary);
}

.nav-toggle-pagina {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 6px 14px 14px;
    display: none;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--border-light);
    background: rgba(255, 250, 250, 0.98);
}

.site-topbar.nav-aperto .nav-menu {
    display: flex;
}

.nav-menu a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    border-radius: 8px;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-menu a:hover {
    color: var(--brand-primary);
    background: rgba(158, 27, 27, 0.06);
}

.nav-menu a.active {
    color: var(--brand-primary);
    font-weight: 700;
    background: rgba(158, 27, 27, 0.08);
}

/* ── MESSAGGIO STAGIONALE ────────────────────────────────── */
.messaggio-stagionale {
    display: none;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: #fff8eb;
    border: 1px solid #f59e0b;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
}

/* ── CONTENUTO FULL-WIDTH (SENZA CORNICE) ─────────────────── */
.site-main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.card {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 24px 16px 36px;
    box-shadow: none;
}

.page-title {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    line-height: 1.2;
    color: var(--brand-primary);
    text-align: center;
    font-weight: 800;
}

.lead-text {
    font-size: 1.08rem;
    color: var(--text-main);
    max-width: 820px;
    margin: 0 auto 14px;
    text-align: center;
}

.hero-media {
    max-width: 960px;
    margin: 0 auto 22px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.hero-media img {
    width: 100%;
}

/* ── EFFETTO CINEMATICO HOME ─────────────────────────────── */
.home-cinematic .hero-media {
    position: relative;
    box-shadow: var(--shadow-md);
}

.home-cinematic .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(15, 23, 42, 0.80) 100%);
}

.hero-captions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px 18px;
    pointer-events: none;
    min-height: 68px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    margin: 0;
    text-align: center;
    color: #ffffff;
    font-size: clamp(0.84rem, 2.3vw, 1.18rem);
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
    opacity: 0;
    animation: hero-caption-cycle 18s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.hero-caption:nth-child(1) {
    animation-delay: 0s;
}

.hero-caption:nth-child(2) {
    animation-delay: 4.5s;
}

.hero-caption:nth-child(3) {
    animation-delay: 9s;
}

.hero-caption:nth-child(4) {
    animation-delay: 13.5s;
}

@keyframes hero-caption-cycle {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    4% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    21% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    25%,
    100% {
        opacity: 0;
        transform: translate3d(0, -8px, 0);
    }
}

.home-cinematic .hero-media img,
.home-cinematic .hero-bg {
    transform-origin: center center;
    will-change: transform;
    animation: ken-burns-home 18s ease-in-out infinite alternate;
}

/* ── HERO STAGE FULL-BLEED (HOME STILE HORIZON) ──────────── */
.hero-stage,
.page-hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111827;
}

.hero-stage {
    flex: 1;
    min-height: clamp(440px, 72vh, 680px);
}

.page-hero {
    min-height: clamp(200px, 28vh, 270px);
}

.page-hero .hero-content {
    padding: 32px 18px;
    gap: 10px;
}

.page-hero .hero-title {
    font-size: clamp(1.85rem, 4.2vw, 2.8rem);
}

.page-subtitle {
    margin: 0;
    max-width: 700px;
    padding: 7px 14px;
    border-left: 3px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    background: rgba(15, 23, 42, 0.48);
    color: #ffffff;
    font-size: clamp(1.04rem, 2.2vw, 1.24rem);
    font-weight: 700;
    line-height: 1.45;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
    animation: cinematic-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.page-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px 16px 38px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

.home-cinematic .hero-bg-slot {
    opacity: 0;
    animation: ken-burns-home 18s ease-in-out infinite alternate,
        hero-bg-cycle 24s ease-in-out infinite;
}

.home-cinematic .hero-bg-slot:nth-child(1) {
    opacity: 1;
    animation-delay: 0s, -1.2s;
}

.home-cinematic .hero-bg-slot:nth-child(2) {
    animation-delay: -4s, 4.8s;
    object-position: center;
}

.home-cinematic .hero-bg-slot:nth-child(3) {
    animation-delay: -8s, 10.8s;
    object-position: center;
}

.home-cinematic .hero-bg-slot:nth-child(4) {
    animation-delay: -12s, 16.8s;
    object-position: center;
}

@keyframes hero-bg-cycle {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30%,
    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.62) 52%, rgba(15, 23, 42, 0.28) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.24);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: cinematic-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
}

.hero-title {
    margin: 0;
    max-width: 680px;
    color: #ffffff;
    font-size: clamp(2rem, 5.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    animation: cinematic-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-stage .hero-captions {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 620px;
    padding: 0;
    min-height: 76px;
    display: block;
}

.hero-stage .hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    text-align: left;
    color: rgba(248, 250, 252, 0.94);
    font-size: clamp(0.98rem, 2vw, 1.15rem);
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.hero-cta {
    justify-content: flex-start;
    margin-top: 6px;
    animation: cinematic-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.btn-hero-primary {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.btn-hero-primary:hover {
    background: #b91c1c;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-hero-glass {
    background: rgba(15, 23, 42, 0.48);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.btn-hero-glass:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .hero-content {
        padding: 56px 28px;
    }

    .page-hero .hero-content {
        padding: 40px 28px;
    }

    .page-section {
        padding: 36px 28px 52px;
    }

    .hero-stage .hero-captions {
        min-height: 60px;
    }
}

.card .page-title,
.card .lead-text,
.home-cinematic .cta-row,
.home-cinematic .partners-grid {
    animation: cinematic-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card .lead-text {
    animation-delay: 0.12s;
}

.home-cinematic .cta-row,
.home-cinematic .partners-grid {
    animation-delay: 0.24s;
}

@keyframes ken-burns-home {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }

    100% {
        transform: scale(1.07) translate3d(-1%, -0.8%, 0);
    }
}

@keyframes cinematic-fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ── CTA RAPIDE HOME ─────────────────────────────────────── */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--text-main);
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: var(--text-main);
}

/* ── CHI SIAMO (GRIGLIA MOBILE-FIRST) ────────────────────── */
.about-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: cinematic-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-item:nth-child(1) {
    animation-delay: 0.08s;
}

.about-item:nth-child(2) {
    animation-delay: 0.20s;
}

.about-item:nth-child(3) {
    animation-delay: 0.32s;
}

.about-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(158, 27, 27, 0.35);
}

.about-media {
    overflow: hidden;
    border-radius: 10px;
}

.about-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    will-change: transform;
    animation: about-breath 15s ease-in-out infinite alternate;
    transition: transform 0.45s ease;
}

.about-item:nth-child(2) img {
    animation-duration: 17s;
    animation-delay: -4s;
}

.about-item:nth-child(3) img {
    animation-duration: 19s;
    animation-delay: -8s;
}

.about-item:hover img {
    transform: scale(1.04);
}

@keyframes about-breath {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.035);
    }
}

.about-text {
    font-size: 0.96rem;
    line-height: 1.55;
    text-align: center;
    margin: 0;
}

/* ── COLLEZIONI / PARTNERS ───────────────────────────────── */
.partners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
}

.partner-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.partner-card h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.partner-card img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* ── DOVE SIAMO / MAPPA ──────────────────────────────────── */
.store-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    box-shadow: var(--shadow-md);
    align-items: center;
}

.store-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.store-eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.store-title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
    color: var(--text-main);
    font-weight: 800;
}

.store-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.store-meta {
    list-style: none;
    margin: 2px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.store-meta a {
    font-weight: 700;
    text-decoration: none;
}

.store-highlight {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.92rem;
    line-height: 1.45;
}

.store-highlight a {
    color: #047857;
    font-weight: 700;
}

.btn-dark {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.btn-dark:hover {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
}

.map-frame-wrap {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #f3f4f6;
    box-shadow: var(--shadow-sm);
}

.map-frame-wrap iframe {
    width: 100%;
    height: 290px;
    border: 0;
    display: block;
}

/* ── GALLERIA COMPATTA MODERNA + LIGHTBOX ────────────────── */
.gallery-shell {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-md);
}

.gallery-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 460px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0f172a;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
    cursor: zoom-in;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.gallery-arrow:hover {
    background: rgba(15, 23, 42, 0.85);
    transform: translateY(-50%) scale(1.06);
}

.gallery-arrow.prev {
    left: 12px;
}

.gallery-arrow.next {
    right: 12px;
}

.gallery-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 4px 2px;
}

.gallery-counter {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.gallery-progress {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.gallery-progress-fill {
    height: 100%;
    width: 4%;
    background: var(--brand-primary);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.gallery-play-btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: #f9fafb;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.gallery-play-btn:hover {
    background: #f3f4f6;
}

#lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#lightbox-content {
    max-width: 95vw;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#lightbox-close {
    position: absolute;
    top: 14px;
    right: 20px;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.06);
}

.lightbox-arrow.prev {
    left: 16px;
}

.lightbox-arrow.next {
    right: 16px;
}

/* ── ORARI E APERTURE SPECIALI IN TESTATA ────────────────── */
.orari-hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.orari-hero-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.orari-hero-speciali {
    width: 100%;
}

.page-hero .apertura-box {
    border: none !important;
    border-radius: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    margin-bottom: 0;
    box-shadow: none;
    animation: cinematic-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.page-hero .apertura-box .icona {
    display: inline-block;
    font-size: 1.15rem;
    margin-right: 6px;
    vertical-align: middle;
}

.page-hero .apertura-box .titolo-apertura {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fecaca !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
    margin-bottom: 6px;
    vertical-align: middle;
}

.page-hero .apertura-box .descrizione-apertura {
    margin: 2px 0 12px;
    color: rgba(248, 250, 252, 0.94);
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.page-hero .date-list {
    justify-content: flex-start;
    gap: 8px;
}

.page-hero .date-list li {
    background: rgba(220, 38, 38, 0.72);
    border: 1px solid rgba(254, 202, 202, 0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    padding: 5px 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    animation: cinematic-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.page-hero .date-list li.festivo {
    background: rgba(217, 119, 6, 0.78);
    border-color: rgba(253, 230, 138, 0.55);
}

.page-hero .date-list li:nth-child(1) {
    animation-delay: 0.22s;
}

.page-hero .date-list li:nth-child(2) {
    animation-delay: 0.28s;
}

.page-hero .date-list li:nth-child(3) {
    animation-delay: 0.34s;
}

.page-hero .date-list li:nth-child(4) {
    animation-delay: 0.40s;
}

.page-hero .date-list li:nth-child(5) {
    animation-delay: 0.46s;
}

.page-hero .date-list li:nth-child(6) {
    animation-delay: 0.52s;
}

.page-hero .date-list li:nth-child(7) {
    animation-delay: 0.58s;
}

.page-hero .date-list li:nth-child(8) {
    animation-delay: 0.64s;
}

.page-hero .date-list li:hover {
    transform: translateY(-2px);
    background: rgba(220, 38, 38, 0.92);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.page-hero .date-list li.festivo:hover {
    background: rgba(217, 119, 6, 0.95);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}

.page-hero .apertura-box p[style] {
    color: rgba(226, 232, 240, 0.85) !important;
    text-align: left;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

@media (min-width: 900px) {
    .orari-hero-layout {
        grid-template-columns: 0.95fr 1.25fr;
        align-items: center;
        gap: 36px;
    }

    .orari-hero-speciali {
        padding-left: 28px;
        border-left: 1px solid rgba(255, 255, 255, 0.18);
    }
}

.apertura-box {
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-md);
    background: #fffaf0;
    padding: 18px 14px;
    text-align: center;
    margin-bottom: 14px;
}

.apertura-box .icona {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.apertura-box .titolo-apertura {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.apertura-box .descrizione-apertura {
    margin: 0 0 12px;
    color: var(--text-main);
}

.date-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.date-list li {
    background: #dc2626;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.date-list li.festivo {
    background: #b45309;
}

.orari-card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    box-shadow: var(--shadow-md);
}

.orari-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.section-subtitle {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

.orari-stato-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.orari-stato-badge.aperto {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.orari-stato-badge.straordinario {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.orari-stato-badge.chiuso {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.orari-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.96rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.orari-table th,
.orari-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.orari-table tbody tr:last-child td {
    border-bottom: none;
}

.orari-table th {
    background: #f8fafc;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
    color: var(--text-muted);
}

.orari-col-giorno {
    font-weight: 600;
    color: var(--text-main);
}

.orari-table tr.oggi {
    background: #fef2f2;
    font-weight: 700;
    color: var(--brand-primary);
}

.orari-table tr.oggi td:first-child {
    box-shadow: inset 4px 0 0 var(--brand-primary);
}

.orari-table tr.straordinaria {
    background: #ecfdf5;
}

.orari-table tr.straordinaria td:first-child {
    box-shadow: inset 4px 0 0 #059669;
    color: #065f46;
    font-weight: 700;
}

.badge-oggi {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brand-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

.badge-aperto-straordinario {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #059669;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.badge-chiuso {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.84rem;
    font-weight: 600;
}

.orari-note-testo {
    margin: 16px 0 0;
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── FOOTER FULL-WIDTH ───────────────────────────────────── */
.site-footer {
    margin-top: auto;
    width: 100%;
    background: #fff5f5;
    border-top: 1px solid var(--border-light);
    border-radius: 0;
    padding: 22px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.site-footer p {
    margin: 4px 0;
}

/* ── BREAKPOINT TABLET / DESKTOP ─────────────────────────── */
@media (min-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .store-card {
        grid-template-columns: 1.05fr 1fr;
        gap: 28px;
        padding: 28px;
    }

    .map-frame-wrap iframe {
        height: 360px;
    }

    .about-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        align-items: stretch;
    }

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

    .card {
        padding: 34px 28px 48px;
    }

    .topbar-main {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-inner {
        display: none;
    }

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 4px 28px;
        gap: clamp(14px, 2.5vw, 28px);
        border-top: none;
        background: transparent;
    }

    .nav-menu a {
        padding: 8px 2px;
        min-height: 40px;
        border-radius: 0;
        background: transparent !important;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .nav-menu a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 4px;
        height: 2px;
        background: var(--brand-primary);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.22s ease;
    }

    .nav-menu a:hover::after,
    .nav-menu a.active::after {
        transform: scaleX(1);
    }
}

@media (min-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── RIFINITURE SMARTPHONE (< 768px) ──────────────────────── */
@media (max-width: 767px) {
    .hero-bg {
        object-position: 22% top;
    }

    .home-cinematic .hero-bg-slot:not(:first-child) {
        object-position: center;
    }

    .orari-hero-speciali {
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .page-hero .date-list li {
        font-size: 0.78rem;
        padding: 4px 10px;
    }

    .orari-card {
        padding: 16px 12px;
    }

    .orari-table th,
    .orari-table td {
        padding: 10px 8px;
        font-size: 0.88rem;
    }

    .badge-aperto-straordinario {
        font-size: 0.78rem;
        padding: 4px 10px;
        white-space: normal;
        text-align: center;
    }

    .gallery-arrow,
    .lightbox-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.35rem;
    }
}