/* ============================================
   COREVIA-STYLE CLONE
   Fonts: Clash Display + Mulish
   ============================================ */

:root {
    /* Colors - Palette Foglia Learning */
    --color-bg: #ffffff;
    --color-bg-alt: #FAFAFA;
    --color-accent: #00B602;
    --color-accent-dark: #009A02;
    --color-accent-soft: #E8F8E8;
    --color-white: #ffffff;
    --color-text-dark: #252324;
    --color-text-light: #555555;
    --color-text-muted: #888888;
    --color-border: #E0E0E0;

    /* Fonts */
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Mulish', sans-serif;

    /* Spacing */
    --container-max: 1600px;
    --section-padding: 70px;
    --section-gap: 40px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--color-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background: var(--color-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
    background: transparent;
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    overflow: hidden;
    display: block;
}

.nav-link span {
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover span {
    animation: text-scroll 0.35s ease forwards;
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(0, 182, 2, 0.6), 0 0 40px rgba(0, 182, 2, 0.3);
    font-weight: 600;
}

.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active span {
    text-shadow: 0 0 15px rgba(0, 182, 2, 0.4);
}

@keyframes text-scroll {
    0% {
        transform: translateY(0);
    }
    49% {
        transform: translateY(75%);
    }
    50% {
        transform: translateY(-75%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-dark {
    background: var(--color-text-dark);
    color: var(--color-white);
    padding: 16px 32px;
    border: 2px solid var(--color-text-dark);
}

.btn-dark:hover {
    background: transparent;
    color: var(--color-text-dark);
    border-color: var(--color-text-dark);
}

/* CTA Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-accent);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-cta svg {
    transition: transform 0.3s ease;
}

.btn-cta:hover svg {
    transform: translateX(3px);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 18px 36px;
    font-weight: 700;
    border: 2px solid var(--color-accent);
}

.btn-accent:hover {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Header Dark (pagine interne) */
.header-dark {
    position: relative;
    background: var(--color-text-dark);
}

.header-dark .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.header-dark .nav-link.active {
    color: var(--color-accent);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.mobile-toggle span:nth-child(1) {
    transform: translateY(-7px);
}

.mobile-toggle span:nth-child(2) {
    transform: translateY(0);
}

.mobile-toggle span:nth-child(3) {
    transform: translateY(7px);
}

/* Hamburger to X animation */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Base state - elementi nascosti */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated state - elementi visibili */
.animate-ready.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animazione da sinistra */
.animate-from-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-from-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Animazione da destra */
.animate-from-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-from-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Hero entrance animation - CSS keyframes per animazione immediata */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    opacity: 0;
    animation: headerSlideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.hero-title {
    opacity: 0;
    animation: heroFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.hero-description {
    opacity: 0;
    animation: heroFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.hero .btn {
    opacity: 0;
    animation: heroFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

/* Disabilita animazioni se utente preferisce reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-ready,
    .animate-from-left,
    .animate-from-right {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .header,
    .hero-title,
    .hero-description,
    .hero .btn {
        opacity: 1;
        animation: none;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

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

.hero-img-corsi {
    object-position: center 20%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 80px;
    gap: 60px;
}

.hero-text {
    max-width: 700px;
}

/* Hero Short (pagine interne) */
.hero-short {
    min-height: 50vh;
}

.hero-short .hero-bottom {
    padding-bottom: 80px;
}

/* Hero Dark (sfondo scuro senza immagine) */
.hero-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.hero-dark .hero-overlay {
    display: none;
}

/* Consulenza Servizi Section */
.consulenza-servizi {
    padding: var(--section-padding) 0 0;
    background: var(--color-bg);
}

.servizio-block {
    padding: var(--section-gap) 0;
}

.servizio-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.servizio-block-reverse .servizio-block-grid {
    direction: rtl;
}

.servizio-block-reverse .servizio-block-grid > * {
    direction: ltr;
}

.servizio-block-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.servizio-block-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.servizio-block-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.servizio-block-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.servizio-block-list li {
    font-size: 0.95rem;
    color: var(--color-text-light);
    padding-left: 20px;
    position: relative;
}

.servizio-block-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
}

.servizio-block-image {
    position: relative;
    overflow: hidden;
}

.servizio-block-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 500px;
}

/* Scroll Indicator */
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
}

.scroll-line {
    width: 2px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 4px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    left: -1px;
    top: 0;
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0% {
        top: 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ============================================
   SERVIZI SECTION
   ============================================ */
.servizi {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--section-gap);
    gap: 40px;
}

.section-header-row .section-header-right {
    padding-top: 0;
}

.section-header-left {
    max-width: 600px;
}

.section-header-right {
    flex-shrink: 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--section-gap);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

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

.section-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 650px;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.servizi-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.servizi-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Servizi Section */
.servizi-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.servizi-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--section-gap);
    align-items: center;
    margin-bottom: var(--section-gap);
}

.servizi-intro-reverse {
    direction: rtl;
}

.servizi-intro-reverse > * {
    direction: ltr;
}

.servizi-intro-content .section-desc {
    max-width: none;
}

.servizi-intro-image {
    position: relative;
    overflow: hidden;
}

.servizi-intro-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.servizi-intro-image:hover img {
    transform: scale(1.03);
}

/* Full Width Image Divider */
.full-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.servizio-card {
    background: var(--color-white);
    border: none;
    border-top: 3px solid var(--color-accent);
    border-radius: 0;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.servizio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.servizio-number {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.04);
    line-height: 1;
    pointer-events: none;
    transition: all 0.4s ease;
}

.servizio-card:hover .servizio-number {
    color: rgba(0, 182, 2, 0.08);
}

.servizio-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.servizio-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
    align-self: start;
}

.servizio-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.servizio-list li {
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding-left: 16px;
    position: relative;
}

.servizio-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    background: var(--color-accent);
}

.servizio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    align-self: start;
    margin-top: auto;
}

.servizio-link:hover {
    color: var(--color-accent);
}

.servizio-link svg {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.servizio-link:hover svg {
    transform: translateX(6px);
}

/* ============================================
   PERCHÉ SCEGLIERCI SECTION
   ============================================ */
.perche {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.perche-grid {
    display: flex;
    gap: var(--section-gap);
}

.perche-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.perche-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.perche-content {
    flex: 1;
}

.perche-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.perche-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.perche-content .section-desc {
    margin-bottom: 40px;
}

.vantaggi-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vantaggio-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.vantaggio-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--color-accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-top: 2px;
}

.vantaggio-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vantaggio-text strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.vantaggio-text span {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.cta-box {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    padding: var(--section-gap);
    border-radius: 0;
    text-align: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.cta-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 28px;
}

/* ============================================
   PAGE HERO (pagine interne)
   ============================================ */
.page-hero {
    position: relative;
    padding: 120px 0 60px;
    text-align: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 20px;
}

.page-hero-title .highlight {
    color: var(--color-accent);
}

.page-hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* Page Hero Simple (pagine interne senza immagine) */
.page-hero-simple {
    padding: 60px 0;
    background: var(--color-bg);
    text-align: center;
}

.page-hero-title-dark {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.page-hero-title-dark .highlight {
    color: var(--color-accent);
}

.page-hero-desc-dark {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-text-dark);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    position: relative;
}

.footer-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.footer-accreditation {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--color-accent);
}

.footer-accreditation span {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.footer-founder {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

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

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

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

.footer-contact-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-text a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-contact-text a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 24px 32px;
}

.footer-bottom-wrapper {
    position: relative;
}

.footer-bottom-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   CATALOGO CORSI
   ============================================ */
.catalogo {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.catalogo .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.catalogo .section-desc {
    max-width: 550px;
    margin: 0 auto;
}

.catalogo-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.catalogo-search {
    position: relative;
    max-width: 400px;
}

.catalogo-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.catalogo-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 2px solid var(--color-border);
    background: var(--color-bg-alt);
    outline: none;
    transition: all 0.3s ease;
}

.catalogo-search input:focus {
    border-color: var(--color-accent);
    background: var(--color-white);
}

.catalogo-search input::placeholder {
    color: var(--color-text-muted);
}

.catalogo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: transparent;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.filter-btn:hover {
    border-color: var(--color-text-dark);
    color: var(--color-text-dark);
}

.filter-btn.active {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.catalogo-count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.catalogo-count span {
    font-weight: 700;
    color: var(--color-accent);
}

.corsi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.corso-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    padding: 28px 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.corso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.corso-card[data-category="attrezzature"] {
    border-top-color: #0066CC;
}

.corso-card[data-category="stradale"] {
    border-top-color: #CC6600;
}

.corso-card[data-category="rischi"] {
    border-top-color: #CC3333;
}

.corso-card.hidden {
    display: none;
}

.corso-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
}

.corso-badge.badge-blue {
    background: #E8F4FD;
    color: #0066CC;
}

.corso-badge.badge-orange {
    background: #FFF3E8;
    color: #CC6600;
}

.corso-badge.badge-red {
    background: #FDECEC;
    color: #CC3333;
}

.corso-cod {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.corso-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.3;
}

.corso-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.corsi-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.corsi-empty p {
    font-size: 1.1rem;
}

/* ============================================
   CHI SIAMO - ABOUT INTRO (Offset Layout)
   ============================================ */
.about-intro {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.about-intro-content {
    padding-top: 40px;
}

.about-intro-content .section-desc {
    margin-bottom: 16px;
}

.about-intro-content .section-desc:last-of-type {
    margin-bottom: 32px;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-accent);
}

.about-badge-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.about-badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    line-height: 1.4;
}

.about-intro-image {
    position: relative;
    margin-top: 80px;
}

.about-intro-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ============================================
   MODALITÀ EROGAZIONE - STRIP
   ============================================ */
.modalita-strip {
    padding: 48px 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.modalita-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.modalita-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modalita-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    flex-shrink: 0;
}

.modalita-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modalita-text strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.modalita-text span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.modalita-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* ============================================
   APPROCCIO FORMATIVO
   ============================================ */
.approccio {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.approccio-header {
    text-align: center;
    margin-bottom: var(--section-gap);
}

.approccio-header .section-desc {
    max-width: 550px;
    margin: 0 auto;
}

.approccio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.approccio-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 24px;
    background: var(--color-bg-alt);
    border-top: 3px solid var(--color-accent);
    transition: all 0.3s ease;
}

.approccio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.approccio-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.6;
    line-height: 1;
}

.approccio-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.approccio-content strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.approccio-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* ============================================
   LEGAL PAGES (Privacy, Cookie)
   ============================================ */
.legal-content {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.legal-text {
    max-width: 800px;
}

.legal-text h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.legal-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--color-text-light);
    list-style-type: disc;
}

.legal-text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-text a:hover {
    color: var(--color-accent-dark);
}

.legal-update {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

/* ============================================
   404 PAGE
   ============================================ */
.header-404 {
    position: relative;
    background: var(--color-text-dark);
}

.error-page {
    min-height: calc(100vh - 84px - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: 80px 0;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-family: var(--font-heading);
    font-size: clamp(8rem, 20vw, 12rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    opacity: 0.3;
    display: block;
    margin-bottom: -30px;
    text-align: center;
}

.error-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 16px;
}

.error-title .highlight {
    color: var(--color-accent);
}

.error-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn-dark {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.error-actions .btn-dark:hover {
    border-color: var(--color-white);
    background: var(--color-white);
    color: var(--color-text-dark);
}

@media (max-width: 768px) {
    .error-page {
        min-height: calc(100vh - 200px);
        padding: 60px 0;
    }

    .error-code {
        margin-bottom: -20px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   METODO SECTION (Chi Siamo)
   ============================================ */
.metodo-section {
    background: var(--color-bg);
}

.metodo-section .section-header-row {
    margin-bottom: var(--section-gap);
}

.metodo-section .section-title {
    white-space: nowrap;
}

.metodo-no-header {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.metodo-section .servizi-grid {
    grid-auto-rows: 1fr;
}

.metodo-section .servizio-card {
    min-height: auto;
    padding: 24px;
    grid-template-rows: auto auto;
}

/* ============================================
   CONTATTI PAGE
   ============================================ */
.contatti-map-wrapper {
    min-height: 450px;
}

.contatti-map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

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

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

    .corsi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-intro-content {
        padding-top: 0;
    }

    .about-intro-image {
        margin-top: 0;
    }

    .about-intro-image img {
        height: 350px;
    }

    .modalita-grid {
        flex-wrap: wrap;
        gap: 32px;
    }

    .modalita-divider {
        display: none;
    }

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

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

    .hero {
        min-height: auto;
        min-height: 100svh;
    }

    .hero-short {
        min-height: auto;
        min-height: 50svh;
    }

    .hero-short .hero-bottom {
        padding-bottom: 28px;
    }

    /* Mobile Menu Fullscreen */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%) !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: 9999 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }

    .nav-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }

    .nav-menu .nav-link {
        font-size: 2rem;
        font-family: var(--font-heading);
        font-weight: 600;
        padding: 16px 0;
        display: block;
    }

    .nav-menu .nav-link span {
        display: inline-block;
    }

    .nav-menu .nav-link.active {
        color: var(--color-accent);
    }

    .nav-menu .nav-link.active span {
        text-shadow: none;
    }

    .btn-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .hero-bottom {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        padding-bottom: 16px;
    }

    .hero-text {
        max-width: 80%;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-scroll {
        flex-shrink: 0;
    }

    .scroll-line {
        height: 60px;
    }

    .servizi {
        padding: 50px 0;
    }

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

    .servizio-card {
        min-height: auto;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 24px;
    }

    .section-header-left {
        align-items: flex-start;
    }

    .section-header-right {
        display: none;
    }

    .servizio-card {
        text-align: left;
        align-items: flex-start;
    }

    .servizio-link {
        justify-content: flex-start;
    }

    .section-desc {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .servizio-title {
        font-size: 1.15rem;
    }

    .servizio-desc {
        font-size: 0.9rem;
    }

    .section-header-right {
        padding-top: 0;
    }

    .perche {
        padding: 50px 0;
    }

    .perche-grid {
        flex-direction: column;
        gap: 40px;
    }

    .perche-image {
        order: -1;
        min-height: 250px;
    }

    .perche-image img {
        position: relative;
        aspect-ratio: 16/10;
        height: auto;
    }

    .perche-content {
        text-align: left;
    }

    .perche-content .section-label,
    .perche-content .section-title,
    .perche-content .section-desc {
        text-align: left;
    }

    .vantaggi-list {
        align-items: flex-start;
    }

    .vantaggio-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .perche-image img {
        aspect-ratio: 16/10;
        height: auto;
        min-height: auto;
    }

    .cta {
        padding: 50px 0;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-title {
        font-size: clamp(1.6rem, 5vw, 1.8rem);
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 0;
    }

    /* Hide link columns on mobile */
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        display: none;
    }

    /* Logo section */
    .footer-col:first-child {
        text-align: center;
        align-items: center;
        padding-bottom: 24px;
    }

    .footer-desc {
        display: none;
    }

    .footer-founder {
        display: none;
    }

    /* Contacts section */
    .footer-col:nth-child(4) {
        padding-top: 16px;
        text-align: center;
        align-items: center;
    }

    .footer-col:nth-child(4) .footer-title {
        display: none;
    }

    .footer-contact-list {
        align-items: flex-start;
        gap: 16px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding-bottom: 24px;
    }

    .footer-contact-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
        width: 100%;
    }

    .footer-contact-text {
        font-size: 0.9rem;
    }

    .footer-contact-icon {
        flex-shrink: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 32px 20px;
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
        margin-top: 0;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .footer-legal a {
        font-size: 0.85rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    /* Catalogo Corsi Mobile */
    .catalogo {
        padding: 50px 0;
    }

    .catalogo-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 24px;
    }

    .catalogo-search {
        max-width: 100%;
    }

    .catalogo-search input {
        font-size: 0.9rem;
        padding: 12px 16px 12px 44px;
    }

    .catalogo-filters {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .catalogo-count {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .corsi-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .corso-card {
        padding: 20px;
    }

    .corso-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .corso-cod {
        font-size: 0.7rem;
    }

    .corso-title {
        font-size: 1.15rem;
    }

    .corso-desc {
        font-size: 0.9rem;
    }

    /* Chi Siamo Mobile */
    .about-intro-image img {
        height: 280px;
    }

    .about-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 20px;
    }

    .about-badge-number {
        font-size: 2rem;
    }

    .modalita-grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .modalita-item {
        width: 100%;
        max-width: 280px;
        justify-content: flex-start;
    }

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

    .approccio-item {
        padding: 24px 20px;
    }

    .approccio-header {
        text-align: left;
    }

    .approccio-header .section-desc {
        margin: 0;
    }

    /* Contatti Mobile */
    .contatti-map-wrapper {
        min-height: 300px;
    }

    .contatti-map-wrapper iframe {
        min-height: 300px;
    }
}
