/* ============================================================
 * home.css - CSS estratto da index.php (homepage pubblica)
 * Performance: file esterno cachato 1 anno dal browser
 * ============================================================ */

:root {
    --accent: #D92525;
    --dark: #111111;
    --gold: #C5A059;
    --bg: #ffffff;
    --muted: #64748b;
    --muted-2: #94a3b8;
    /* Scala tipografica uniforme (1.25 major third) */
    --fs-base: 1rem;
    --fs-sm: 0.875rem;
    --fs-xs: 0.78rem;
    --fs-lg: 1.125rem;
    --fs-xl: clamp(1.4rem, 2.4vw, 1.85rem);
    --fs-2xl: clamp(1.85rem, 3.4vw, 2.6rem);
    --fs-3xl: clamp(2.2rem, 4.2vw, 3.2rem);
    /* Spaziature uniformi */
    --space-section: clamp(70px, 9vw, 110px);
    --space-element: clamp(20px, 3vw, 32px);
    --space-tight: clamp(12px, 1.6vw, 18px);
    /* Line-height uniformi */
    --lh-heading: 1.15;
    --lh-body: 1.65;
    --bg-alt: #f8fafc;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: #333;
    overflow-x: hidden;
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    padding-top: 100px;
}
@media (max-width: 991px) {
    body { padding-bottom: 80px; padding-top: 80px; }
}

/* === TIPOGRAFIA UNIFORME (1.25 major third) === */
h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
    line-height: var(--lh-heading);
    letter-spacing: -0.01em;
    color: #0f172a;
    margin: 0 0 0.6em 0;
    font-weight: 700;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: 1rem; font-weight: 700; }
h6 { font-size: var(--fs-sm); font-weight: 700; }
p  { margin: 0 0 1em 0; line-height: var(--lh-body); }

/* Sottotitoli e label coerenti */
small, .small { font-size: var(--fs-xs); line-height: 1.5; }
.text-muted { color: #64748b !important; }
.section-title, .card-title-custom { letter-spacing: -0.005em; }

/* Margini uniformi tra elementi impilati */
.h1 + p, h1 + p, h2 + p, h3 + p, h4 + p { margin-top: 0.5em; }
p + h1, p + h2, p + h3, p + h4, p + h5, p + h6 { margin-top: 1.5em; }

/* === SPAZIATURA TRA SEZIONI (respiro verticale) === */
section { padding: var(--space-section) 0; }
section + section { padding-top: var(--space-section); }
.container { padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); }

/* === DIVIDER decorativo riusabile (sostituisce 4 div dorati identici) === */
.section-divider { width: 60px; height: 3px; background: var(--accent); margin: 15px auto 0; }
.section-divider.gold { background: var(--gold); }

/* === ICONA social centrata nel wrapper (sostituisce 5 style inline identici) === */
.social-icon-wrap { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* === TOC Privacy (Indice rapido nel modal) === */
.privacy-toc-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.privacy-toc-list li a { color: var(--muted); text-decoration: none; font-size: 0.82rem; padding: 2px 0; display: inline-block; transition: color 0.2s; }
.privacy-toc-list li a:hover { color: var(--accent); }
@media (max-width: 575px) { .privacy-toc-list { grid-template-columns: 1fr; } }

/* === Logo Digital Magix footer === */
.dm-credit-logo { height: 22px; width: 22px; vertical-align: middle; margin-left: 5px; }

/* === CARD MODERNE: radius coerente, ombre leggere, hover eleganti === */
.news-card,
.review-card,
.gallery-item,
.featured-card,
.smart-btn-integrated {
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.news-card:hover,
.review-card:hover,
.gallery-item:hover,
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    border-color: rgba(197, 160, 89, 0.4);
}
.gallery-item {
    overflow: hidden;
    border: 1px solid transparent;
}
.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.08); }

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.99);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    min-height: 100px;
}
.navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 10;
}
.navbar-brand img {
    max-height: 75px;
    width: auto;
    object-fit: contain;
}
.navbar-brand span {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: -1px;
}
.gtranslate_wrapper {
    position: relative;
    z-index: 20;
    margin-right: auto;
}
.desktop-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-link-custom {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
}
.nav-link-custom:hover {
    color: var(--accent);
}
.btn-menu-nav {
    background: var(--accent);
    color: white !important;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(217, 37, 37, 0.3);
}
.navbar-toggler {
    border: none;
    padding: 0;
    z-index: 20;
    background: none;
}
.offcanvas {
    width: 85% !important;
    max-width: 350px;
}
.offcanvas-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    gap: 30px;
}
.mobile-link {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    text-transform: uppercase;
}
@media (max-width: 991px) {
    .navbar { min-height: 80px; }
    .navbar-brand img { max-height: 50px; }
    .desktop-menu { display: none; }
}

/* Hero Carousel */
.hero-carousel {
    height: 60vh;
    max-height: 700px;
    min-height: 400px;
    width: 100%;
    position: relative;
    background: #000;
    margin-top: 0;
    overflow: hidden;
}
.carousel-item {
    height: 60vh;
    max-height: 700px;
    min-height: 400px;
    position: relative;
    background: #000;
}
.hero-bg {
    position: absolute;
    inset: 0;
    transform: scale(1.05);
}
.carousel-item.active .hero-bg {
    animation: zoom 25s infinite alternate;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
}
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}
.hero-content h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85), 0 2px 4px rgba(0, 0, 0, 1);
    margin: 0 0 16px 0;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.hero-content p.fs-4 {
    font-size: clamp(0.95rem, 1.6vw, 1.2rem) !important;
    font-weight: 300;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.18em;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.95);
}

.btn-hero {
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 1.2px;
    text-decoration: none;
    margin: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.btn-hero i {
    font-size: 1.2rem;
    margin-right: 8px;
}
.btn-hero-pri {
    background: var(--dark);
    color: white;
    border: 2px solid var(--dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.btn-hero-pri:hover {
    background: #000;
    color: white;
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.btn-hero-wa {
    background: #25d366;
    color: white;
    border: 2px solid #25d366;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}
.btn-hero-wa:hover {
    background: #1ebe5b;
    color: white;
    border-color: #1ebe5b;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55);
}
.btn-hero-outline {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* Hero Phone Display (numero visibile sotto bottone CHIAMA/WHATSAPP) */
.hero-phone-display {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
}
.hero-phone-display:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    color: #ffffff;
}
@media (max-width: 575px) {
    .hero-phone-display { font-size: 0.95rem; padding: 8px 16px; }
    .hero-carousel, .carousel-item { height: 92vh; min-height: 520px; }
    .hero-content h1 { font-size: clamp(1.9rem, 9vw, 2.6rem) !important; }
    .btn-hero { padding: 12px 22px !important; font-size: 0.78rem !important; letter-spacing: 1px !important; margin: 6px !important; }
}
@keyframes zoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Smart Bar (Delivery) */
.smart-bar {
    background: var(--dark);
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.smart-bar .container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.smart-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 96px;
    min-height: 88px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.smart-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}
.smart-btn i {
    font-size: 1.5rem;
    line-height: 1;
}
.btn-wa { background: #1e293b; border-color: #25D366; box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.25); }
.btn-wa:hover { background: #25D366; border-color: #25D366; }
.btn-glovo { background: #1e293b; border-color: #FFC244; box-shadow: 0 0 0 1px rgba(255, 194, 68, 0.25); }
.btn-glovo:hover { background: #FFC244; color: #000; }
.btn-je { background: #1e293b; border-color: #D30206; box-shadow: 0 0 0 1px rgba(211, 2, 6, 0.25); }
.btn-je:hover { background: #D30206; }
.btn-tf { background: #1e293b; border-color: #589F38; box-shadow: 0 0 0 1px rgba(88, 159, 56, 0.25); }
.btn-tf:hover { background: #589F38; }
.btn-del { background: #1e293b; border-color: #00CCBC; box-shadow: 0 0 0 1px rgba(0, 204, 188, 0.25); }
.btn-del:hover { background: #00CCBC; color: #000; }
.btn-call { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }

/* Smart-bar: numero di telefono visibile sotto CHIAMA/CHAT */
.smart-btn-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.smart-btn-phone {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-family: 'Inter', monospace;
}

/* === SMART BAR INTEGRATO: icona + label + telefono in un unico blocco rettangolare === */
.smart-btn-integrated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff !important;
    background: #333;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 48px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.smart-btn-integrated:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
}
.smart-btn-integrated .smart-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    margin-right: 8px;
}
.smart-btn-integrated .smart-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}
.smart-btn-integrated .smart-btn-label {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}
.smart-btn-integrated .smart-btn-phone {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    margin-top: 2px;
    opacity: 0.9;
}

/* Varianti colore smart-btn-integrated (Pill Solid) */
.btn-call.smart-btn-integrated { background: #222; }
.btn-wa.smart-btn-integrated { background: #25D366; }
.btn-glovo.smart-btn-integrated { background: #FFC244; color: #00A082 !important; }
.btn-glovo.smart-btn-integrated .smart-btn-label, .btn-glovo.smart-btn-integrated i { color: #00A082 !important; }
.btn-je.smart-btn-integrated { background: #FF8000; }
.btn-del.smart-btn-integrated { background: #00CCBC; }
.btn-tf.smart-btn-integrated { background: #4D8D5A; }

@media (max-width: 575px) {
    .smart-btn-integrated { padding: 10px 18px; }
    .smart-btn-integrated .smart-btn-icon { font-size: 1.2rem; margin-right: 6px; }
    .smart-btn-integrated .smart-btn-label { font-size: 0.75rem; }
    .smart-btn-integrated .smart-btn-phone { font-size: 0.72rem; }
}

/* Story / Chi Siamo */
.story-content {
    text-align: left;
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
}
.story-content p { margin-bottom: 1rem; }
.story-content p:last-child { margin-bottom: 0; }
.story-content strong { color: var(--dark); font-weight: 700; }
.story-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1rem;
}
.story-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}
.story-content li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
    top: -1px;
}
@media (max-width: 768px) {
    .story-content {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 10px;
    }
}

/* Swiper */
.swiper-container {
    width: 100%;
    padding-bottom: 50px;
}
.swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
    width: 14px;
    height: 14px;
    transition: 0.3s;
    margin: 0 8px !important;
}
.swiper-pagination-bullet-active {
    background: var(--accent);
    transform: scale(1.3);
}

/* News */
.news-section {
    background: var(--bg-alt);
    padding: 80px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    cursor: pointer;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    border-color: rgba(197, 160, 89, 0.4);
}
.news-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e2e8f0;
}
.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-card:hover .news-img { transform: scale(1.08); }
.news-zoom-icon {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0;
    transition: 0.3s;
}
.news-img-wrap:hover .news-zoom-icon { opacity: 1; }
.news-body {
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-desc {
    color: #475569;
    font-size: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}
.news-divider {
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 5px;
    margin-top: auto;
}

/* News: layout singolo (centrato) */
.news-card-single {
    max-width: 540px;
    margin: 0 auto;
}
.news-card-single .news-img-wrap {
    aspect-ratio: 2/1;
}
.news-card-single .news-title { font-size: 1.7rem; }
.news-card-single .news-desc { -webkit-line-clamp: 4; }

/* News: layout swipe (2-3 news) */
.news-swiper {
    overflow: visible;
    padding: 10px 4px 50px;
}
.news-swiper .swiper-slide {
    height: auto;
}
@media (min-width: 768px) {
    .news-swiper .swiper-slide { width: 360px !important; }
}
@media (min-width: 1200px) {
    .news-swiper .swiper-slide { width: 380px !important; }
}

/* News section spacing mobile */
@media (max-width: 575px) {
    .news-section { padding: 50px 0; }
    .news-card-single .news-title { font-size: 1.4rem; }
    .news-card-single .news-body { padding: 16px 14px; }
}

/* Blocco Home: 3 card rettangolari bordate (stile Gutta) */
.featured-section { padding: 80px 0; background: var(--bg-alt); }
.featured-section-title {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #1e293b;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.featured-section-subtitle {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #64748b;
    margin-bottom: 50px;
    line-height: 1.5;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.featured-item { display: flex; }
.featured-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 460px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    border-color: rgba(197, 160, 89, 0.4);
}
.featured-image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    height: 320px;
    min-height: 320px;
}
.featured-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-card:hover .featured-image-wrap img { transform: scale(1.05); }
.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 8px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
}
.featured-placeholder i { font-size: 2.5rem; }
.featured-placeholder span { font-size: 0.85rem; font-weight: 600; }
.featured-text { padding: 18px 4px 4px; text-align: center; }
.featured-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.featured-description {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}
.featured-label-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    pointer-events: none;
}
@media (max-width: 991px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .featured-card { min-height: 420px; }
    .featured-image-wrap { height: 280px; min-height: 280px; }
}
@media (max-width: 767px) {
    .featured-grid { grid-template-columns: 1fr; gap: 24px; }
    .featured-card { min-height: 380px; }
    .featured-image-wrap { height: 240px; min-height: 240px; }
    .featured-section { padding: 50px 0; }
    .featured-section-title { margin-bottom: 32px; }
}

/* Reviews */
.reviews-section { padding: var(--space-section) 0; background: var(--bg); }
.review-card {
    background: var(--bg);
    padding: 30px 25px;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s;
    margin-bottom: 24px;
}
.review-card:hover {
    transform: translateY(-4px);
    border-color: #d4af37;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.review-source { font-size: 1.3rem; margin-bottom: 12px; }
.review-text {
    font-style: italic;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
    min-height: 100px;
}
.review-author {
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}
.stars { color: #f59e0b; font-size: 1rem; margin-bottom: 12px; }
.review-card .stars { margin-top: auto; }

.reviews-scroll-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.reviews-scroll-row::-webkit-scrollbar { display: none; }
@media (min-width: 992px) {
    .review-card[style*="min-width"] { 
        min-width: calc((100% - 48px) / 3) !important; 
        max-width: calc((100% - 48px) / 3) !important; 
    }
}

/* Reel / Video */
.reel-section {
    background: #0f172a;
    padding: 80px 0;
    overflow: hidden;
}
.reel-card {
    background: #1e293b;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    max-width: 320px;
    cursor: pointer;
}
.reel-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 5;
}
.reel-play-overlay i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}
.reel-card:hover .reel-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}
.reel-card:hover .reel-play-overlay i {
    transform: scale(1.2);
    color: var(--gold);
}
.reel-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.reel-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.reel-direct-link {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}
.reel-direct-link:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.reel-social-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 25px;
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.reel-social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E4405F, #f09433, #E4405F);
}
.reel-social-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.reel-social-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
}
.reel-social-icon .bi-instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
}
.reel-social-icon .bi-tiktok { color: #fff; font-size: 3rem; }
.reel-social-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 5px;
}
.reel-social-label {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.reel-social-sub {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 5px;
}
.reel-social-cta .btn {
    background: var(--gold);
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 12px 28px;
}
.reel-social-cta .btn:hover {
    background: #f4d03f;
    transform: scale(1.05);
}

.reel-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 300px;
}
.reel-fallback:hover {
    background: linear-gradient(135deg, #334155, #1e293b);
    transform: scale(1.02);
}
.reel-fallback i { font-size: 4rem; margin-bottom: 15px; }
.reel-fallback i.bi-instagram { color: #E4405F; }
.reel-fallback i.bi-tiktok { color: #fff; }
.reel-fallback span {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* News Modal */
#newsDetailModal .modal-content {
    border-radius: 24px;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
#newsDetailModal .modal-body { padding: 0; }
.news-modal-img {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
    background: #e2e8f0;
}
.news-modal-text { padding: 30px; }
.news-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: #111;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
    z-index: 10;
    border: none;
}

/* Promo Modal */
.promo-modal {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 10000;
    position: fixed;
    inset: 0;
}
.promo-content {
    background: #fff;
    border-radius: 28px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    overflow: hidden;
    position: relative;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.promo-img-wrapper {
    position: relative;
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}
.promo-body {
    padding: 35px 30px;
    background: #fff;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.promo-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: #111;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    border: none;
}
.btn-promo-action {
    background: linear-gradient(135deg, var(--accent) 0%, #b01f1f 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.05rem;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}

/* Cookie Banner
   NOTA 2026-06-14: il banner e' stato sostituito dal componente granulare
   in inc/cookie_banner.php (#magixCookieBanner). Le regole legacy qui sotto
   restano solo come fallback per evitare regressioni su pagine che includono
   ancora la versione 1.x del banner. Il banner attivo usa lo style block
   inline emesso dal componente. */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 85px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: popUp 0.5s ease;
    margin: 0 auto;
}
.cookie-body { padding: 25px; }
.cookie-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.cookie-text {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
}
.cookie-buttons { display: flex; gap: 10px; }
.btn-cookie {
    flex: 1;
    border: none;
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
    cursor: pointer;
}
.btn-cookie-accept {
    background: var(--accent);
    color: white;
}
.btn-cookie-accept:hover { background: #059669; }
.btn-cookie-decline { background: #e2e8f0; color: #334155; }
@media (min-width: 992px) {
    .cookie-banner {
        bottom: 20px;
        left: 20px;
        right: auto;
        margin: 0;
    }
}

/* Social Buttons */
.social-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 10px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.social-btn:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.sb-insta { background: linear-gradient(45deg, #f09433, #bc1888); }
.sb-tiktok { background: #000; }
.sb-fb { background: #1877f2; }
.sb-trip { background: #34e0a1; color: #000 !important; }
.sb-google { background: #4285F4; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 60px 0;
}
.gallery-item {
    height: 350px;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background: #f8fafc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}
.gallery-item:hover img { transform: scale(1.1); }
@media (max-width: 991px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .gallery-item { height: 140px; border-radius: 8px; }
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: #fff;
    padding: 90px 0 30px;
    font-size: 0.95rem;
    border-top: 5px solid var(--gold);
}
.footer-heading {
    color: var(--gold);
    margin-bottom: 25px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 12px;
    display: inline-block;
}
.footer a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 300;
    transition: 0.3s;
    padding: 5px 0;
    display: inline-block;
}
.footer a:hover {
    color: var(--gold);
    transform: translateX(5px);
}
.footer-logo {
    max-height: 90px;
    margin-bottom: 20px;
    object-fit: contain;
}
.footer-list {
    list-style: none;
    padding: 0;
}
.footer-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: start;
    gap: 15px;
    line-height: 1.6;
}
.footer-list i {
    color: var(--gold);
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
    margin-top: 5px;
}
.legal-text {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    text-align: center;
    letter-spacing: 0.5px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
    flex-shrink: 0;
}
.footer-social a:hover { transform: translateY(-4px); }
.footer-social a.fsi:hover { background: #E1306C; color: white; }
.footer-social a.fst:hover { background: #000; color: white; }
.footer-social a.fsf:hover { background: #1877F2; color: white; }
.footer-social a.fsy:hover { background: #FF0000; color: white; }
.footer-social a.fsg:hover { background: #4285F4; color: white; }
.footer-social a.fsta:hover { background: #34e0a1; color: #000; }
.ta-icon { width: 1.3em; height: 1.3em; display: inline-block; vertical-align: middle; }

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 25%;
    height: 100%;
    transition: 0.2s;
}
.mn-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
    color: #475569;
    transition: 0.2s;
}
.mn-item.active { color: var(--accent); }
.mn-item.active i {
    color: var(--accent);
    transform: translateY(-3px);
}

@media (max-width: 380px) {
  .mobile-nav { height: 65px; }
  .mn-item { font-size: 0.55rem; }
  .mn-item i { font-size: 1.2rem; margin-bottom: 2px; }
}
@media (min-width: 992px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 575px) {
  .smart-bar { padding: 6px !important; }
  .smart-bar .container { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .smart-btn { font-size: 0.7rem; padding: 6px 10px !important; }
  .smart-btn-integrated { min-width: 130px; padding: 8px 12px; gap: 8px; }
  .smart-btn-integrated .smart-btn-icon { width: 32px; height: 32px; font-size: 1rem; }
  .smart-btn-integrated .smart-btn-label { font-size: 0.65rem; }
  .smart-btn-integrated .smart-btn-phone { font-size: 0.7rem; }
}

.wa-floating-btn {
  position: fixed; bottom: 30px; right: 30px;
  background: linear-gradient(135deg, #25d366 0%, #1ebe5b 100%);
  color: white;
  border-radius: 50%; width: 64px; height: 64px;
  display: flex; justify-content: center; align-items: center;
  font-size: 32px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  z-index: 9999; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none; overflow: visible;
}
.wa-floating-btn .wa-floating-label {
  position: absolute; right: 76px; top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #1e293b; color: #fff; padding: 8px 14px;
  border-radius: 8px; font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.wa-floating-btn .wa-floating-label::after {
  content: ""; position: absolute; right: -5px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: #1e293b;
}
.wa-floating-btn:hover { transform: scale(1.1); box-shadow: 0 14px 40px rgba(37, 211, 102, 0.6); color: white; }
.wa-floating-btn:hover .wa-floating-label { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 991px) {
  .wa-floating-btn { bottom: 90px; right: 16px; width: 56px; height: 56px; font-size: 28px; }
  .wa-floating-btn .wa-floating-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-floating-btn { transition: none; }
  .wa-floating-btn:hover { transform: none; }
  .carousel-item.active .hero-bg { animation: none; transform: scale(1); }
  .news-card:hover, .featured-card:hover, .review-card:hover, .gallery-item:hover { transform: none; }
  .gallery-item img, .news-card .news-img { transition: none; }
}

@media (max-width: 575px) {
  .cookie-banner { left: 8px !important; right: 8px !important; bottom: 8px !important; padding: 12px !important; }
  .cookie-title { font-size: 0.95rem !important; }
  .cookie-text { font-size: 0.75rem !important; }
  .cookie-buttons { flex-direction: column; width: 100%; gap: 6px !important; }
  .btn-cookie { width: 100%; padding: 8px 12px !important; font-size: 0.75rem !important; }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}
.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
    line-height: 1;
    padding: 10px;
}
.lb-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}
.lb-nav:hover {
    color: var(--accent);
}
.lb-l { left: 0; }
.lb-r { right: 0; }

@keyframes popIn {
    0% { transform: scale(0.8) translateY(50px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes popUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Template overrides are in assets/css/templates/ */

/* Final Polish CSS */
.chi-siamo-card { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 24px; padding: 40px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); }
@media(max-width: 767px) { .chi-siamo-card { padding: 25px 15px; } }

.news-modal-split { display: flex; flex-direction: row; }
.news-modal-split-img { flex: 1; position: relative; min-height: 300px; }
.news-modal-split-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.news-modal-split-content { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; max-height: 80vh; overflow-y: auto; }
@media(max-width: 991px) { .news-modal-split { flex-direction: column; } .news-modal-split-img { min-height: 250px; } .news-modal-split-img img { position: relative; } .news-modal-split-content { padding: 25px; } }
