/* ========================================================
   ALIMENTARI ANTONELLI - STILE PRINCIPALE
   Ispirato al design Ipertriscount & Tradizione Alimentare
   ======================================================== */

:root {
    --primary-orange: #e65100;
    --primary-orange-light: #ff7a18;
    --primary-orange-dark: #c43e00;
    --gradient-orange: linear-gradient(135deg, #d84315 0%, #ef6c00 45%, #ff8f00 100%);
    
    --brand-green: #1b7a37;
    --brand-green-light: #28a745;
    --brand-green-dark: #125826;
    
    --nav-home: #2e7d32;
    --nav-storia: #e65100;
    --nav-prodotti: #6a1b9a;
    --nav-contatti: #00897b;
    --nav-fb: #1877f2;
    --nav-wa: #25d366;
    
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ========================================================
   HEADER SUPERIORE (Stile Ipertriscount)
   ======================================================== */
.top-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
}

.top-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

/* Badge a sinistra */
.header-badge-left {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
}

.brand-badge-pill {
    background: #c62828;
    color: #ffffff;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(198, 40, 40, 0.3);
    text-align: center;
    white-space: nowrap;
}

.brand-badge-pill small {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 1px;
}

.header-badge-sub {
    font-size: 13px;
    font-weight: 700;
    color: #c62828;
    font-style: italic;
    line-height: 1.2;
}

/* Logo al centro */
.header-logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-decoration: none;
    justify-self: center;
    text-align: center;
}

.logo-symbol {
    height: 65px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Titolo Brand Verticale: ANTONELLI sopra, ❄ al centro, ALIMENTARI sotto */
.brand-main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    gap: 1px;
    white-space: nowrap;
}

.brand-main-title .word-green {
    color: var(--brand-green);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.05;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.05);
}

.brand-main-title .brand-icon-frost {
    color: var(--primary-orange);
    font-size: 17px;
    line-height: 1;
    display: inline-block;
    margin: 1px 0;
}

.brand-main-title .word-orange {
    color: var(--primary-orange);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.2px;
    line-height: 1.05;
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
    white-space: nowrap;
}

/* Card a destra (Area Clienti / Info) */
.header-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.client-info-badge {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #86efac;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.client-info-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge-icon-box {
    width: 36px;
    height: 36px;
    background: var(--brand-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.badge-texts {
    display: flex;
    flex-direction: column;
}

.badge-texts .badge-lbl {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--brand-green-dark);
    letter-spacing: 0.5px;
}

.badge-texts .badge-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-green-dark);
}

/* ========================================================
   BARRA DI NAVIGAZIONE CON ICONE COLORATE (Come lo Screenshot)
   ======================================================== */
.main-navbar {
    background-color: #ffffff;
    border-bottom: 2px solid #eef2f6;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.nav-links-list {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #334155;
    border-radius: var(--radius-pill);
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.nav-item-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    transform: translateY(-1px);
}

.nav-item-link.active {
    background-color: #f8fafc;
    color: #0f172a;
    box-shadow: inset 0 -2px 0 var(--primary-orange);
}

/* Icone tonde colorate del menu */
.nav-round-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.nav-round-icon.icon-home { background: var(--nav-home); }
.nav-round-icon.icon-storia { background: var(--nav-storia); }
.nav-round-icon.icon-prodotti { background: var(--nav-prodotti); }
.nav-round-icon.icon-contatti { background: var(--nav-contatti); }

/* Sezione social nella navbar */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-circle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 17px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-circle-btn:hover {
    transform: scale(1.1);
    opacity: 0.95;
}

.social-circle-btn.facebook { background: var(--nav-fb); }
.social-circle-btn.whatsapp { background: var(--nav-wa); }

/* Menu toggle mobile */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px;
}

/* ========================================================
   HERO CAROUSEL / BANNER ARANCIONE (Come lo Screenshot)
   ======================================================== */
.hero-slider-section {
    background: var(--gradient-orange);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 60px 0 70px 0;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.1);
}

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

/* Pallini indicatori in alto a sinistra (come screenshot) */
.slider-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* Slide Content */
.hero-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.hero-slide.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge-tag {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}

.hero-main-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-main-title .plus-symbol {
    font-family: Arial, sans-serif;
    font-weight: 900;
    display: inline-block;
    padding: 0 2px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 540px;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Grande pulsante CTA bianco (Come "Cominciamo!" nello screenshot) */
.hero-cta-btn {
    background: #ffffff;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    padding: 14px 42px;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    text-transform: capitalize;
}

.hero-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 26px rgba(0,0,0,0.3);
    color: var(--primary-orange);
}

/* Immagine hero a destra */
.hero-visual-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
}

.hero-img-card img {
    border-radius: var(--radius-md);
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

/* Frecce slider laterali (< e > come nello screenshot) */
.slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.15);
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.slider-arrow-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-btn.prev { left: 15px; }
.slider-arrow-btn.next { right: 15px; }

/* ========================================================
   STRISCIA VALORI / REPARTI IN EVIDENZA
   ======================================================== */
.features-strip {
    background: #ffffff;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius-md);
    background: #fdfbf7;
    border: 1px solid #f1ece4;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: #fed7aa;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-icon.orange { background: #ffedd5; color: #ea580c; }
.feature-icon.green { background: #dcfce7; color: #16a34a; }
.feature-icon.purple { background: #f3e8ff; color: #9333ea; }
.feature-icon.blue { background: #e0f2fe; color: #0284c7; }

.feature-texts h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.feature-texts p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ========================================================
   SEZIONI GENERALI
   ======================================================== */
.section-py {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    background: #ffedd5;
    color: var(--primary-orange);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 10px auto 0 auto;
}

/* ========================================================
   PRODOTTI IN VETRINA (Home) & CATALOGO (Prodotti.html)
   ======================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.product-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-dept-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
}

.badge-salumi { background: #ffe4e6; color: #e11d48; }
.badge-pane { background: #fef3c7; color: #d97706; }
.badge-dispensa { background: #ecfdf5; color: #059669; }
.badge-pesce { background: #e0f2fe; color: #0284c7; }
.badge-bevande { background: #f3e8ff; color: #7e22ce; }
.badge-surgelati { background: #cffafe; color: #0891b2; }
.badge-casa { background: #f1f5f9; color: #475569; }

.product-code-pill {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    font-family: monospace;
}

.product-image-container {
    height: 150px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 10px;
    border: 1px solid #f1f5f9;
}

.product-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-emoji-icon {
    font-size: 52px;
}

.product-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 8px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc-snippet {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 12px;
}

.product-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-orange);
}

.product-price .unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    margin-left: 2px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-card {
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
}

.btn-detail {
    background: #f1f5f9;
    color: #334155;
}

.btn-detail:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-whatsapp-order {
    background: #25d366;
    color: #ffffff;
}

.btn-whatsapp-order:hover {
    background: #1eb956;
    transform: translateY(-1px);
}

/* ========================================================
   FILTRI CATALOGO (Prodotti.html)
   ======================================================== */
.catalog-controls {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    font-size: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-pill);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrapper input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.12);
}

.search-icon-inside {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-muted);
}

.dept-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.dept-pill {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dept-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.dept-pill.active {
    background: var(--primary-orange);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(230, 81, 0, 0.25);
}

.filter-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.catalog-stats {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.catalog-stats strong {
    color: var(--text-dark);
}

.filter-selects {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-selects select {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    font-size: 13.5px;
    color: var(--text-dark);
    background: #ffffff;
    outline: none;
    cursor: pointer;
}

/* Paginazione */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-light);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.page-btn.active {
    background: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-orange);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========================================================
   SEZIONE STORIA / STORY HIGHLIGHT
   ======================================================== */
.story-highlight-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.story-highlight-img {
    position: relative;
    min-height: 380px;
}

.story-highlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-highlight-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--brand-green);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.story-highlight-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-box {
    background: #fff8f1;
    border-left: 4px solid var(--primary-orange);
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 16px;
    font-style: italic;
    color: #431407;
    margin: 20px 0;
    line-height: 1.6;
}

.btn-brand {
    background: var(--brand-green);
    color: #ffffff;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    transition: all 0.2s ease;
}

.btn-brand:hover {
    background: var(--brand-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-brand-orange {
    background: var(--primary-orange);
    color: #ffffff;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    transition: all 0.2s ease;
}

.btn-brand-orange:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================================
   PAGINA STORIA (storia.html)
   ======================================================== */
.story-header-banner {
    background: linear-gradient(135deg, #1b7a37 0%, #2e7d32 100%);
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 30px;
    border-left: 3px solid #fdba74;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-orange);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--primary-orange);
}

.timeline-year {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-orange);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-caption {
    padding: 15px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ========================================================
   PAGINA CONTATTI (contatti.html)
   ======================================================== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.contact-card-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.contact-box-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-box-icon.green { background: #dcfce7; color: #15803d; }
.contact-box-icon.orange { background: #ffedd5; color: #c2410c; }
.contact-box-icon.blue { background: #dbeafe; color: #1d4ed8; }
.contact-box-icon.purple { background: #f3e8ff; color: #7e22ce; }

.contact-box-content h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-box-content p, .contact-box-content a {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.contact-box-content a:hover {
    color: var(--primary-orange);
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(27, 122, 55, 0.12);
}

.map-container {
    margin-top: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

/* ========================================================
   MODALE DETTAGLIO PRODOTTO
   ======================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

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

.modal-content-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ========================================================
   FOOTER
   ======================================================== */
.main-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: auto;
    padding: 60px 0 20px 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-brand-title {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-brand-desc {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #94a3b8;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* ========================================================
   BANNER COOKIE GDPR
   ======================================================== */
.cookie-banner-wrap {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 800px;
    margin: 0 auto;
    background: #1e293b;
    color: #ffffff;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #334155;
    animation: slideUp 0.3s ease;
}

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

.cookie-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #cbd5e1;
}

.cookie-text a {
    color: #38bdf8;
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--brand-green);
    color: #ffffff;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-cookie-accept:hover {
    background: var(--brand-green-dark);
}

.btn-cookie-reject {
    background: transparent;
    color: #cbd5e1;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid #475569;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-cookie-reject:hover {
    background: #334155;
    color: #ffffff;
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */
@media (max-width: 992px) {
    .top-header-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 14px;
    }
    .header-badge-left { justify-self: center; }
    .header-logo-center { justify-self: center; }
    .header-card-right { justify-self: center; }
    .header-badge-sub { display: none; }
    .hero-slide.active { grid-template-columns: 1fr; text-align: center; }
    .hero-text-content { align-items: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-visual-content { display: none; }
    .story-highlight-card { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-header-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 12px;
    }
    .header-badge-left { justify-self: center; }
    .header-logo-center { justify-self: center; flex-direction: column; }
    .brand-main-title .word-green { font-size: 22px; }
    .brand-main-title .brand-icon-frost { font-size: 15px; }
    .brand-main-title .word-orange { font-size: 19px; }
    .brand-tagline { font-size: 10px; }
    .header-card-right { justify-self: center; width: auto; }
    
    .nav-mobile-toggle { display: block; }
    .nav-links-list {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 15px 0;
        gap: 8px;
    }
    .nav-links-list.mobile-open {
        display: flex;
    }
    .navbar-inner {
        flex-wrap: wrap;
    }
    .nav-socials {
        margin-left: auto;
    }
    
    .hero-main-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; }
    .hero-cta-btn { font-size: 17px; padding: 12px 30px; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    
    .cookie-banner-wrap { flex-direction: column; text-align: center; }
    .cookie-btns { width: 100%; justify-content: center; }
}
