/* ======== IMPOSTAZIONI GLOBALI & MOBILE-FIRST ======== */

:root {
    --colore-primario: #1E90FF; /* Un blu professionale */
    --colore-testo: #333333;
    --colore-sfondo: #FFFFFF;
    --colore-sfondo-scuro: #1a1a1a;
    --colore-grigio-chiaro: #f4f4f4;
}

/* Reset base e font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Font pulito */
    line-height: 1.6;
    color: var(--colore-testo);
    background-color: var(--colore-sfondo);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.2rem; }

a {
    text-decoration: none;
    color: var(--colore-primario);
}

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

section {
    padding: 3rem 0;
}

/* ======== 1. HEADER (NAVIGAZIONE) ======== */
.main-header {
    background: var(--colore-sfondo);
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    position: sticky; /* Lo mantiene in cima */
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--colore-testo);
}

.main-nav {
    display: none; /* Nascosto su mobile */
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Adjust spacing between icons/switcher */
}

.icon-link svg {
    width: 24px; /* Adjust size as needed */
    height: 24px;
    stroke: var(--colore-testo); /* Match your text color */
    transition: stroke 0.2s ease;
}

.icon-link:hover svg {
    stroke: var(--colore-primario); /* Change color on hover */
}

/* Optional Cart Badge Styling */
.icon-link {
    position: relative; /* Needed for badge positioning */
    display: inline-block; /* Or flex if needed */
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.menu-toggle {
    display: block; /* Keep showing on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0; /* Remove default padding */
    line-height: 0; /* Helps align SVG */
}

/* Style the SVG inside the button */
.menu-toggle svg {
    width: 28px; /* Adjust size */
    height: 28px;
    stroke: var(--colore-testo); /* Match text color */
    transition: stroke 0.2s ease;
}

.menu-toggle:hover svg {
    stroke: var(--colore-primario); /* Hover color */
}

/* ======== 2. HERO & GATEWAY ======== */
.hero {
    position: relative;
    min-height: 100vh; /* Altezza schermo intero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    overflow: hidden;
    color: white;
}

.hero-background  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: var(--colore-sfondo-scuro); /* Fallback */
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background::after { /* Overlay scuro per leggibilità */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-background .desktop-video {
    display: none; /* Nascosto su mobile di default */
}

.hero-background .mobile-image,
.hero-background .desktop-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Copre l'area senza distorcere */
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-weight: 300;
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.gateway-container {
    display: flex;
    flex-direction: column; /* Pila verticale su mobile */
    gap: 1.5rem;
}

.gateway-card {
    display: block;
    background: rgba(0, 0, 0, 0.4); /* Sfondo semi-trasparente */
    border-radius: 12px;
    overflow: hidden;
    color: white;
    backdrop-filter: blur(5px); /* Effetto vetro smerigliato */
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gateway-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gateway-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gateway-card .card-content {
    padding: 1rem;
}

.gateway-card h3 {
    font-weight: 600;
}
.gateway-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ======== 3. SOCIAL PROOF ======== */
.social-proof {
    background: var(--colore-grigio-chiaro);
    padding: 2.5rem 0;
}

.social-proof .container {
    display: grid;
    /* 2 colonne su mobile */
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
}

.proof-item {
    font-size: 0.9rem;
    font-weight: 600;
}

.proof-item span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* ======== 4. COME FUNZIONA ======== */
.how-it-works-container {
    display: flex;
    flex-direction: column; /* Verticale su mobile */
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--colore-primario);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ======== 5. NUOVI STRUMENTI (CROSS-SELL) ======== */
.new-tools {
    background: var(--colore-grigio-chiaro);
}

.tools-container {
    display: flex;
    flex-direction: column; /* Verticale su mobile */
    gap: 2rem;
}

.tool-card {
    background: var(--colore-sfondo);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tool-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.tool-card h3, .tool-card p, .tool-card .cta-button {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}
.tool-card h3 { padding-top: 1.5rem; }
.tool-card .cta-button { margin-top: 0.5rem; margin-bottom: 1.5rem; }

/* Bottoni CTA */
.cta-button {
    display: inline-block;
    background: var(--colore-primario);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}
.cta-button:hover {
    background: #0056b3; /* Un blu più scuro */
}
.cta-button.secondary {
    background: var(--colore-testo);
}
.cta-button.secondary:hover {
    background: #555;
}

/* ======== 6. GALLERIA ISPIRAZIONALE ======== */
.gallery {
    text-align: center;
}
.gallery-grid {
    display: grid;
    /* 2 colonne su mobile */
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Immagini quadrate */
    object-fit: cover;
    border-radius: 8px;
}

/* ======== 7. FULFILLMENT ======== */
.fulfillment {
    background: var(--colore-sfondo-scuro);
    color: white;
    text-align: center;
}
.fulfillment h2 { color: white; }
.fulfillment p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* ======== 8. FOOTER ======== */
.main-footer {
    background: #222;
    color: #aaa;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-links a { color: white; }
.footer-social { margin-bottom: 1rem; }
.footer-social a { color: white; font-size: 1.5rem; margin: 0 0.5rem; }
.main-footer p { font-size: 0.9rem; }


/* ======== 9. AI CHATBOT ======== */
.ai-chat-button {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--colore-primario);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}


/* ======== MEDIA QUERIES (TABLET & DESKTOP) ======== */

/* Stili per Tablet (es. > 768px) */
@media (min-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }

    /* Mostra il menu desktop */
    .main-nav {
        display: flex;
        gap: 1.5rem;
    }
    .main-nav a {
        color: var(--colore-testo);
        font-weight: 600;
    }
    .menu-toggle {
        display: none; /* Nascondi l'hamburger */
    }

    /* Gateway a 2 colonne */
    .gateway-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .gateway-card {
        width: calc(50% - 1rem); /* 2 colonne con gap */
    }

    /* Social proof a 4 colonne */
    .social-proof .container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    /* "Come funziona" orizzontale */
    .how-it-works-container {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    /* "Nuovi Strumenti" orizzontale */
    .tools-container {
        flex-direction: row;
        gap: 2rem;
    }
    .tool-card {
        flex: 1; /* Occupa spazio uguale */
    }
    
    /* Galleria a 4 colonne */
    .gallery-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}


/* Stili per Desktop (es. > 1024px) */
@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    
    /* Mostra il video e nascondi l'immagine mobile */
    .hero-background .desktop-video {
        display: block;
    }
    .hero-background .mobile-image {
        display: none;
    }
    
    /* Gateway a 4 colonne */
    .gateway-card {
        width: calc(25% - 1.2rem); /* 4 colonne con gap */
    }
    
    .gallery-grid {
        gap: 1rem;
    }
}
  
/* ======== STILI PER LE PAGINE HUB DI CATEGORIA ======== */

/* 1. HERO DELLE PAGINE HUB */
.hub-hero-no-picture {
    position: relative;
    min-height: 60vh; /* Più basso dell'hero della homepage */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    overflow: hidden;
    color: rgb(0, 0, 0);
}

.hub-hero {
    position: relative;
    min-height: 60vh; /* Più basso dell'hero della homepage */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    overflow: hidden;
    color: white;
    background-size: cover;
    background-position: center center;
    background-color: var(--colore-sfondo-scuro); /* Fallback */
}

.hub-hero::after { /* Overlay scuro per leggibilità */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hub-hero .hero-content {
    position: relative;
    z-index: 2;
}

.hub-hero h1 {
    font-size: 2.5rem;
}

.hub-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 1rem auto 2rem auto;
    opacity: 0.9;
}

/* Sostituisci questi placeholder con le tue immagini di sfondo */
.hub-hero-games {
    background-image: url('images/hero_game_creators.jpg');
}
.hub-hero-corporate {
    background-image: url('images/hero_corporate.jpg');
}
.hub-hero-artists {
    background-image: url('images/hero_artists.jpg');
}
.hub-hero-personal {
    background-image: url('images/hero_personal.jpg');
}

/* Simple Page Header (for pages without hero) */
.page-header {
    background-color: var(--colore-grigio-chiaro);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--colore-testo);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 2. HUB ACTIONS (GATEWAY INTERNO) */
.hub-actions {
    background: var(--colore-grigio-chiaro);
}

.hub-actions h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.action-card-container {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonna su mobile */
    gap: 1.5rem;
}

.action-card {
    display: block;
    background: var(--colore-sfondo);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    color: var(--colore-testo);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--colore-primario);
}

.action-card h3 {
    color: var(--colore-primario);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.action-card p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.action-card span {
    font-weight: 600;
    color: var(--colore-primario);
}

/* 3. PRODOTTI CORRELATI E RISORSE */
/* Queste sezioni (hub-related-products, hub-resources) 
   riusano le classi ".new-tools", ".tools-container" e ".tool-card" 
   dalla homepage, quindi non servono nuovi stili.
*/
.hub-related-products,
.hub-resources {
    background: var(--colore-grigio-chiaro);
}
.hub-related-products .tool-card {
    background: var(--colore-sfondo);
}


/* 4. SOCIAL PROOF SPECIFICI */
.hub-social-proof {
    background: var(--colore-sfondo);
}

.case-study {
    background: var(--colore-grigio-chiaro);
    border-radius: 8px;
    overflow: hidden;
}

.case-study-content {
    padding: 2rem;
}
.case-study-content h3 {
    color: var(--colore-primario);
}
.case-study-content p {
    margin-bottom: 1rem;
}
.case-study-content p:first-of-type {
    font-style: italic;
    font-size: 1.1rem;
}
.case-study-content strong {
    font-size: 0.9rem;
    color: #555;
}

.hub-logo-wall .logo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    filter: grayscale(100%);
    opacity: 0.7;
}

/* 6. FAQ SPECIFICHE */
.hub-faq {
    background: var(--colore-sfondo);
    padding-bottom: 4rem;
}
.hub-faq h2 {
    margin-bottom: 1.5rem;
}

/* FAQ Search */
.faq-search {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    position: relative;
}
.faq-search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 50px;
    outline: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.faq-search-input:focus {
    border-color: var(--colore-primario);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.15);
}
.faq-search::before {
    content: '🔍';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.5;
    pointer-events: none;
}

/* FAQ Container */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}
.faq-section-header {
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--colore-primario) 0%, #1873cc 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease;
}
.faq-section-header:hover {
    background: linear-gradient(135deg, #1873cc 0%, #1563b8 100%);
}
.faq-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: white;
}
.faq-section-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.faq-section[data-collapsed="true"] .faq-section-toggle {
    transform: rotate(-90deg);
}
.faq-section-content {
    padding: 1rem;
    transition: all 0.3s ease;
}
.faq-section[data-collapsed="true"] .faq-section-content {
    display: none;
}

/* FAQ Items (accordion style) */
.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0.5rem;
}
.faq-item summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
    transition: background-color 0.2s ease;
}
.faq-item summary:hover {
    background-color: var(--colore-grigio-chiaro);
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--colore-primario);
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-answer {
    padding: 0 1rem 1.5rem 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-answer a {
    color: var(--colore-primario);
    text-decoration: underline;
}

/* No Results Message */
.faq-no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}


/* ======== MEDIA QUERIES AGGIUNTIVI ======== */

@media (min-width: 768px) {
    .hub-hero h1 {
        font-size: 3.2rem;
    }
    .hub-subtitle {
        font-size: 1.3rem;
    }

    /* 3 colonne per le azioni */
    .action-card-container {
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* Studio di caso affiancato */
    .case-study {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .case-study-content {
        padding: 2.5rem;
    }
}
  
  /* ======== AGGIUNTE PER HEADER (LOGO E LINGUA) ======== */

.logo img {
    height: 40px; /* Imposta l'altezza desiderata per il logo */
    width: auto; /* Mantiene le proporzioni */
    display: block; /* Rimuove spazio extra sotto l'immagine */
}

.language-switcher select {
    padding: 0.3rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: var(--colore-sfondo);
    font-family: inherit;
    font-size: 0.9rem;
    margin-right: 1rem; /* Spazio prima delle icone login/carrello */
}

/* Modifica per allineare tutto nell'header */
.header-icons {
    display: flex;
    align-items: center;
}

/* Nascondi temporaneamente la NAV su mobile (da migliorare con JS per overlay) */
@media (max-width: 767px) {
    .main-nav {
       /* Per ora la nascondiamo, JS la mostrerà */
       display: none; 
       /* Stili per renderla un overlay (da aggiungere) */
       /* position: absolute; top: 60px; left: 0; width: 100%; background: white; flex-direction: column; ... */
    }
}

/* Stili specifici per il menu mobile quando viene aperto da JS */
.main-nav.mobile-active {
    display: flex; /* O block, a seconda di come vuoi l'overlay */
    position: absolute;
    top: 60px; /* Altezza dell'header */
    left: 0;
    width: 100%;
    background-color: var(--colore-sfondo);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
}
.main-nav.mobile-active a {
    padding: 0.8rem 10%; /* Rientra un po' */
    border-bottom: 1px solid #eee;
}
.main-nav.mobile-active a:last-child {
    border-bottom: none;
}

/* ===========================================
   FEATURE GRID MODULE
   =========================================== */
.feature-grid-section {
    padding: 4rem 0;
}

.feature-grid-section.bg-light {
    background: var(--colore-grigio-chiaro);
}

.feature-grid-section.bg-white {
    background: var(--colore-sfondo);
}

.feature-grid-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--colore-primario);
}

.feature-grid-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid-section .section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-grid-item {
    background: var(--colore-sfondo);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.feature-grid-item a {
    cursor: pointer;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--colore-primario);
}

.feature-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive grid based on data-columns attribute */
@media (min-width: 768px) {
    .feature-grid[data-columns="2"] {
        grid-template-columns: 1fr 1fr;
    }
    
    .feature-grid[data-columns="3"] {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .feature-grid[data-columns="4"] {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    
    .feature-grid[data-columns="5"] {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
    
    .feature-grid[data-columns="6"] {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }
}

/* Tablet: Always 2 columns for 3+ column layouts */
@media (min-width: 768px) and (max-width: 1024px) {
    .feature-grid[data-columns="3"],
    .feature-grid[data-columns="4"],
    .feature-grid[data-columns="5"],
    .feature-grid[data-columns="6"] {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================================
   CONTENT BLOCK MODULE
   =========================================== */
.content-block-section {
    padding: 4rem 0;
}

.content-block-section.bg-light {
    background: var(--colore-grigio-chiaro);
}

.content-block-section.bg-white {
    background: var(--colore-sfondo);
}

.content-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.content-block-text {
    flex: 1;
}

.content-block-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--colore-primario);
    line-height: 1.2;
}

.content-block-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.content-block-content p {
    margin-bottom: 1rem;
}

.content-block-cta {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--colore-primario);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-block-cta:hover {
    background: var(--colore-accento);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.content-block-image {
    flex: 1;
    max-width: 100%;
}

.content-block-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Desktop layout: side-by-side */
@media (min-width: 768px) {
    .content-block {
        flex-direction: row;
        gap: 3rem;
    }
    
    .content-block.image-left {
        flex-direction: row-reverse;
    }
    
    .content-block-text,
    .content-block-image {
        flex: 1;
    }
}

/* Data Table (Flexible) Module */
.data-table {
    padding: 4rem 0;
}

.data-table[data-background="white"] {
    background: white;
}

.data-table[data-background="light"] {
    background: #f6f8fa;
}

.data-table[data-background="transparent"] {
    background: transparent;
}

.data-table .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: #1a1a1a;
}

.data-table .section-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #586069;
    line-height: 1.6;
}

.data-table .section-description-bottom {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
    color: #586069;
    line-height: 1.6;
}

.table-wrapper {
    overflow-x: auto;
    margin: 1.6rem auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.data-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.data-table tbody tr {
    border-bottom: 1px solid #e1e4e8;
    transition: background-color 0.2s ease;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: #f6f8fa;
}

.data-table td {
    padding: 1rem 1.5rem;
    color: #24292e;
    line-height: 1.6;
}

.data-table td i {
    margin-right: 0.5rem;
    color: #667eea;
    font-size: 1.2rem;
}

.data-table td img {
    width: 100px;
}

.data-table td a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.data-table td a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Fulfillment Calculator */
.fulfillment-calculator-section {
    padding: 4rem 0;
}

.fulfillment-calculator {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fulfillment-calculator .fc-row {
    width: 100%;
}

.fulfillment-calculator .fc-row-form {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding-bottom: 16px;
    margin-bottom: 8px;
}

.fulfillment-calculator .fc-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.fulfillment-calculator .fc-field {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    flex: 1;
}

.fulfillment-calculator .fc-field label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.fulfillment-calculator .fc-field input[type="number"],
.fulfillment-calculator .fc-field select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.fulfillment-calculator .fc-field.fc-submit {
    flex: 0 0 auto;
}

.fulfillment-calculator .fc-field.fc-submit button {
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.fulfillment-calculator .fc-field.fc-submit button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.5);
}

.fulfillment-calculator .fc-field.fc-submit button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.35);
    opacity: 0.9;
}

.fulfillment-calculator .fc-error {
    padding: 8px 12px;
    border-radius: 6px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    margin-bottom: 8px;
}

.fulfillment-calculator .fc-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fulfillment-calculator .fc-results-table th,
.fulfillment-calculator .fc-results-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.fulfillment-calculator .fc-results-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.fulfillment-calculator .fc-results-table tr:hover td {
    background: #f9fafb;
}

/* Contact section */
.contact-section {
    padding: 4rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 32px;
    align-items: flex-start;
}

.contact-column {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 24px 28px;
}

.contact-form-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.contact-form-intro {
    margin: 0 0 20px;
    font-size: 14px;
    color: #4b5563;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.contact-field textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-helper {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.contact-helper-title {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 4px;
}

.contact-helper-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 13px;
    color: #4b5563;
}

.contact-submit {
    margin-top: 8px;
}

.contact-submit-btn {
    width: 180px;
}

.contact-consent {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
}

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

.contact-card {
    background: #f3f4ff;
    border-radius: 12px;
    padding: 20px 18px;
}

.contact-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.contact-card-text {
    font-size: 13px;
    color: #4b5563;
}

.contact-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #2563eb;
    text-decoration: underline;
}

.contact-estimate-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.contact-estimate-btn {
    margin-top: 12px;
    width: 100%;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .data-table {
        padding: 2rem 0;
    }
    
    .data-table .section-title {
        font-size: 1.5rem;
    }
    
    .data-table .flexible-table th,
    .data-table .flexible-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Stack table on very small screens */
    @media (max-width: 480px) {
        .data-table .flexible-table thead {
            display: none;
        }
        
        .data-table .flexible-table tbody tr {
            display: block;
            margin-bottom: 1rem;
            border: 1px solid #e1e4e8;
            border-radius: 8px;
        }
        
        .data-table .flexible-table td {
            display: block;
            text-align: left;
            padding: 0.5rem 1rem;
            border-bottom: 1px solid #f6f8fa;
        }
        
        .data-table .flexible-table td:last-child {
            border-bottom: none;
        }
        
        .data-table .flexible-table td:before {
            content: attr(data-label);
            font-weight: 600;
            display: block;
            margin-bottom: 0.25rem;
            color: #667eea;
        }
    }
}