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

:root {
    --red: #E30613;
    --green: #00D26A;
    --dark: #1a1a1a;
    --dark-bg: #0d0d0d;
    --white: #ffffff;
    --gray: #888;
    --light-gray: #f5f5f5;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden; /* Previene scroll orizzontale */
    max-width: 100vw; /* Forza la larghezza massima */
}

body.menu-open {
    overflow: hidden;
}

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

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    position: fixed;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar > .container {
    max-width: 1250px;
    padding: 0 clamp(20px, 5vw, 64px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    display: block;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.all-stars {
    font-weight: 900;
    font-size: 15px;
    color: var(--white);
    letter-spacing: 1px;
}

.bari {
    color: var(--red);
}

.subtitle {
    font-size: 10px;
    color: var(--white);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: clamp(14px, 1.8vw, 24px);
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

.nav-links a.active {
    color: var(--white);
    border-bottom: 2px solid var(--red);
    padding-bottom: 8px;
}

.cta-button {
    background: var(--red);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #c10512;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.4);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-bg);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 8px;
}

.mobile-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(227, 6, 19, 0.1);
    color: var(--red);
    transform: translateX(5px);
}

.mobile-menu .cta-mobile {
    margin-top: 20px;
    background: var(--red);
    color: var(--white);
    text-align: center;
    font-weight: 700;
}

.mobile-menu .cta-mobile:hover {
    background: #c10512;
    transform: translateX(0) scale(1.02);
}

.desktop-only {
    display: inline-block;
}

/* Hero Section - scroll animato come Paintball Bari Pro */
.hero {
    position: relative;
    width: 100%;
    height: 380vh; /* Tall wrapper per scroll animato */
    background: var(--dark-bg);
}

/* Viewport-sized stage, pinned durante lo scroll */
.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Background layers */
.hero-bg {
    position: absolute;
    inset: 0;
    display: block;
}

.hero-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Sfondo iniziale - campo al tramonto illuminato */
.hero-bg--intro {
    z-index: 0;
}

/* Sfondo finale - All Stars al tramonto (appare dopo scroll) */
.hero-bg--final {
    z-index: 1;
    transition: opacity 0.22s linear;
}

/* Maschera radiale che nasconde il logo flat nel banner */
.hero-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(
        ellipse 34% 46% at 50% 45%,
        rgba(5, 5, 7, 0.98) 0%,
        rgba(5, 5, 7, 0.94) 42%,
        rgba(5, 5, 7, 0.55) 66%,
        rgba(5, 5, 7, 0) 82%
    );
}

/* Overlay con gradiente per transizione */
.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
        180deg,
        rgba(6, 6, 8, 0.35) 0%,
        rgba(6, 6, 8, 0) 22%,
        rgba(6, 6, 8, 0.02) 70%,
        rgba(8, 8, 10, 0.16) 82%,
        rgba(5, 5, 6, 0.42) 93%,
        #000 100%
    );
}

/* Stage 3D per il logo */
.hero-stage {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
    pointer-events: none;
}

.hero-logo-3d {
    position: relative;
    width: min(35vw, 450px);
    transform-origin: center center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    isolation: isolate;
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.55));
    /* Start state - matching Paintball Bari Pro */
    transform: translate(0px, -24px) rotateX(10deg) rotateY(0deg) scale(0.9);
    opacity: 1;
}

.hero-logo-3d img {
    display: block;
    width: 100%;
    height: auto;
    filter: contrast(1.04) saturate(1.05);
    user-select: none;
    -webkit-user-drag: none;
}

/* Shine effect sul logo */
.hero-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 42%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 58%
    );
    background-size: 260% 100%;
    background-repeat: no-repeat;
    background-position-x: 120%;
    -webkit-mask-image: url('images/brand/logo-all-stars-512.png');
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('images/brand/logo-all-stars-512.png');
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mix-blend-mode: screen;
    opacity: 0.9;
}

/* Scroll hint */
.hero-hint {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    transition: opacity 0.4s ease;
}

.hero-hint.is-hidden {
    opacity: 0;
}

.hero-hint-line {
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, var(--red), transparent);
    transform-origin: top;
    animation: hintPulse 1.8s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% {
        transform: scaleY(0.4);
        opacity: 0.4;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Nascondi completamente la navbar inizialmente */
.navbar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease 0.3s;
}

.navbar.logo-visible {
    opacity: 1;
    pointer-events: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}

.hero-content > .container {
    width: 100%;
    padding: 52px clamp(32px, 7vw, 96px) 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
    align-items: center;
}

.hero-tagline {
    color: var(--white);
    font-size: clamp(9px, 0.9vw, 12px);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Logo mobile - nascosto di default, visibile solo su mobile */
.hero-logo-mobile {
    display: none;
}

@media (max-width: 1023px) {
    .hero-logo-mobile {
        display: flex;
        justify-content: center;
        margin-bottom: 24px;
    }

    .hero-logo-mobile img {
        width: 120px;
        height: 120px;
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    }
}

.hero-title {
    font-size: clamp(32px, 3.5vw, 56px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.6);
}

.all-stars-hero {
    color: var(--green);
}

.bari-hero {
    color: var(--red);
}

.hero-subtitle {
    font-size: clamp(16px, 1.65vw, 23px);
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-buttons a {
    padding: 10px 14px;
    font-size: clamp(10px, 1vw, 13px);
    border-radius: 6px;
}

.hero-buttons .btn-secondary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #c10512;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--white);
    color: var(--dark);
    border-radius: 50%;
    font-size: 10px;
}

.hero-logo {
    width: 300px;
    height: 300px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-badge {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.badge-text {
    color: var(--white);
    font-size: 24px;
    font-family: 'Brush Script MT', cursive;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-badge img {
    width: 80px;
    height: 80px;
}

/* Feature Cards Desktop */
.feature-cards-desktop {
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

.feature-cards-desktop > .container {
    padding-inline: clamp(16px, 2vw, 28px);
}

/* Feature Cards Mobile - Sezione separata */
.feature-cards-mobile-section {
    display: none; /* Nascosta su desktop */
}

.chi-siamo > .container {
    padding-inline: clamp(24px, 4.6vw, 64px);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.feature-banner {
    display: block;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.feature-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Mobile carousel - dentro la sezione mobile */
.feature-carousel-mobile {
    display: block;
}

@media (min-width: 1024px) {
    .feature-banner {
        max-width: none;
        aspect-ratio: 2172 / 210;
        overflow: hidden;
        border-radius: 15px;
    }

    .feature-banner img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Mobile: nascondi desktop e mostra sezione mobile */
@media (max-width: 1023px) {
    .feature-cards-desktop {
        display: none; /* Nascondi completamente la sezione desktop */
    }

    .feature-cards-mobile-section {
        display: block;
        background: #ffffff; /* Sfondo bianco */
        padding: 48px 0 24px 0; /* Ridotto padding bottom per avvicinare */
        width: 100%;
    }

    .feature-carousel-mobile {
        display: block;
        width: 100%;
        overflow: hidden;
    }

    .feature-carousel-track {
        display: flex;
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 0 20px 0 20px; /* Rimosso padding bottom */
        margin: 0;
    }

    .feature-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .feature-card-item {
        flex: 0 0 280px;
        scroll-snap-align: center;
        min-width: 280px;
        max-width: 280px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: none; /* Rimossa ombra */
        border: 1px solid #333333; /* Bordo nero sottile */
    }

    .feature-card-item img {
        display: block;
        width: 100%;
        height: auto;
    }

    .feature-carousel-dots {
        display: none; /* Nascosti i pallini */
    }

    .feature-dot {
        display: none;
    }
}

.feature-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 35px;
    height: 35px;
}

.feature-text h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.quote-card {
    background: var(--dark);
    justify-content: center;
}

.quote {
    color: var(--white);
    font-size: 18px;
    font-style: italic;
    line-height: 1.4;
}

/* Chi Siamo Section */
.chi-siamo {
    padding: 24px 0 0; /* Ridotto padding top per avvicinare */
    scroll-margin-top: 100px;
    background: transparent; /* Cambiato da var(--white) a transparent */
}

.section-label {
    display: inline-block;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.section-label.white {
    color: var(--white);
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
}

.section-title.white {
    color: var(--white);
}

.highlight-red {
    color: var(--red);
}

.highlight-green {
    color: var(--green);
}

.section-text {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 35px;
    line-height: 1.8;
}

.section-text.white {
    color: rgba(255, 255, 255, 0.8);
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.chi-siamo .section-title {
    font-size: clamp(25px, 2.4vw, 36px);
    line-height: 1.08;
    letter-spacing: -1.2px;
    margin-bottom: 16px;
}

.chi-siamo .section-content {
    padding: 12px 0 24px;
}

.chi-siamo .section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    color: var(--dark);
    margin-bottom: 16px;
}

.chi-siamo .section-label::before {
    content: "";
    width: 30px;
    height: 3px;
    background: var(--red);
}

.chi-siamo .section-text {
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.45;
    margin-bottom: 20px;
    color: #666;
}

.about-highlight {
    color: #17743b;
}

.chi-siamo .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 13px;
}

.chi-siamo .btn-primary span {
    font-size: 22px;
    line-height: 1;
}

.section-image {
    aspect-ratio: 1688 / 932;
    align-self: center;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.section-image img {
    display: block;
    width: 100%;
    height: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 12px 0 24px;
}

.benefit-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    color: inherit;
}

.benefit-item:nth-child(2) .benefit-icon,
.benefit-item:nth-child(3) .benefit-icon {
    color: #17743b;
}

.benefit-text h3 {
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
}

.benefit-text p {
    font-size: clamp(11px, 0.9vw, 13px);
    color: #666;
    line-height: 1.4;
}

/* Corsi Section */
.corsi {
    padding: 28px 0;
    background: #102019 url('images/All%20Stars%20al%20tramonto_%20insieme%20per%20grandi%20traguardi.png') center bottom / cover no-repeat;
    position: relative;
}

.corsi::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 1% 12%, #fff 2px, rgba(255, 244, 217, 0.6) 8px, transparent 36px),
        radial-gradient(circle at 99% 12%, #fff 2px, rgba(255, 244, 217, 0.6) 8px, transparent 36px),
        linear-gradient(to bottom, #071614, rgba(3, 14, 12, 0.96) 45%, rgba(3, 14, 12, 0.45) 80%);
}

.corsi .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3.1fr);
    gap: 28px;
    align-items: center;
    padding-inline: clamp(24px, 4.6vw, 64px);
}

.corsi-header .section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.corsi-header .section-label::before {
    content: '';
    width: 28px;
    height: 3px;
    background: var(--red);
}

.corsi-header .section-title {
    font-size: clamp(25px, 2.5vw, 36px);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.corsi-header .section-text {
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.35;
    margin-bottom: 12px;
}

.corsi-header .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 12px;
}

.corsi .corsi-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

/* Carousel wrapper for mobile */
.corsi-carousel-wrapper {
    position: relative;
}

.carousel-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--red);
    width: 24px;
    border-radius: 4px;
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.corso-card {
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s;
    animation: cardPulse 3s ease-in-out infinite;
}

/* Animazione per far capire che le card sono interattive */
@keyframes cardPulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    }
    50% {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    }
}

/* Ogni card inizia l'animazione in momenti diversi */
.corso-card:nth-child(1) { animation-delay: 0s; }
.corso-card:nth-child(2) { animation-delay: 0.6s; }
.corso-card:nth-child(3) { animation-delay: 1.2s; }
.corso-card:nth-child(4) { animation-delay: 1.8s; }
.corso-card:nth-child(5) { animation-delay: 2.4s; }
.corso-card:nth-child(6) { animation-delay: 3.0s; }
.corso-card:nth-child(7) { animation-delay: 3.6s; }

.corso-card:hover {
    transform: translateY(-8px);
    animation: none; /* Ferma l'animazione al hover */
}

.corso-image {
    width: 100%;
    aspect-ratio: 124 / 94;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.corso-image--piccoli-amici {
    background-image: url('images/piccoli-amici.jpg');
}

.corso-image--primi-calci { 
    background-image: url('https://images.unsplash.com/photo-1589487391730-58f20eb2c308?w=400&h=300&fit=crop&q=80');
}

.corso-image--pulcini { 
    background-image: url('https://images.unsplash.com/photo-1575361204480-aadea25e6e68?w=400&h=300&fit=crop&q=80');
}

.corso-image--esordienti { 
    background-image: url('https://images.unsplash.com/photo-1579952363873-27f3bade9f55?w=400&h=300&fit=crop&q=80');
}

.corso-image--giovanissimi { 
    background-image: url('https://images.unsplash.com/photo-1606925797300-0b35e9d1794e?w=400&h=300&fit=crop&q=80');
}

.corso-image--allievi { 
    background-image: url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=400&h=300&fit=crop&q=80');
}

.corso-image--senior {
    background-image: url('images/senior.jpg');
}

.corso-info {
    position: relative;
    padding: 10px 34px 10px 10px;
}

.corso-info h3 {
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.corso-age {
    font-size: clamp(10px, 0.85vw, 12px);
    color: #777;
    line-height: 1.3;
}

.corso-link {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: #f7f7f7;
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
}

.corso-link:hover,
.corso-link:focus-visible {
    background: var(--red);
    color: var(--white);
}

@media (max-width: 1023px) {
    .corsi .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .corsi-header .section-text {
        max-width: 440px;
        font-size: 14px;
    }

    .corsi .corsi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .corso-info h3 { font-size: 14px; }
    .corso-age { font-size: 12px; }
}

@media (max-width: 600px) {
    /* Corsi carousel - one card at a time with swipe */
    .corsi-carousel-wrapper {
        overflow: visible;
    }

    .corsi .corsi-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 0 20px;
        margin: 0 -20px;
    }

    .corsi .corsi-grid::-webkit-scrollbar {
        display: none;
    }

    .corso-card {
        flex: 0 0 calc(100% - 40px);
        scroll-snap-align: center;
        min-width: calc(100% - 40px);
        animation: none; /* Disabilita animazione pulse su mobile */
    }

    /* Show carousel dots on mobile */
    .carousel-dots {
        display: flex;
    }

    .corso-info h3 { 
        font-size: 16px; 
    }
    
    .corso-age { 
        font-size: 13px; 
    }
}

/* Galleria e prenotazione campi */
.galleria {
    padding: 64px 0;
    background: var(--white);
    scroll-margin-top: 90px;
}

.galleria > .container {
    padding-inline: clamp(24px, 4.6vw, 64px);
}

.galleria-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.galleria-header .section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    margin-bottom: 12px;
}

.galleria-header .section-label::before {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--red);
}

.galleria-header .section-title {
    margin-bottom: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.galleria-header .section-text {
    max-width: 390px;
    margin-bottom: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.galleria-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: repeat(2, 175px);
    gap: 12px;
}

.galleria-photo {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #102019;
}

.galleria-photo--featured {
    grid-row: span 2;
}

.galleria-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galleria-photo:hover img {
    transform: scale(1.04);
}

.galleria-photo figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 48px 24px 22px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 800;
    line-height: 1.3;
}

.galleria-credit {
    margin: 10px 0 24px;
    color: #666;
    font-size: 11px;
}

.galleria-credit a {
    color: inherit;
    text-underline-offset: 3px;
}

.galleria-booking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 10px;
    background: linear-gradient(115deg, #071614, #142c22);
    border-left: 4px solid var(--green);
    color: var(--white);
}

.galleria-booking h3 {
    margin-bottom: 4px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.galleria-booking p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.galleria-booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.galleria .campo-booking {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 13px 20px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.galleria a:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}

@media (max-width: 1023px) {
    .galleria-booking {
        flex-direction: column;
        align-items: stretch;
    }

    .galleria-booking-actions .campo-booking {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .galleria {
        padding: 40px 0;
    }

    .galleria-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 22px;
    }

    .galleria-header .section-text {
        max-width: none;
    }

    .galleria-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 230px repeat(2, 140px);
        gap: 8px;
    }

    .galleria-photo--featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .galleria-booking {
        padding: 22px 18px;
        gap: 20px;
    }

    .galleria-booking-actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .galleria-photo img,
    .galleria .campo-booking {
        transition: none;
    }
}

/* Contatti Section */
.contatti {
    padding: 80px 0;
    background: var(--light-gray);
}

.contatti > .container {
    padding-inline: clamp(24px, 4.6vw, 64px);
}

.contatti-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr) minmax(0, 0.65fr) minmax(0, 1.25fr);
    gap: 20px;
    align-items: stretch;
}

.contatti-left {
    padding-top: 12px;
    align-self: start;
}

.contatti-left .section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    margin-bottom: 12px;
}

.contatti-left .section-label::before {
    content: "";
    width: 30px;
    height: 3px;
    background: var(--red);
}

.contatti-left .section-title {
    font-size: clamp(28px, 2.6vw, 38px);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.contatti-left .section-text {
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.5;
    margin-bottom: 24px;
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    padding: 10px 24px;
    border: 2px solid var(--dark);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

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

.contatti-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-height: 280px;
    position: relative;
}

.contatti-map .map-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.contatti-map .map-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

.contatti-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 0;
}

.contatti-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contatti-card {
    background: var(--white);
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contact-item > div:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-icon {
    width: 28px;
    height: 28px;
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: inherit;
}

.contact-item:nth-child(2) .contact-icon {
    color: #17743b;
}

.contact-item h4 {
    font-size: clamp(11px, 0.95vw, 13px);
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--dark);
    line-height: 1.3;
}

.contact-item p {
    font-size: clamp(10px, 0.85vw, 12px);
    color: #666;
    line-height: 1.4;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contatti-image {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 280px;
}

.contatti-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Partner Section */
.partner {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.partner > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
    gap: 40px;
    align-items: center;
    padding-inline: clamp(24px, 4.6vw, 64px);
}

.partner-header .section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: var(--dark);
    margin-bottom: 12px;
}

.partner-header .section-label::before {
    content: "";
    width: 30px;
    height: 3px;
    background: var(--red);
}

.partner-header .section-title {
    font-size: clamp(28px, 2.6vw, 38px);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.partner-header .section-text {
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.5;
    color: #666;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    min-height: 160px;
    background: var(--white);
}

.partner-logo:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 6px;
}

.partner-logo--dietista {
    grid-column: 1 / -1;
    max-width: 380px;
    justify-self: center;
}

.partner-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Footer */
.footer {
    background: var(--dark-bg) url('https://images.unsplash.com/photo-1459865264687-595d652de67e?w=1920&h=600&fit=crop&q=80') center bottom / cover no-repeat;
    color: var(--white);
    padding: 64px 0 24px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0.92), rgba(13, 13, 13, 0.85));
}

.footer > .container {
    position: relative;
    z-index: 1;
    padding-inline: clamp(24px, 4.6vw, 64px);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.6fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    display: block;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    object-fit: contain;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: auto;
    line-height: 1.5;
}

.footer-links h4,
.footer-contacts h4,
.footer-social h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links ul,
.contact-list {
    list-style: none;
}

.footer-links li,
.contact-list li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--red);
}

.contact-list li {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-list li a {
    color: inherit;
    text-decoration: none;
}

.contact-list li a:hover {
    color: var(--white);
    text-decoration: underline;
}

.contact-list li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

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

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

.social-icons a:hover {
    background: var(--red);
    transform: translateY(-2px);
}

.footer-badge {
    background: rgba(255, 255, 255, 0.04);
    padding: 20px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.badge-cursive {
    font-size: 18px;
    font-family: 'Brush Script MT', cursive;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
}

.footer-qr {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-qr svg {
    width: 48px;
    height: 48px;
    color: var(--dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--white);
}

.footer-bottom span {
    margin: 0 12px;
}

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

@media (max-width: 1023px) {
    /* Mobile Navigation */
    .navbar .nav-links {
        display: none;
    }

    .navbar .desktop-only {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar .all-stars {
        font-size: 13px;
    }

    .navbar .subtitle {
        font-size: 9px;
    }

    /* Hero mobile */
    .hero {
        height: 300vh;
    }

    .hero-logo-3d {
        width: min(55vw, 360px);
    }

    .hero-mask {
        background: radial-gradient(
            ellipse 46% 34% at 50% 44%,
            rgba(5, 5, 7, 0.98) 0%,
            rgba(5, 5, 7, 0.9) 46%,
            rgba(5, 5, 7, 0) 80%
        );
    }

    .hero-content > .container {
        padding: 80px 24px 48px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-tagline {
        font-size: 10px;
        justify-content: center;
        display: flex;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 42px);
    }

    .hero-subtitle {
        font-size: clamp(14px, 4vw, 18px);
        margin-bottom: 24px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-buttons a {
        padding: 12px 24px;
        font-size: 13px;
        border-radius: 50px;
    }

    .feature-cards {
        margin-top: -24px;
    }

    /* Chi Siamo */
    .chi-siamo {
        padding: 48px 0;
    }

    .chi-siamo .section-content,
    .benefits-grid {
        padding: 0;
    }

    .chi-siamo .section-title {
        font-size: 28px;
    }

    .chi-siamo .section-text {
        font-size: 15px;
    }

    .benefit-text h3 {
        font-size: 14px;
    }

    .benefit-text p {
        font-size: 13px;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-image {
        width: 100%;
        max-width: 540px;
        justify-self: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Corsi Section */
    .corsi .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .corsi-header .section-text {
        max-width: 440px;
        font-size: 14px;
    }

    /* Keep 2 columns on tablet */
    .corsi .corsi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .corso-info h3 { 
        font-size: 13px; 
    }
    
    .corso-age { 
        font-size: 11px; 
    }

    /* Contatti */
    .contatti {
        padding: 60px 0;
    }

    .contatti-grid {
        grid-template-columns: 1fr;
        /* Testo introduttivo libero; mappa, contatti e immagine di pari altezza. */
        grid-template-rows: auto repeat(3, 1fr);
        gap: 24px;
    }

    .contatti-left {
        order: 1;
    }
    
    .contatti-map {
        order: 2;
        width: 100%;
        max-width: 100%;
    }

    .contatti-map iframe {
        width: 100%;
        height: 100%;
    }

    .contatti-card {
        order: 3;
    }
    
    .contatti-image {
        order: 4;
        width: 100%;
        max-width: 100%;
    }

    /* Partner */
    .partner > .container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Footer */
    .footer {
        padding: 48px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Logo più piccolo */
    .logo img {
        width: 36px;
        height: 36px;
    }

    .navbar .all-stars {
        font-size: 11px;
    }

    .navbar .subtitle {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    /* Hero più basso su mobile */
    .hero {
        height: 280vh;
    }
    
    /* Hero */
    .hero {
        min-height: 480px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-buttons a {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* Sections */
    .section-title {
        font-size: 32px;
    }

    .section-text {
        font-size: 15px;
    }

    .chi-siamo .section-title {
        font-size: 26px;
    }

    /* Cards e grid */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    /* Corsi */
    .corsi-header .section-title {
        font-size: 28px;
    }

    /* Keep 2 columns layout on mobile medium */
    .corsi .corsi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Contatti */
    .contatti-map,
    .contatti-image {
        min-height: 240px;
    }

    .contact-item h4 {
        font-size: 12px;
    }

    .contact-item p {
        font-size: 11px;
    }

    /* Partner */
    .partner {
        padding: 60px 0;
    }

    .partner > .container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Footer */
    .footer-badge {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    /* Hero ancora più compatto */
    .hero {
        min-height: 420px;
    }

    .hero-content > .container {
        padding: 70px 20px 40px;
    }

    .hero-tagline {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Sezioni */
    .chi-siamo,
    .corsi,
    .contatti,
    .partner {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .chi-siamo .section-title,
    .corsi-header .section-title {
        font-size: 24px;
    }

    /* Corsi Carousel Mobile - 1 card at a time */
    .corsi-carousel-wrapper {
        overflow: hidden;
        position: relative;
        padding: 0 20px;
    }

    .corsi .corsi-grid {
        display: flex;
        gap: 20px;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0 20px 0;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .corsi .corsi-grid::-webkit-scrollbar {
        display: none;
    }

    .corso-card {
        flex: 0 0 calc(100% - 40px);
        max-width: 100%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .carousel-dots {
        display: flex;
    }

    /* Benefit icons più piccoli */
    .benefit-icon {
        width: 28px;
        height: 28px;
    }

    .benefit-icon svg {
        width: 24px;
        height: 24px;
    }

    .benefit-text h3 {
        font-size: 13px;
    }

    .benefit-text p {
        font-size: 12px;
    }

    /* Contatti */
    .contact-icon {
        width: 24px;
        height: 24px;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Partner grid singola colonna su mobile piccoli */
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
        max-width: 440px;
        margin-inline: auto;
    }

    .partner-logo {
        min-height: 120px;
    }

    /* Footer */
    .footer-logo img {
        width: 44px;
        height: 44px;
    }

    .footer-tagline {
        font-size: 13px;
    }

    .footer-copyright {
        font-size: 10px;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
    }

    .social-icons a svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 400px) {
    /* Ottimizzazioni per schermi molto piccoli */
    .logo img {
        width: 32px;
        height: 32px;
    }

    .navbar .all-stars {
        font-size: 10px;
    }

    .navbar .subtitle {
        font-size: 6px;
    }

    .hero {
        min-height: 380px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 13px;
    }

    .mobile-menu {
        width: 100%;
        right: -100%;
    }

    .mobile-menu.active {
        right: 0;
    }

    /* Corsi cards slightly smaller on very small screens */
    .corso-card {
        flex: 0 0 calc(100% - 30px);
    }

    .corsi-carousel-wrapper {
        padding: 0 15px;
    }

    .corsi .corsi-grid {
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
        gap: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero {
        height: 100vh;
    }
    .hero-hint {
        display: none;
    }
}
