    @font-face {
	font-family: 'Calibri Light';
	src: url('https://www.cucinadellamamma.it/anteprima/css/Calibri Light.eot');
	src: local('Calibri Light'), url('https://www.cucinadellamamma.it/anteprima/css/Calibri Light.ttf') format('truetype');
	}  



	  :root {
            --napoli-blue: #00A3E0;
            --napoli-blue-dark: #007BB5;
            --warm-white: #FDFBF7;
            --text-dark: #2C3E50;
            --accent-gold: #D4A373;
        }

/* =========================================
   FIX SCROLL ORIZZONTALE (Solo Mobile)
   ========================================= */

/* Sicurezza globale: nasconde lo scroll orizzontale senza toccare le larghezze dei container */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;

}

/* Correzione mirata SOLO su mobile/tablet (max 768px) */
@media (max-width: 768px) {
    /* Su mobile, impediamo ai container di sbordare, ma su desktop restano centrati */
    .container, .container-fluid {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Riduciamo leggermente i margini negativi della row per evitare che escano dallo schermo */
    .row.g-3, .row.g-4 {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
    
    /* Compensiamo con il padding delle colonne per mantenere lo spazio tra gli elementi */
    .row.g-3 > *, .row.g-4 > * {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Sicurezza assoluta: nessuna immagine o elemento può superare la larghezza della colonna */
    img, video, .story-img, .gallery-item, .menu-card {
        max-width: 100% !important;
        height: auto;
    }
    
    /* Ombre più leggere su mobile per evitare sbordamenti visivi */
    .shadow-lg, .menu-card, .story-img {
        box-shadow: 0 8px 16px rgba(0,0,0,0.08) !important;
    }
}

/* =========================================
   NAVBAR CUCINA DELLA MAMMA — VERSIONE PULITA
   ========================================= */
:root { --nav-height: 88px; }

html { scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

.cdm-nav {
  --nav-fg: #ffffff;
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1030; padding: 18px 0;
  background: transparent; border: 0;
  border-bottom: 1px solid transparent;
  transition: padding .35s ease, background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.cdm-nav > .container { width: 100%; padding-left: 16px; padding-right: 16px; }

.cdm-nav.is-scrolled {
  --nav-fg: #2C3E50; padding: 10px 0;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 163, 115, .55);
  box-shadow: 0 6px 24px rgba(0, 40, 60, .08);
}

.cdm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
/* Logo immagine al posto dell'icona */
.cdm-brand-logo {
  flex: 0 0 auto;
  width: auto;
  height: 50px;
  max-width: 140px;
  object-fit: contain;
  display: block;
  transition: transform .3s ease, filter .3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Effetto hover sul logo */
.cdm-brand:hover .cdm-brand-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 163, 224, 0.3));
}

/* Quando la navbar diventa bianca (scroll), il logo si adatta */
.cdm-nav.is-scrolled .cdm-brand-logo {
  height: 44px;
  max-width: 120px;
}
.cdm-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.cdm-brand-title {
  font-family: 'Playfair Display', serif; font-size: 0.8rem; font-weight: 700;
  letter-spacing: .2px; color: var(--nav-fg); white-space: nowrap; transition: color .3s ease;
}
.cdm-nav.is-scrolled .cdm-brand-title { color: #00A3E0; }
.cdm-brand-subtitle {
  font-family: 'Lato', sans-serif; font-size: .65rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--nav-fg); opacity: .75; margin-top: 4px; transition: color .3s ease;
}

.cdm-nav-list { gap: 4px; list-style: none; margin-bottom: 0; padding-left: 0; display: flex; }
.cdm-nav .cdm-nav-link {
  position: relative; display: inline-block; padding: 10px 16px;
  font-size: .82rem; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; text-decoration: none; color: var(--nav-fg);
  -webkit-tap-highlight-color: transparent; transition: color .25s ease;
}
.cdm-nav .cdm-nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px;
  background: #D4A373; transform: scaleX(0); transform-origin: left center; transition: transform .3s ease;
}
.cdm-nav .cdm-nav-link.is-active::after { transform: scaleX(1); }

@media (hover: hover) and (pointer: fine) {
  .cdm-nav .cdm-nav-link:hover { color: #00A3E0; }
  .cdm-nav .cdm-nav-link:hover::after { transform: scaleX(1); }
  .cdm-nav:not(.is-scrolled) .cdm-nav-link:hover { color: #D4A373; }
}

.cdm-nav-cta { margin: 0; padding: 0; list-style: none; }
.cdm-nav .cdm-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px; background: #00A3E0; color: #fff !important;
  font-size: .78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 163, 224, .28);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cdm-nav .cdm-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 163, 224, .4); background: #007BB5; }

.cdm-toggler {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px; background: rgba(255, 255, 255, .10); cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.cdm-toggler-bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--nav-fg); transition: transform .3s ease, opacity .3s ease, background .3s ease; }
.cdm-nav.is-scrolled .cdm-toggler { border-color: rgba(0, 163, 224, .25); background: rgba(0, 163, 224, .07); }
.cdm-toggler[aria-expanded="true"] .cdm-toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cdm-toggler[aria-expanded="true"] .cdm-toggler-bar:nth-child(2) { opacity: 0; }
.cdm-toggler[aria-expanded="true"] .cdm-toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   MOBILE / TABLET 
   =========================================  */
@media (max-width: 991.98px) {
  .cdm-brand-logo {
    height: 40px;
    max-width: 110px;
  }
  .cdm-nav.is-scrolled .cdm-brand-logo {
    height: 36px;
    max-width: 100px;
  }


  :root { --nav-height: 76px; }
  .cdm-nav { padding: 14px 0; }
  .cdm-nav.is-scrolled { padding: 10px 0; }
  .cdm-brand-title { font-size: 1.05rem; }
  .cdm-brand-subtitle { display: none; }
  .cdm-brand { gap: 10px; }
  .cdm-toggler { display: inline-flex; }

  /* PANNELLO MOBILE: bianco, sempre. In overlay: non sposta NULLA. */
  .cdm-nav .cdm-collapse {
    position: absolute; top: 100%; left: 0; right: 0;
    margin: 0 !important; padding: 10px 16px 18px;
    background: #ffffff !important; /* FORZA IL BIANCO, NIENTE NERO */
    border-top: 3px solid #00A3E0;
    border-bottom: 1px solid rgba(0, 163, 224, .15);
    box-shadow: 0 18px 35px rgba(0, 30, 50, .18);
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto; overscroll-behavior: contain;
  }

  .cdm-nav .cdm-nav-list { flex-direction: column; align-items: stretch !important; gap: 4px; }
  .cdm-nav .cdm-nav-link {
    display: block; padding: 13px 14px; margin: 0; border-radius: 10px;
    border-left: 3px solid transparent; font-size: .95rem; font-weight: 600;
    letter-spacing: .2px; text-transform: none; color: #2C3E50 !important;
  }
  .cdm-nav .cdm-nav-link::after { display: none; }
  .cdm-nav .cdm-nav-link.is-active {
    background: rgba(0, 163, 224, .10); border-left-color: #00A3E0; color: #007BB5 !important;
  }
  .cdm-nav-cta { margin-top: 12px; }
  .cdm-nav .cdm-cta { display: flex; width: 100%; padding: 14px 20px; font-size: .85rem; }
}

@media (max-width: 380px) {

  .cdm-brand-logo {
    height: 43px;
    max-width: 90px;
  }
  .cdm-brand-title { font-size: .95rem; }
  .cdm-brand { gap: 8px; }
  .cdm-nav > .container { padding-left: 12px; padding-right: 12px; }
}

        .btn-napoli {
            background-color: var(--napoli-blue);
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s;
        }
        .btn-napoli:hover {
            background-color: var(--napoli-blue-dark);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 163, 224, 0.3);
        }

        /* Hero Video Section */
        .hero-video-container {
            position: relative;
            height: 95vh;
            min-height: 600px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .hero-video {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            transform: translate(-50%, -50%);
            z-index: -1;
            object-fit: cover;
        }
        .hero-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
            z-index: 0;
        }
        .hero-content {
            position: relative;
            z-index: 1;
            text-align: center;
            color: white;
            padding: 20px;
        }
        .hero-content h1 {
            font-size: 3.5rem;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        /* Sections General */
        section { padding: 30px 0; }
        .section-title {
            color: var(--napoli-blue);
            font-weight: 700;
            margin-bottom: 1.5rem;
            position: relative;
            display: inline-block;
        }
        .section-title::after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background-color: var(--accent-gold);
            margin: 10px auto 0;
        }

        /* Story Blocks (Zig-Zag per testo lungo) */
        .story-block {
            padding: 10px 0;
        }
        .story-img {
            border-radius: 15px;
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
            width: 100%;
            height: 400px;
            object-fit: cover;
        }

        /* Menu Cards */
        .menu-card {
            background: white;
            border-radius: 15px;
            border: 1px solid rgba(0, 163, 224, 0.2);
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            transition: transform 0.3s;
            height: 100%;
        }
        .menu-card:hover {
            transform: translateY(-5px);
            border-color: var(--napoli-blue);
        }
        .menu-header {
            background-color: var(--napoli-blue);
            color: white;
            padding: 20px;
            border-radius: 15px 15px 0 0;
            text-align: center;
        }
        .menu-header h3 { margin: 0; font-family: 'Playfair Display', serif; }
        .menu-body { padding: 30px; }
        .menu-item {
            display: flex;
            justify-content: space-between;
            border-bottom: 1px dashed #dee2e6;
            padding: 12px 0;
            margin-bottom: 5px;
        }
        .menu-item-name { font-weight: 700; color: var(--text-dark); }
        .menu-item-desc { font-size: 0.9rem; color: #6c757d; font-style: italic; }
        .price-box {
            background-color: var(--warm-white);
            border: 2px solid var(--accent-gold);
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            margin-top: 20px;
        }
        .price-box .price {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--napoli-blue);
        }
        .included-note {
            font-size: 0.85rem;
            color: #6c757d;
            margin-top: 15px;
            text-align: center;
            background: #e9f7fe;
            padding: 10px;
            border-radius: 8px;
        }

        /* Gallery */
        .gallery-item {
            overflow: hidden;
            border-radius: 10px;
            margin-bottom: 24px;
            cursor: pointer;
        }
        .gallery-item img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .gallery-item:hover img { transform: scale(1.1); }

        /* Prenotazione */
        .booking-section {
            background-color: white;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.05);
            padding: 50px;
        }
        .form-control, .form-select {
            border-radius: 8px;
            border: 1px solid #dee2e6;
            padding: 12px;
        }
        .form-control:focus, .form-select:focus {
            border-color: var(--napoli-blue);
            box-shadow: 0 0 0 0.2rem rgba(0, 163, 224, 0.25);
        }

        /* WhatsApp Float */
        .whatsapp-float {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: #25D366;
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            z-index: 1000;
            transition: transform 0.3s;
            text-decoration: none;
        }
        .whatsapp-float:hover { transform: scale(1.1); color: white; }

        /* Footer */
        footer {
            background-color: var(--text-dark);
            color: white;
            padding: 50px 0 20px;
        }
        footer a { color: #ccc; text-decoration: none; transition: color 0.3s; }
        footer a:hover { color: var(--napoli-blue); }

        @media (max-width: 768px) {
            .hero-content h1 { font-size: 2.2rem; }
            .booking-section { padding: 30px 20px; }
            .story-img { height: 250px; margin-bottom: 20px; }
        }
		
		
/* =========================================
   TITOLI E FRASI ROTANTI NELLA HERO
   ========================================= */

/* Contenitore titoli */
.rotating-titles {
    position: relative;
    height: 120px; /* Altezza fissa per il titolo */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.hero-title {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding: 0 20px;
    margin: 0;
    line-height: 1.2;
}

.hero-title.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Contenitore frasi */
.rotating-phrases {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 20px 0;
}

.phrase {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding: 0 20px;
}

.phrase.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive per titoli e frasi */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .rotating-titles {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .rotating-titles {
        height: 90px;
    }
    .rotating-phrases {
        height: 100px;
    }
    .phrase {
        font-size: 1.3rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .rotating-titles {
        height: 80px;
    }
    .phrase {
        font-size: 1.1rem;
    }
	
	
	        /* Hero Video Section */
        .hero-video-container {
            position: relative;
            height:65vh;
            min-height: 400px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
}


/* =========================================
   CAROUSEL RECENSIONI (Scroll-Snap)
   ========================================= */
.reviews-carousel-wrapper {
    position: relative;
    padding: 0 50px; /* Spazio per le frecce laterali */
}

.reviews-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px 10px 40px 10px; /* Padding extra in basso per l'ombra */
    
    /* Nasconde la scrollbar ma mantiene lo scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.reviews-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.review-card {
    flex: 0 0 100%; /* Mobile: 1 card alla volta */
    scroll-snap-align: start;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 40, 60, 0.06);
    border: 1px solid rgba(0, 163, 224, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 163, 224, 0.12);
}

.review-stars {
    color: #FFC107; /* Gello stelle */
    font-size: 0.9rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a5568;
    flex-grow: 1;
    margin-bottom: 24px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #edf2f7;
    padding-top: 16px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--napoli-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.author-source {
    font-size: 0.8rem;
    color: #718096;
    display: flex;
    align-items: center;
}

/* Frecce di navigazione */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 163, 224, 0.3);
    background: white;
    color: var(--napoli-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--napoli-blue);
    color: white;
    border-color: var(--napoli-blue);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Responsive: Tablet (2 card) */
@media (min-width: 768px) {
    .review-card {
        flex: 0 0 calc(50% - 12px);
    }
}

/* Responsive: Desktop (3 card) */
@media (min-width: 992px) {
    .review-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

/* Nascondi frecce su mobile (si usa il dito) */
/* =========================================
   RECENSIONI: CAROUSEL DESKTOP / COLONNA MOBILE
   ========================================= */

/* Su mobile: colonna verticale, niente carousel */
@media (max-width: 767px) {
    .reviews-carousel-wrapper {
        padding: 0 !important;
    }
    
    .carousel-btn {
        display: none !important;
    }
    
    .reviews-carousel-track {
        display: flex !important;
        flex-direction: column !important; /* ← La magia: colonna verticale */
        overflow-x: visible !important;    /* ← Niente scroll orizzontale */
        overflow-y: visible !important;
        scroll-snap-type: none !important; /* ← Disabilita lo snap */
        gap: 16px;
        padding: 0;
    }
    
    .review-card {
        flex: none !important;              /* ← Ogni card ha la sua altezza naturale */
        width: 100% !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid rgba(0, 163, 224, 0.15);
        transform: none !important;
        transition: none !important;
        margin: 0;
    }
    
    .review-card:hover {
        transform: none !important;
    }
    
    /* La card CTA "163+ Recensioni" si adatta alla colonna */
    .review-card-cta {
        padding: 24px 20px;
    }
}

/* =========================================
   CARD CTA RECENSIONI (Ultima card del carousel)
   ========================================= */
.review-card-cta {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--napoli-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-card-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 163, 224, 0.2);
    background: #ffffff;
    border-color: var(--napoli-blue-dark);
}

.cta-icon {
    font-size: 3rem;
    color: #4285F4; /* Blu Google */
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.review-card-cta:hover .cta-icon {
    transform: scale(1.1);
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--napoli-blue);
}

.cta-text {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.5;
    max-width: 90%;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--napoli-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 163, 224, 0.3);
}

.review-card-cta:hover .cta-button {
    background-color: var(--napoli-blue-dark);
    box-shadow: 0 6px 16px rgba(0, 163, 224, 0.4);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.review-card-cta:hover .cta-button i {
    transform: translateX(4px); /* Freccia che si muove a destra */
}


/* =========================================
   MAPPA FACADE (Click-to-Load) - FIX MARGINI
   ========================================= */
.map-facade-container {
    position: relative;
    width: 100%;
    height: 400px; /* Altezza fissa per evitare salti */
    background-color: #e9ecef;
    overflow: hidden; /* Taglia qualsiasi sbordamento */
    transition: all 0.3s ease;
}

/* Immagine placeholder: riempie tutto il container */
.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Overlay con pulsante */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Iframe di Google Maps */
#googleMap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0 !important; /* Rimuove qualsiasi bordo */
    margin: 0 !important; /* Rimuove qualsiasi margine */
    padding: 0 !important; /* Rimuove qualsiasi padding */
    display: none;
    z-index: 3;
}

/* Quando la mappa viene caricata */
.map-facade-container.map-loaded .map-placeholder,
.map-facade-container.map-loaded .map-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.map-facade-container.map-loaded #googleMap {
    display: block !important;
} 

/* =========================================
   CARD CTA GALLERIA (Home)
   ========================================= */
.gallery-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--napoli-blue);
    border-radius: 10px;
    padding: 30px 20px;
    height: 250px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 163, 224, 0.2);
    background: #ffffff;
    border-color: var(--napoli-blue-dark);
    color: var(--text-dark);
}

.gallery-cta-icon {
    font-size: 2.5rem;
    color: var(--napoli-blue);
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.gallery-cta-card:hover .gallery-cta-icon {
    transform: scale(1.15);
}

.gallery-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--napoli-blue);
}

.gallery-cta-text {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 18px;
    line-height: 1.5;
}

.gallery-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--napoli-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 163, 224, 0.3);
}

.gallery-cta-card:hover .gallery-cta-button {
    background-color: var(--napoli-blue-dark);
}

.gallery-cta-button i {
    transition: transform 0.3s ease;
}

.gallery-cta-card:hover .gallery-cta-button i {
    transform: translateX(4px);
}

/* =========================================
   LIGHTBOX MODAL
   ========================================= */
#lightboxModal .modal-content {
    background: transparent !important;
}

#lightboxModal .modal-body {
    background: rgba(0, 0, 0, 0.92);
    border-radius: 8px;
    padding: 20px !important;
}

.lightbox-image {
    max-height: 85vh;
    object-fit: contain;
}

/* =========================================
   PAGE HERO (per gallery.html)
   ========================================= */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    /* background-image rimosso da qui */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Aggiunto per sicurezza */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
}

.page-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.page-hero-content .lead {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .page-hero { height: 40vh; min-height: 280px; }
    .page-hero-content h1 { font-size: 2rem; }
    .page-hero-content .lead { font-size: 1rem; }
    .gallery-cta-card { height: 220px; padding: 20px 15px; }
}

	/* Evita layout shift per l'immagine LCP */
.story-img {
    aspect-ratio: 4 / 3; /* Riserva lo spazio prima che l'immagine carichi */
    background-color: #f0f0f0; /* Colore di sfondo neutro durante il caricamento */
    box-shadow: 0 8px 16px rgba(0,0,0,0.08) !important;
}


    .limoncello-hero {
        z-index: 1;
    }
    
    .z-1 {
        z-index: 2;
    }
    
    .text-shadow {
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    }
    
    .hover-lift {
        transition: all 0.3s ease;
    }
    
    .hover-lift:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
    }
    
    .hover-opacity:hover {
        opacity: 1 !important;
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-10px);
        }
        60% {
            transform: translateY(-5px);
        }
    }
    
    .animate-bounce {
        animation: bounce 2s infinite;
    }
    
    /* Effetto parallax leggero */
    .hero-background {
        transition: transform 0.3s ease;
    }
    
    .limoncello-hero:hover .hero-background {
        transform: scale(1.05);
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .limoncello-hero {
            min-height: 500px;
        }
        
        .limoncello-hero h1 {
            font-size: 2.5rem;
        }
        
        .limoncello-hero .lead {
            font-size: 1.1rem;
        }
    }