/* ========================================
   ERREGGI - STYLESHEET COMPLETO CONSOLIDATO
   Colori Brand: #fcb040 (Primario) + #404040 (Secondario)
   Ultimo aggiornamento: Marzo 2026
   
   OTTIMIZZAZIONI:
   - Blocco mobile consolidato (era 3 blocchi separati)
   - Codice duplicato rimosso
   - File ottimizzato e organizzato
   - Versione: 2.2 FINALE
   - FIX: Gallery prodotto centrata completa (flex + object-position)
======================================== */

:root {
    --primary: #fcb040;
    --primary-dark: #e69e2d;
    --secondary: #404040;
    --secondary-light: #5a5a5a;
    --text-dark: #2c2c2c;
    --text-gray: #6a6a6a;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --success: #28a745;
    
    --container-width: 1200px;
    --section-spacing: 90px;
    --radius: 6px;
    --shadow-card: 0 15px 35px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn, .nav-link {
    font-family: 'Montserrat', sans-serif;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(252, 176, 64, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(252, 176, 64, 0.4);
}

.btn-outline {
    border-color: var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1rem;
}

.btn-white {
    background: var(--white);
    color: var(--secondary);
}

.btn-white:hover {
    background: var(--bg-light);
}

/* TOP BAR */
.top-bar {
    background-color: var(--secondary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span, .top-contacts span { 
    margin-right: 25px; 
}

.top-info i, .top-contacts i { 
    color: var(--primary); 
    margin-right: 8px; 
}

/* HEADER */
header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

/* NAVBAR LAYOUT - 3 ZONE */
.logo {
    flex: 0 0 auto;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.2rem;
}

/* Nascondi CTA mobile su desktop */
.mobile-menu-cta {
    display: none !important;
}

/* Menu centrato */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-center nav {
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
    position: relative;
}

.nav-links a:not(.btn):not(.mobile-menu-cta)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: 0.3s;
}

.nav-links a:not(.btn):not(.mobile-menu-cta):hover::after { 
    width: 100%; 
}

/* CTA destra */
.nav-cta {
    flex: 0 0 auto;
}

/* Hamburger Menu */
.hamburger { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--secondary); 
}

/* Close button nascosto su desktop */
.menu-close {
    display: none;
}

/* ============================================
   MENU A 3 LIVELLI - DROPDOWN GERARCHICO
============================================ */

/* Nav Item Base */
.nav-item {
    position: relative;
}

.menu-item-has-children {
    position: relative;
}

/* Dropdown Base (livello 1 e generale) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px 0;
    margin-top: 15px;
    z-index: 9999;
    min-width: 280px;
}

.nav-item:hover .dropdown-menu,
.menu-item-has-children:hover > .dropdown-menu {
    display: block;
}

/* Triangolo puntatore */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* Spazio hover invisibile per mantenere dropdown aperto */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

/* LIVELLO 2: Categorie (Persiane / Serramenti) */
.dropdown-level-2 {
    min-width: 300px !important;
}

.dropdown-level-2 > li {
    position: relative;
}

.dropdown-level-2 > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-level-2 > li > a:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 30px;
}

.dropdown-level-2 > li > a i {
    font-size: 0.8rem;
    opacity: 0.6;
    transition: all 0.3s;
}

.dropdown-level-2 > li:hover > a i {
    opacity: 1;
    transform: translateX(3px);
}

/* LIVELLO 3: Prodotti (si apre a destra) */
.submenu-parent {
    position: relative;
}

.dropdown-level-3 {
    display: none !important;
    position: absolute;
    top: -15px;
    left: 100%;
    margin-left: 0;
    margin-top: 0 !important;
    min-width: 280px;
    max-height: 450px;
    overflow-y: auto;
    padding: 20px 0;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.submenu-parent:hover > .dropdown-level-3 {
    display: block !important;
}

/* Scrollbar prodotti */
.dropdown-level-3::-webkit-scrollbar {
    width: 6px;
}

.dropdown-level-3::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.dropdown-level-3::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Link prodotti */
.dropdown-level-3 > li {
    margin: 0;
}

.dropdown-level-3 > li > a {
    display: block;
    padding: 12px 25px;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-level-3 > li > a:hover {
    background: #fffbf0;
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 30px;
}

/* Dropdown Cataloghi e altre voci (normali, 1 livello) */
.dropdown-menu:not(.dropdown-level-2):not(.dropdown-level-3) a {
    display: block;
    padding: 12px 25px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.dropdown-menu:not(.dropdown-level-2):not(.dropdown-level-3) a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 30px;
}

.dropdown-menu a::after {
    display: none;
}

/* HERO SECTION CON SLIDER */
.hero {
    background: none;
    color: var(--white);
    padding: 400px 0 160px;
    position: relative;
    overflow: hidden;
}

/* Slider Immagini Hero */
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Overlay Gradiente Fisso */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(64, 64, 64, 0.2) 0%, rgba(40, 40, 40, 0.6) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Indicatori Slider Hero */
.hero-slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

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

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
    background: var(--primary);
    width: 35px;
    border-radius: 6px;
}

/* STATS BAR - 3 COLONNE ORIZZONTALI DESKTOP */
.stats-bar {
    background: var(--white);
    padding: 40px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header span {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-gray);
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

/* SECTIONS */
section {
    padding: var(--section-spacing) 0;
}

section.bg-light {
    background: var(--bg-light);
}

/* ABOUT SECTION */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: var(--secondary);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
}

.feature-box i {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.feature-box h4 {
    color: var(--secondary);
    margin-bottom: 8px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transition: transform 0.5s;
    background: white;
}

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

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
    z-index: 2;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-features {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    flex-wrap: wrap;
}

.card-features span i {
    color: var(--primary);
    margin-right: 5px;
}

/* PARTNERSHIP */
.partnership {
    background: var(--secondary);
    padding: 100px 0;
    color: var(--white);
    text-align: center;
    background-image: radial-gradient(circle at top right, rgba(252, 176, 64, 0.1), transparent 40%);
}

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    text-align: left;
}

.partner-box {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.partner-box:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.partner-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.partner-box h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT PAGE - FIX COMPLETO GALLERY
   MODIFICATO: 2026-03-13 - Fix crop immagine FINALE
   - Container con altezza minima garantita (600px)
   - Flexbox per centratura perfetta verticale e orizzontale
   - Object-position center center forzato
   - Padding interno 20px per margini uniformi
   - Max-height e max-width 100% per prevenire overflow
═══════════════════════════════════════════════════════════ */

.product-detail {
    padding: 80px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* GALLERY PRODOTTO - FIX CROP IMMAGINE */
.product-gallery {
    background: white !important;
    padding: 0 !important;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 120px;
    overflow: hidden;
    min-height: 600px;
}

/* Container Slider */
.product-slider-container {
    background: white !important;
    width: 100%;
    height: 100%;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Singola Slide */
.product-slide {
    background: white !important;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Immagine Prodotto - CENTRATA E COMPLETA */
.product-slide img {
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: white !important;
    margin: 0 auto;
}

/* Effetto Zoom su Hover (opzionale) */
.product-slide:hover img {
    cursor: zoom-in;
}

/* BOTTONI NAVIGAZIONE SLIDER - MIGLIORATI */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(252, 176, 64, 0.95) !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 1.3rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(252, 176, 64, 0.4) !important;
}

.slider-btn:hover {
    background: rgba(230, 158, 45, 1) !important;
    transform: translateY(-50%) scale(1.15) !important;
    box-shadow: 0 6px 20px rgba(252, 176, 64, 0.6) !important;
}

.slider-btn:active {
    transform: translateY(-50%) scale(1.05) !important;
}

.slider-btn.prev-btn {
    left: 20px !important;
}

.slider-btn.next-btn {
    right: 20px !important;
}

.slider-btn i {
    pointer-events: none;
}

/* DOTS INDICATORI SLIDER - MIGLIORATI */
.slider-dots {
    position: absolute;
    bottom: 20px !important;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 50;
}

.slider-dots span {
    width: 12px !important;
    height: 12px !important;
    background: rgba(64, 64, 64, 0.3) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent;
}

.slider-dots span:hover {
    background: rgba(64, 64, 64, 0.5) !important;
    transform: scale(1.2);
}

.slider-dots span.active {
    background: #fcb040 !important;
    width: 35px !important;
    border-radius: 6px !important;
    border-color: #fcb040;
}

/* INFO PRODOTTO */
.product-info {
    background: white;
    padding: 40px;
    border-radius: 8px;
}

.product-category-badge {
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.product-title {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 800;
}

.product-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.trust-badge {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-badge i {
    color: var(--primary);
    font-size: 2rem;
}

.trust-badge-content h4 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.trust-badge-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.cta-box {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
}

.product-tabs {
    margin-top: 60px;
    background: white;
    padding: 40px;
    border-radius: 8px;
}

.tabs-header {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--bg-light);
    margin-bottom: 30px;
}

.tab-button {
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-button.active {
    color: var(--secondary);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-item i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 5px;
}

.feature-item h4 {
    color: var(--secondary);
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* CONTACT PAGE */
.contact-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--secondary) 0%, #2a2a2a 100%);
    color: white;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.contact-box:hover {
    box-shadow: 0 5px 20px rgba(252, 176, 64, 0.2);
    transform: translateY(-3px);
}

.contact-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-box h3 i {
    font-size: 1.3rem;
}

.contact-box a {
    color: var(--secondary);
    font-weight: 600;
    transition: color 0.3s;
}

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

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================
   FOOTER - 4 COLONNE ORIZZONTALI DESKTOP
============================================ */

footer {
    background-color: var(--secondary);
    color: #b0b0b0;
    padding: 80px 0 30px;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-links li { 
    margin-bottom: 12px; 
}

.footer-links a { 
    transition: all 0.3s; 
}

.footer-links a:hover { 
    color: var(--primary); 
    padding-left: 5px; 
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.contact-info i {
    color: var(--primary);
    margin-top: 5px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Copyright centrato */
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

.copyright p {
    margin: 0 0 10px 0;
}

.copyright a {
    color: inherit;
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.copyright a:hover {
    opacity: 1;
    color: var(--primary);
}

/* ============================================
   RESPONSIVE - TABLET
============================================ */

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partnership-grid { 
        grid-template-columns: 1fr; 
    }
    
    .footer-grid { 
        grid-template-columns: 1fr 1fr;
    }
    
    .product-layout { 
        grid-template-columns: 1fr; 
    }
    
    .product-gallery { 
        position: relative; 
        top: 0; 
    }
    
    .contact-grid { 
        grid-template-columns: 1fr; 
    }
    
    .features-grid { 
        grid-template-columns: 1fr; 
    }
    
    .trust-badges { 
        grid-template-columns: 1fr; 
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .dropdown-level-3 {
        position: static;
        box-shadow: none;
        border-left: 3px solid var(--primary);
        margin-left: 20px;
        margin-top: 10px !important;
        max-height: 300px;
    }
    
    .dropdown-level-2 {
        min-width: 280px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR DESKTOP - POSIZIONAMENTO LOGO E CTA
   Aggiunto: 2026-03-12
═══════════════════════════════════════════════════════════ */

@media screen and (min-width: 769px) {
    nav.navbar div.container div.nav-wrapper div.logo-wrapper {
        margin-left: -60px !important;
        position: relative !important;
    }
    
    nav.navbar div.container div.nav-wrapper div.nav-cta {
        margin-left: 60px !important;
        position: relative !important;
    }
    
    nav.navbar div.container div.nav-wrapper {
        padding: 0 40px 0 10px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE CONSOLIDATO
   Versione: 2.2 FINALE
   Data: 2026-03-13
   Breakpoint: 768px
   
   INCLUDE:
   - Menu mobile completo (hamburger, overlay, dropdown accordion)
   - Card prodotti homepage responsive
   - Form contatti responsive
   - Sezione partner responsive
   - Fix overlay, CTA sticky, tab verticali
   - Touch targets ottimizzati
   - Layout generale mobile
   - GALLERY PRODOTTO MOBILE ottimizzata (NUOVE MODIFICHE)
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    
    /* ═══════════════════════════════════════
       NAVBAR & MENU MOBILE
    ═══════════════════════════════════════ */
    
    .top-bar { display: none; }
    .nav-cta { display: none !important; }
    
    .hamburger {
        display: flex;
        font-size: 1.8rem;
        color: var(--secondary);
        cursor: pointer;
        z-index: 10001;
        padding: 12px;
        min-width: 50px;
        min-height: 50px;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger:active {
        color: var(--primary);
        transform: scale(1.1);
    }
    
    /* Menu slide-in */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 25px rgba(0,0,0,0.2);
        padding: 100px 0 30px;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        display: flex !important;
        flex-direction: column;
        gap: 0;
        min-height: calc(100vh - 130px);
    }
    
    .nav-links.active { right: 0; }
    
    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5) !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s;
        z-index: 9999;
    }
    
    .nav-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    body.menu-open { overflow: hidden; }
    
    /* Voci menu */
    .nav-links > li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links > li > a {
        display: flex;
        align-items: center;
        padding: 18px 25px;
        font-size: 1.1rem;
        color: var(--secondary);
        font-weight: 600;
        min-height: 54px;
    }
    
    .nav-links > li > a::after { display: none !important; }
    .nav-links > li > a:active { background: var(--bg-light); color: var(--primary); }
    
    /* Dropdown accordion */
    .nav-item.has-dropdown > a::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 25px;
        font-size: 1rem;
        color: var(--primary);
        transition: transform 0.3s;
    }
    
    .nav-item.has-dropdown.active > a::after { transform: rotate(180deg); }
    
    .dropdown-menu {
        position: static !important;
        display: none;
        box-shadow: none !important;
        background: #f9f9f9 !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    
    .dropdown-menu::before,
    .dropdown-menu::after { display: none !important; }
    
    .nav-item.active > .dropdown-menu {
        display: block;
        max-height: 800px;
    }
    
    /* Level 2 */
    .dropdown-level-2 > li > a {
        padding: 16px 25px 16px 40px !important;
        font-size: 1rem !important;
        background: #f9f9f9 !important;
        display: flex !important;
        align-items: center !important;
        min-height: 52px !important;
        border-left: 3px solid transparent !important;
        justify-content: space-between !important;
    }
    
    .dropdown-level-2 > li > a:active {
        background: #f0f0f0 !important;
        border-left-color: var(--primary) !important;
    }
    
    /* Level 3 */
    .dropdown-level-3 {
        position: static !important;
        box-shadow: none !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        border-left: 3px solid var(--primary);
        margin-left: 20px !important;
    }
    
    .submenu-parent.active > .dropdown-level-3 {
        max-height: 600px;
        padding: 10px 0 !important;
    }
    
    .dropdown-level-3 > li > a {
        padding: 14px 25px 14px 55px !important;
        font-size: 0.95rem !important;
        color: var(--text-gray) !important;
        background: white !important;
        min-height: 50px !important;
        display: flex;
        align-items: center;
        border-left: 3px solid transparent !important;
    }
    
    .dropdown-level-3 > li > a:active {
        background: #fffbf0 !important;
        border-left-color: var(--primary) !important;
    }
    
    .submenu-parent > a i {
        opacity: 1 !important;
        color: var(--primary) !important;
    }
    
    /* CTA mobile sticky */
    .mobile-menu-cta {
        display: block !important;
        margin: auto 25px 20px !important;
        padding: 16px 30px;
        background: linear-gradient(135deg, var(--primary), #f39c12);
        color: white;
        text-align: center;
        border-radius: 8px;
        font-weight: 700;
        font-size: 1rem;
        box-shadow: 0 5px 15px rgba(252,176,64,0.3);
        transition: all 0.3s;
        min-height: 50px;
        text-decoration: none;
        flex-shrink: 0;
        position: sticky;
        bottom: 20px;
        z-index: 10;
    }
    
    .mobile-menu-cta:active {
        transform: scale(0.98);
        box-shadow: 0 3px 10px rgba(252,176,64,0.4);
    }
    
    .nav-links > li:has(.mobile-menu-cta) {
        margin-top: auto !important;
        border: none !important;
        padding: 0 !important;
    }
    
    /* Close button */
    .menu-close {
        display: flex !important;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 2rem;
        color: var(--secondary);
        cursor: pointer;
        z-index: 10002;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
        background: rgba(252,176,64,0.1);
        border-radius: 50%;
        transition: all 0.3s;
    }
    
    .menu-close:active {
        color: var(--primary);
        transform: rotate(90deg);
        background: rgba(252,176,64,0.2);
    }
    
    .menu-close i {
        font-size: 1.8rem;
    }
    
    /* Scrollbar */
    .nav-links::-webkit-scrollbar { width: 6px; }
    .nav-links::-webkit-scrollbar-track { background: #f5f5f5; }
    .nav-links::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
    .nav-links::-webkit-scrollbar-thumb:hover { background: #f39c12; }
    
    /* ═══════════════════════════════════════
       GALLERY PRODOTTO MOBILE - NUOVE MODIFICHE
       Fix: Centratura e visualizzazione completa
    ═══════════════════════════════════════ */
    
    .product-gallery {
        padding: 0 !important;
        margin-bottom: 30px !important;
        min-height: 500px !important;
    }
    
    .product-slider-container {
        min-height: 500px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .product-slide {
        min-height: 500px !important;
        padding: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .product-slide img {
        max-height: 100% !important;
        max-width: 100% !important;
        object-position: center center !important;
        width: auto !important;
    }
    
    .slider-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
    
    .slider-btn.prev-btn {
        left: 10px !important;
    }
    
    .slider-btn.next-btn {
        right: 10px !important;
    }
    
    .slider-dots {
        bottom: 15px !important;
    }
    
    .slider-dots span {
        width: 10px !important;
        height: 10px !important;
    }
    
    .slider-dots span.active {
        width: 28px !important;
    }
    
    /* ═══════════════════════════════════════
       CARD PRODOTTI HOMEPAGE
    ═══════════════════════════════════════ */
    
    .products-grid-homepage {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 15px !important;
    }
    
    .product-card-hp {
        max-width: 100% !important;
        margin: 0 auto 30px auto !important;
    }
    
    .card-img-wrapper-hp {
        padding-bottom: 75% !important;
        width: 100% !important;
    }
    
    .card-img-wrapper-hp img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .card-tag-hp {
        font-size: 0.75rem !important;
        padding: 6px 14px !important;
        top: 12px !important;
        right: 12px !important;
    }
    
    .card-content-hp {
        padding: 25px 20px !important;
    }
    
    .card-content-hp h3 {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }
    
    .card-content-hp p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }
    
    .card-features-hp {
        gap: 12px !important;
        margin-bottom: 15px !important;
        flex-wrap: wrap !important;
    }
    
    .card-features-hp span {
        font-size: 0.85rem !important;
    }
    
    .btn-hp {
        padding: 14px 24px !important;
        font-size: 0.95rem !important;
    }
    
    /* ═══════════════════════════════════════
       FORM CONTATTI
    ═══════════════════════════════════════ */
    
    .contact-form-section {
        padding: 60px 0 !important;
    }
    
    .contact-form-section > div > div[style*="grid-template-columns: 1fr 1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .contact-form-section [style*="position: sticky"] {
        position: relative !important;
        top: 0 !important;
    }
    
    .contact-form-section [style*="position: sticky"] > div {
        padding: 30px !important;
        margin-bottom: 25px !important;
    }
    
    .form-wrapper {
        padding: 35px 25px !important;
    }
    
    .form-wrapper [style*="width: 70px"] {
        width: 55px !important;
        height: 55px !important;
        margin-bottom: 18px !important;
    }
    
    .form-wrapper h3 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    #contactForm [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 13px 16px !important;
        font-size: 0.95rem !important;
    }
    
    .form-group label {
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
    }
    
    #contactForm button[type="submit"] {
        padding: 16px 32px !important;
        font-size: 1rem !important;
    }
    
    /* ═══════════════════════════════════════
       SEZIONE PARTNER (WHY ERREGGI)
    ═══════════════════════════════════════ */
    
    .why-erreggi {
        padding: 60px 0 !important;
    }
    
    .two-col-layout {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }
    
    .slider-wrapper {
        order: 2 !important;
        margin-bottom: 0 !important;
    }
    
    #imageSlider .slide img {
        height: 350px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .partner-content {
        order: 1 !important;
        text-align: left !important;
    }
    
    .partner-content h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 18px !important;
    }
    
    .partner-content p {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
    
    .benefits-list {
        gap: 20px !important;
    }
    
    .benefit-item h4 {
        font-size: 1.1rem !important;
    }
    
    .partner-content a.btn {
        display: block !important;
        width: 100% !important;
        margin: 12px 0 !important;
        text-align: center !important;
    }
    
    /* ═══════════════════════════════════════
       LAYOUT GENERALE MOBILE
    ═══════════════════════════════════════ */
    
    .hero {
        padding: 200px 0 120px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-slide {
        background-attachment: scroll !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .hero-cta .btn {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
    }
    
    .hero-slider-dots {
        bottom: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
    }
    
    .section-header p {
        font-size: 1.05rem !important;
        padding: 0 10px !important;
    }
    
    /* TAB PRODOTTO VERTICALE */
    .tabs-header {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        border-bottom: none !important;
        margin-bottom: 30px;
        overflow-x: visible !important;
    }
    
    .tab-button {
        width: 100% !important;
        text-align: left !important;
        padding: 18px 20px !important;
        background: white !important;
        border: none !important;
        border-bottom: 2px solid #e0e0e0 !important;
        color: var(--secondary);
        font-weight: 600;
        cursor: pointer;
        position: relative;
        transition: all 0.3s;
        min-height: 56px;
    }
    
    .tab-button.active {
        background: #fffbf0 !important;
        color: var(--primary) !important;
        border-left: 4px solid var(--primary) !important;
        padding-left: 24px !important;
    }
    
    .tab-button.active::after {
        display: none !important;
    }
    
    .tab-button.active::before {
        content: '▶';
        position: absolute;
        right: 20px;
        color: var(--primary);
        font-size: 0.8rem;
    }
    
    .tab-button:active {
        background: #f8f9fa !important;
    }
    
    /* OVERFLOW FIX */
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
} /* Fine @media consolidato */

/* ═══════════════════════════════════════════════════════════
   FINE STYLES.CSS CONSOLIDATO + FIX GALLERY COMPLETO
   Versione: 2.2 FINALE
   Data: 2026-03-13
   Modifiche chiave:
   - Gallery desktop: flex + center + min-height 600px
   - Gallery mobile: flex + center + min-height 500px
   - Object-position: center center forzato
   - Padding 20px desktop, 15px mobile
   - Max-height/max-width 100% per prevenire overflow
═══════════════════════════════════════════════════════════ */