/* Reset e variabili CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #CE0E2D;
    --secondary-color: #006937;
    --text-color: #2C2D2E;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --font-family: 'Montserrat', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-img {
    height: 70px;
    width: auto;
}

.navigation {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
    line-height: 1.1em !important;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 0;
    padding-inline-start: 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Breakpoint a 1380px per burger menu */
@media (max-width: 1379px) {
    .navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        padding: 8px;
        border-radius: 6px;
        transition: background-color 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background-color: rgba(206, 14, 45, 0.1);
    }
    
    .mobile-menu-toggle span {
        width: 28px;
        height: 3px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #30779cff 0%, #2a6a8c 50%, #245d7d 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', Arial, sans-serif;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.hero-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    /*margin: 0 auto 30px;*/
    margin: 0;
    margin-top: -80px;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0;
    opacity: 0.9;
    text-align: center;
}

/* Counter Section */
.counter-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.counter-tagline {
    font-size: 3rem;
    margin-top: 3rem;
    font-weight: 700;
    text-align: center;
    color: white;
    line-height: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 100%;
}

.counter-card {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    backdrop-filter: none;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    margin: 0 auto;
    margin-top: -80px;
    box-shadow: none;
    /*border: 2px solid rgba(255, 255, 255, 0.3);*/
}

/* Desktop layout - immagine destra, contatore sinistra */
@media (min-width: 1380px) {
    .hero-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: 40px;
    }
    
    .counter-section {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .counter-card {
        width: 100%;
        max-width: 480px;
    }
    
    .hero-image {
        flex: 1;
        max-width: none;
        width: 100%;
        height: auto;
        min-height: 500px;
        object-fit: contain;
        margin: 0;
        margin-top: -80px;
    }
    
    .hero-subtitle {
        width: 100%;
        text-align: center;
    }
}

/* Layout sotto i 1380px - immagine e contatore affiancati con immagine ridotta */
@media (max-width: 1379px) and (min-width: 769px) {
    .hero-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }
    
    .hero-image {
        flex: 1;
        max-width: none;
        max-height: 320px;
        width: auto;
        height: auto;
        object-fit: contain;
        margin: 0;
    }
    
    .counter-section {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .counter-card {
        width: 100%;
        max-width: 480px;
        margin: 0;
    }
}

.counter-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.counter-amount {
    font-size: 4rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    min-width: 350px;
    display: inline-block;
    text-align: center;
}

.counter-progress {
    background: rgba(255, 255, 255, 0.2);
    height: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    height: 100%;
    border-radius: 5px;
    width: 0%;
    transition: width 2s ease-in-out;
}

.counter-goal {
    font-size: 1.1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* Sections */
.section {
    padding: 80px 0;
}

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

/* Colori di sfondo alternati per le sezioni */
.section:nth-child(even) {
    background: #f8f9fa;
}

.section:nth-child(odd) {
    background: #ffffff;
}

/* Override per sezioni specifiche */
.hero {
    background: #30779cff !important;
}

#meccanica {
    background: #ffffff !important;
}

#prodotti {
    background: #f8f9fa !important;
}

#punti-vendita {
    background: #ffffff !important;
}

#fondazione {
    background: #f8f9fa !important;
}

#termini {
    background: #ffffff !important;
}

#contatti {
    background: #f8f9fa !important;
}

.footer {
    background: #2C2D2E !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    font-family: 'Poppins', Arial, sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Meccanica Content */
.meccanica-content {
    max-width: 1000px;
    margin: 0 auto;
}

.meccanica-intro-text {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.7;
    text-align: center;
    margin: 0 0 30px;
}

.meccanica-intro-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.meccanica-note {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
    margin: 30px 0 0;
}

/* Meccanica Grid */
.meccanica-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.meccanica-card {
    background: var(--white);
    padding: 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.meccanica-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card Header Image */
.card-header-image {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.step-header-img {
    width: 50%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto; 
}

.meccanica-card .card-icon,
.meccanica-card h3,
.meccanica-card p {
    padding-left: 30px;
    padding-right: 30px;
}

.meccanica-card .card-icon {
    padding-top: 30px;
}

.meccanica-card p {
    padding-bottom: 40px;
}

/* Meccanica Logo */
.meccanica-logo {
    text-align: center;
    margin: 40px 0;
}

.meccanica-foundation-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.meccanica-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #094268;
    margin-bottom: 15px;
    line-height: 1em;
}

.meccanica-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.2;
}

/* Prodotti Intro */
.prodotti-intro {
    text-align: center;
    margin-bottom: 50px;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Carousel dei Marchi */
.marchi-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0; /* Aggiunge spazio per l'effetto hover */
}

.marchi-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    will-change: transform; /* Ottimizzazione per performance */
}

.marchio-slide {
    flex: 0 0 calc((100vw - 120px) / 4);
    min-width: 200px;
    max-width: 280px;
}

.marchio-card {
    background: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /*border: 2px solid transparent;*/
    position: relative;
    overflow: hidden;
}

.marchio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.marchio-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 15px;
    border-radius: 0 0 15px 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.marchio-card:hover .marchio-overlay {
    background: linear-gradient(to top, rgba(206, 14, 45, 0.95) 0%, rgba(206, 14, 45, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
}

.marchio-overlay h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Controlli del Carousel */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.carousel-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(206, 14, 45, 0.3);
    z-index: 20;
    position: relative;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 105, 55, 0.4);
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
    border-color: rgba(206, 14, 45, 0.3);
}

.carousel-dot:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Disclaimer Section */
.disclaimer-section {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.disclaimer-text {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.disclaimer-list {
    list-style: none;
    padding: 0;
}

.disclaimer-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.95rem;
}

.disclaimer-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Disclaimer testo semplice - versione minimale */
.disclaimer-text-simple {
    margin-top: 40px;
    padding: 15px 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #6c757d;
    line-height: 1.6;
    opacity: 0.85;
}

/* PDF Download Section */
.pdf-download-section {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pdf-download-card {
    background: var(--white);
    padding: 20px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--secondary-color);
    max-width: 300px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdf-download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.pdf-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.pdf-download-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.pdf-download-card p {
    color: var(--text-color);
    margin-bottom: 18px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a00b24 100%);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(206, 14, 45, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #004d2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 105, 55, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.download-icon {
    font-size: 1.2rem;
}

/* Fondazione Section */
.fondazione-content {
    max-width: 1200px;
    margin: 0 auto;
}

.fondazione-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.fondazione-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.foundation-logo-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    display: block;
    margin: 0 auto;
    width: 100%;
    object-fit: contain;
}

.fondazione-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.fondazione-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

.fondazione-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-text {
    color: var(--text-color);
    font-weight: 500;
}

.fondazione-objectives {
    margin-top: 50px;
}

.fondazione-objectives h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.objectives-list {
    max-width: 800px;
    margin: 0 auto;
}

.objective-item {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 10px;
}

.objective-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Punti Vendita - Intro */
.pdv-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Tab Navigation */
.pdv-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pdv-tab {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.tab-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.pdv-tab:hover .tab-logo {
    opacity: 1;
    transform: scale(1.05);
}

.pdv-tab.active .tab-logo {
    opacity: 1;
    /*filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));*/ 
}

.pdv-tab:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 105, 55, 0.2);
}

.pdv-tab.active {
    background: linear-gradient(to bottom, transparent 30%, rgba(40, 214, 130, 0.08) 100%), var(--white);
    border-color: var(--secondary-color);
    color: var(--text-color);
    /*box-shadow: 0 5px 20px rgba(0, 105, 55, 0.2);*/
    /*border-bottom-width: 3px;*/
}

.tab-label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pdv-tab.active .tab-label {
    color: var(--primary-color);
}

.tab-count {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

.pdv-tab.active .tab-count {
    opacity: 0.8;
    color: var(--text-color);
}

/* Tab Content */
.pdv-tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

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

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

/* Compact Grid */
.pdv-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.pdv-compact-item {
    background: transparent;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease;
}

.pdv-compact-item:hover {
    background-color: rgba(40, 214, 130, 0.03);
}

.pdv-location {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.pdv-address {
    font-size: 0.88rem;
    color: var(--text-color);
    opacity: 0.75;
    line-height: 1.4;
    padding-left: 0;
}

/* Termini Content */
.termini-content {
    max-width: 800px;
    margin: 0 auto;
}

.termini-section {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.termini-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.termini-section p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Contatti */
.contatti-content {
    max-width: 600px;
    margin: 0 auto;
}

.contatti-info {
    display: grid;
    gap: 30px;
}

.contatto-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contatto-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contatto-item p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo .logo-img {
    height: 50px;
    /*filter: brightness(0) invert(1);*/
}

.footer-info h4,
.footer-social h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 15px;
    text-align: center;
}

.company-info {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-text {
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .hero-main {
        display: flex;
        flex-direction: column;
    }
    
    .hero-image {
        order: 1;
    }
    
    .counter-section {
        order: 2;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .counter-tagline {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    
    .counter-card {
        padding: 20px 15px;
        margin-top: -40px;
    }
    
    .counter-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .counter-amount {
        font-size: 2.5rem;
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .counter-goal {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 40px;
    }
    
    .meccanica-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pdv-tabs {
        gap: 10px;
    }
    
    .pdv-tab {
        min-width: 150px;
        padding: 12px 20px;
    }
    
    .tab-logo {
        height: 40px;
    }
    
    .tab-label {
        font-size: 1rem;
    }
    
    .tab-count {
        font-size: 0.8rem;
    }
    
    .pdv-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    
    .pdv-compact-item {
        padding: 10px 15px;
    }
    
    .objectives-list {
        padding: 0 10px;
    }
    
    .objective-item {
        font-size: 1rem;
        margin-bottom: 18px;
    }
    
    .punto-vendita-card {
        padding: 25px 20px;
    }
    
    .meccanica-card .card-icon,
    .meccanica-card h3,
    .meccanica-card p {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .meccanica-card .card-icon {
        padding-top: 25px;
    }
    
    .meccanica-card p {
        padding-bottom: 30px;
    }
    
    .meccanica-intro-text {
        font-size: 1.1rem;
    }
    
    .meccanica-foundation-logo {
        max-width: 250px;
    }
    
    .fondazione-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .foundation-logo-img {
        max-width: 100px;
    }
    
    .fondazione-text h3 {
        font-size: 1.5rem;
    }
    
    .fondazione-description {
        font-size: 1rem;
        text-align: left;
    }
    
    .marchio-slide {
        flex: 0 0 calc((100vw - 100px) / 2);
        min-width: 160px;
        max-width: 200px;
    }
    
    .marchio-card {
        height: 150px;
    }
    
    .marchio-overlay {
        padding: 15px 12px;
    }
    
    .marchio-overlay h3 {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        box-shadow: 0 6px 16px rgba(206, 14, 45, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .carousel-controls {
        margin-top: 25px;
        gap: 15px;
    }
    
    .carousel-dots {
        gap: 8px;
    }
    
    .carousel-dot {
        width: 14px;
        height: 14px;
    }
    
    .termini-section,
    .contatto-item,
    .disclaimer-section {
        padding: 25px 20px;
    }
    
    .pdf-download-card {
        padding: 18px 20px;
        max-width: 280px;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo .logo-img {
        height: 0px;
    }
    
    .footer-info h4,
    .footer-social h4 {
        font-size: 1.1rem;
    }
    
    .company-info {
        font-size: 0.85rem;
    }
    
    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .social-link {
        padding: 6px 12px;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
    
    .social-link span {
        font-size: 0.8rem;
    }
    
    .footer-main {
        gap: 25px;
    }
    
    .footer-logo .logo-img {
        height: 35px;
    }
    
    .footer-info h4,
    .footer-social h4 {
        font-size: 1rem;
    }
    
    .company-info {
        font-size: 0.8rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-link {
        padding: 5px 10px;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    .social-link span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .counter-tagline {
        font-size: 1.4rem;
        margin-top: 0.5rem;
    }
    
    .counter-card {
        padding: 15px 12px;
        margin-top: -30px;
    }
    
    .counter-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .counter-amount {
        font-size: 2rem;
        min-width: auto;
        margin-bottom: 8px;
    }
    
    .counter-goal {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .termini-section,
    .contatto-item,
    .disclaimer-section {
        padding: 20px 15px;
    }
    
    .meccanica-card .card-icon,
    .meccanica-card h3,
    .meccanica-card p {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .meccanica-card .card-icon {
        padding-top: 20px;
    }
    
    .meccanica-card p {
        padding-bottom: 25px;
    }
    
    .meccanica-intro-text {
        font-size: 1rem;
    }
    
    .meccanica-foundation-logo {
        max-width: 200px;
    }
    
    .pdv-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .pdv-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .pdv-tab {
        width: 100%;
        min-width: unset;
        padding: 12px 15px;
    }
    
    .tab-logo {
        height: 35px;
    }
    
    .tab-label {
        font-size: 0.95rem;
    }
    
    .tab-count {
        font-size: 0.75rem;
    }
    
    .pdv-compact-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .pdv-compact-item {
        padding: 10px 0;
    }
    
    .pdv-location {
        font-size: 0.9rem;
    }
    
    .pdv-address {
        font-size: 0.82rem;
    }
    
    .objectives-list {
        padding: 0 5px;
    }
    
    .objective-item {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    .pdf-download-card {
        padding: 15px 12px;
        max-width: 250px;
    }
    
    .pdf-icon {
        font-size: 1.8rem;
    }
    
    .download-btn {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
    
    
    .fondazione-main {
        gap: 25px;
    }
    
    .foundation-logo-img {
        max-width: 100px;
    }
    
    .fondazione-text h3 {
        font-size: 1.3rem;
    }
    
    .fondazione-description {
        font-size: 0.95rem;
    }
    
    .fondazione-objectives h4 {
        font-size: 1.4rem;
    }
    
    .marchio-slide {
        flex: 0 0 calc((100vw - 80px) / 2);
        min-width: 140px;
        max-width: 180px;
    }
    
    .marchio-card {
        height: 130px;
    }
    
    .marchio-overlay {
        padding: 12px 10px;
    }
    
    .marchio-overlay h3 {
        font-size: 0.95rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        box-shadow: 0 4px 12px rgba(206, 14, 45, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .carousel-controls {
        margin-top: 20px;
        gap: 12px;
    }
    
    .carousel-dots {
        gap: 6px;
    }
    
    .carousel-dot {
        width: 16px;
        height: 16px;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.meccanica-card,
.prodotto-card,
.termini-section,
.contatto-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll offset per header fisso */
html {
    scroll-padding-top: 80px;
}
