/* ========================================
   P.e.M. FRATELLI VALOTA - STYLES
   Dark Mode Glassmorphism Design
   ======================================== */

/* CSS Variables */
:root {
    --primary: #0f4c81;
    --primary-light: #1a6bb5;
    --primary-dark: #0a3a63;
    --bg-dark: #1a1a1a;
    --bg-darker: #141414;
    --bg-card: #222222;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-glow: rgba(15, 76, 129, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-dark);
}

/* Scroll Snap Sections */
section {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
}

/* Footer non ha scroll snap per permettere scroll libero */
footer {
    scroll-snap-align: none;
}

/* Glass Morphism Elements */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
}

nav.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-nav {
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo-nav img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    margin-top: 1rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile: Active state for dropdown */
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.dropdown-menu a:hover {
    background: rgba(15, 76, 129, 0.2);
    color: var(--primary-light);
    padding-left: 2rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85), rgba(15, 76, 129, 0.4)), 
                url('img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(15, 76, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 76, 129, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 1000px;
    padding: 0 2rem;
    animation: fadeInUp 1.2s ease forwards;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: -3px;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '↓';
    font-size: 2rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

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

/* ========================================
   COMMON SECTION STYLES
   ======================================== */
.container {
    max-width: 1200px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   CHI SIAMO SECTION
   ======================================== */
.chi-siamo {
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chi-siamo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.chi-siamo-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.chi-siamo-text p {
    margin-bottom: 1.5rem;
}

.chi-siamo-text strong {
    color: var(--primary-light);
    font-weight: 600;
}

.chi-siamo-glass {
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px var(--accent-glow);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px var(--accent-glow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   PRODOTTI SECTION
   ======================================== */
.prodotti {
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prodotti::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, var(--accent-glow) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(15, 76, 129, 0.2) 0%, transparent 40%);
}

.prodotti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.prodotto-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.prodotto-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 80px var(--accent-glow);
    z-index: 100;
}

.prodotto-card:hover .prodotto-modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Mobile: Active state for modals */
.prodotto-card.modal-active .prodotto-modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Posizionamento speciale per colonne destra */
.prodotto-card:nth-child(3n) .prodotto-modal,
.prodotto-card:nth-child(3n+2) .prodotto-modal {
    left: auto;
    right: 0;
    transform: translate(0, -50%) scale(0.8);
}

.prodotto-card:nth-child(3n):hover .prodotto-modal,
.prodotto-card:nth-child(3n+2):hover .prodotto-modal {
    transform: translate(0, -50%) scale(1);
}

.prodotto-card:nth-child(3n).modal-active .prodotto-modal,
.prodotto-card:nth-child(3n+2).modal-active .prodotto-modal {
    transform: translate(0, -50%) scale(1);
}

/* Posizionamento speciale per riga bassa */
.prodotto-card:nth-child(n+4) .prodotto-modal {
    top: auto;
    bottom: 50%;
    transform: translate(-50%, 50%) scale(0.8);
}

.prodotto-card:nth-child(n+4):hover .prodotto-modal {
    transform: translate(-50%, 50%) scale(1);
}

.prodotto-card:nth-child(n+4).modal-active .prodotto-modal {
    transform: translate(-50%, 50%) scale(1);
}

/* Combinazione: basso + destra */
.prodotto-card:nth-child(n+4):nth-child(3n) .prodotto-modal,
.prodotto-card:nth-child(n+4):nth-child(3n+2) .prodotto-modal {
    left: auto;
    right: 0;
    transform: translate(0, 50%) scale(0.8);
}

.prodotto-card:nth-child(n+4):nth-child(3n):hover .prodotto-modal,
.prodotto-card:nth-child(n+4):nth-child(3n+2):hover .prodotto-modal {
    transform: translate(0, 50%) scale(1);
}

.prodotto-card:nth-child(n+4):nth-child(3n).modal-active .prodotto-modal,
.prodotto-card:nth-child(n+4):nth-child(3n+2).modal-active .prodotto-modal {
    transform: translate(0, 50%) scale(1);
}

.prodotto-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.prodotto-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.prodotto-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Popup Modal - Glassmorphic (più opaco) */
.prodotto-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 400px;
    max-width: 90vw;
    background: rgba(20, 30, 50, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 2.5rem 2rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 100px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

.prodotto-card:hover .prodotto-modal {
    pointer-events: all;
}

.modal-brands {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.brand-logo {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 55px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.brand-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 76, 129, 0.4);
}

.modal-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(15, 76, 129, 0.6);
}

/* ========================================
   FOTO SECTION (GALLERY)
   ======================================== */
.foto {
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 100px var(--accent-glow);
}

.carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    min-width: 100%;
    /* Prima: height fissa 500px (rapporto 2:1), tagliava troppo le foto verticali 3:4.
       Ora: aspect-ratio 4:3 si adatta automaticamente alla larghezza disponibile
       a ogni dimensione di schermo, mantenendo un rapporto molto più equilibrato
       per foto verticali (si perde solo il 22% in alto/basso invece del 31%). */
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--bg-card), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-primary);
    position: relative;
}

.carousel-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    border-radius: 15px;
}

.carousel-caption h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.carousel-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

.gallery-link {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 3rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(15, 76, 129, 0.5);
}

.gallery-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(15, 76, 129, 0.7), 0 0 60px var(--accent-glow);
}

/* ========================================
   SOCIAL WALL SECTION
   ======================================== */
.social-wall {
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-wall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(15, 76, 129, 0.15) 0%, transparent 50%);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.social-item {
    aspect-ratio: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

/* Instagram Social Wall - 4 posts in 3:4 vertical ratio */
.social-grid-instagram {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.instagram-post {
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    display: block;
    text-decoration: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-post:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.95), rgba(26, 107, 181, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 80px var(--accent-glow);
}

.instagram-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.instagram-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.instagram-logo-cta {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.instagram-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.instagram-cta-container {
    text-align: center;
    margin-top: 3rem;
}

.instagram-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(131, 58, 180, 0.4);
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.instagram-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(131, 58, 180, 0.6);
}

.instagram-icon-cta {
    font-size: 1.5rem;
}


/* ========================================
   CONTATTI SECTION
   ======================================== */
.contatti {
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contatti-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-details a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px var(--accent-glow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 76, 129, 0.5), 0 0 40px var(--accent-glow);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--bg-darker);
    color: var(--text-primary);
    padding: 3rem 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: none;
    min-height: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a svg {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    max-width: 1200px;
    margin: 0 auto;
}

.company-name {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.legal-info {
    font-size: 0.8rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .chi-siamo-content,
    .contatti-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .prodotti-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-grid-instagram {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    /* Show Hamburger on Mobile */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 80px 0 20px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links > li > a {
        display: block;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    /* Dropdown in Mobile Menu */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(15, 76, 129, 0.1);
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.active .dropdown-menu {
        /* 9 voci x ~49px ciascuna: 600px lascia margine anche se
           qualche voce va a capo su schermi molto stretti */
        max-height: 600px;
    }

    .dropdown-menu a {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .logo-nav img {
        height: 40px;
    }

    section {
        padding: 3rem 1.5rem !important;
    }

    /* Hero Mobile Optimization */
    .hero {
        background-position: center 30%;
        background-attachment: scroll;
        background-size: cover;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Carousel Captions - Smaller on Mobile */
    .carousel-caption {
        padding: 1rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .carousel-caption h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* Carousel Controls - Smaller on Mobile */
    .carousel-controls {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .chi-siamo-content,
    .contatti-content {
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .social-grid-instagram {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .instagram-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .prodotti-grid {
        gap: 1.5rem;
    }

    .prodotto-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    section {
        padding: 2rem 1rem !important;
    }
}
    /* Product Modals - Tutti centrati su mobile */
    .prodotto-modal {
        left: 50% !important;
        right: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) scale(0.8) !important;
        width: 85vw !important;
        max-width: 350px !important;
    }

    .prodotto-card:hover .prodotto-modal,
    .prodotto-card.modal-active .prodotto-modal {
        transform: translate(-50%, -50%) scale(1) !important;
    }
/* PRODOTTI OVERVIEW CARDS - Clean Styles */

.prodotti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.prodotto-overview-card {
    text-decoration: none;
    display: block;
    position: relative;
}

.prodotto-card-inner {
    position: relative;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.prodotto-card-inner:hover {
    transform: scale(1.02);
}

.prodotto-card-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prodotto-card-content {
    flex-grow: 1;
}

.prodotto-card-title {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.prodotto-card-description {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.prodotto-card-footer {
    margin-top: auto;
}

.prodotto-card-brands {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    min-height: 43px;
}

.prodotto-card-brands img {
    height: 35px;
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.prodotto-card-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 76, 129, 0.3);
    width: 100%;
    text-align: center;
    display: block;
}

.prodotto-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 76, 129, 0.5);
}

/* Background images per card */
.card-legno { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-legno.jpg'); background-size: cover; background-position: center; }
.card-porte-interne { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-porte-interne.jpg'); background-size: cover; background-position: center; }
.card-laminati { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-laminati.jpg'); background-size: cover; background-position: center; }
.card-porte-blindate { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-porte-blindate.jpg'); background-size: cover; background-position: center; }
.card-esterni { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-esterni.jpg'); background-size: cover; background-position: center; }
.card-posa { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-posa.jpg'); background-size: cover; background-position: center; }
.card-rivestimenti { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-rivestimenti.jpg'); background-size: cover; background-position: center; }
.card-restauro { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-restauro.jpg'); background-size: cover; background-position: center; }
.card-consulenza { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-consulenza.jpg'); background-size: cover; background-position: center; }

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

@media (max-width: 768px) {
    .prodotti-grid {
        grid-template-columns: 1fr;
    }
    
    .prodotto-card-inner {
        height: 450px;
    }
}

/* ========================================
   PRODOTTI PAGE - CTA SECTION
   ======================================== */

.cta {
    padding: 6rem 2rem;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.cta .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(15, 76, 129, 0.5);
}

/* ========================================
   PRODOTTI PAGE STYLES
   ======================================== */

/* Hero prodotti */
.prodotti-hero {
    min-height: 50vh;
    padding: 8rem 2rem 4rem;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.prodotti-hero-bg {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85), rgba(15, 76, 129, 0.4)), url('img/hero-prodotti.jpg');
}

.prodotti-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.prodotti-hero p {
    font-size: 1.3rem;
}

/* Intro section */
.prodotti-intro {
    padding: 4rem 2rem;
}

.prodotti-intro .container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.prodotti-intro .section-title {
    margin-bottom: 1rem;
}

.prodotti-intro .section-description {
    font-size: 1rem;
    line-height: 1.7;
}

/* Grid prodotti */
.prodotti-section {
    padding: 3rem 2rem;
    background: var(--bg-darker);
}

.prodotti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card styles */
.prodotto-overview-card {
    text-decoration: none;
    display: block;
    position: relative;
    transition: transform 0.3s ease;
}

.prodotto-overview-card:hover {
    transform: translateY(-5px);
}

.prodotto-card-inner {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.prodotto-card-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prodotto-card-content {
    flex-grow: 1;
}

.prodotto-card-title {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.prodotto-card-description {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.prodotto-card-footer {
    margin-top: auto;
}

.prodotto-card-brands {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    min-height: 43px;
}

.prodotto-card-brands img {
    height: 35px;
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.prodotto-card-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 76, 129, 0.3);
    width: 100%;
    text-align: center;
    display: block;
}

.prodotto-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 76, 129, 0.5);
}

/* Background images per card */
.card-legno { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-legno.jpg'); background-size: cover; background-position: center; }
.card-porte-interne { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-porte-interne.jpg'); background-size: cover; background-position: center; }
.card-laminati { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-laminati.jpg'); background-size: cover; background-position: center; }
.card-porte-blindate { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-porte-blindate.jpg'); background-size: cover; background-position: center; }
.card-esterni { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-esterni.jpg'); background-size: cover; background-position: center; }
.card-posa { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-posa.jpg'); background-size: cover; background-position: center; }
.card-rivestimenti { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-rivestimenti.jpg'); background-size: cover; background-position: center; }
.card-restauro { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-restauro.jpg'); background-size: cover; background-position: center; }
.card-consulenza { background: linear-gradient(135deg, rgba(15, 76, 129, 0.85), rgba(0, 0, 0, 0.6)), url('img/prodotti/card-consulenza.jpg'); background-size: cover; background-position: center; }

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

@media (max-width: 768px) {
    .prodotti-hero {
        min-height: 40vh;
        padding: 6rem 1.5rem 3rem;
    }
    
    .prodotti-hero h1 {
        font-size: 2.2rem;
    }
    
    .prodotti-grid {
        grid-template-columns: 1fr;
    }
    
    .prodotto-card-inner {
        height: 450px;
    }
}