/*
 * Project: Roadshow dell’Innovazione 2026
 * Developed by: Giuseppe Montesanti - cfweb.it
 * Description: Main Stylesheet
 */

/* Font Face Definitions */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/PlusJakartaSans-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg-color: #ffffff;
    --text-main: #011886;
    --text-muted: #334155;
    --accent: #17ADCB;
    --accent-glow: rgba(23, 173, 203, 0.5);
    --accent-secondary: #FDC45B;
    --accent-tertiary: #ACE22A;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --radius-lg: 20px;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
    scroll-behavior: auto !important;
}

/* Ensure popup content can scroll normally */
[data-lenis-prevent] {
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    position: relative;
}

/* Static Blurred Background */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #ffffff;
}

.bg-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('media/italia_roadshow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.15;
    z-index: -2;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    background: var(--accent);
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -100px;
    background: var(--accent);
    opacity: 0.15;
    animation: float-blob 20s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: -100px;
    background: var(--accent-secondary);
    opacity: 0.1;
    animation: float-blob-reverse 25s ease-in-out infinite;
}

.blob-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 20%;
    background: var(--accent-tertiary);
    opacity: 0.1;
    animation: float-blob 30s ease-in-out infinite;
}

@keyframes float-blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -70px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }
}

@keyframes float-blob-reverse {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-60px, 40px) scale(1.05);
    }

    66% {
        transform: translate(40px, -50px) scale(0.95);
    }
}

h1,
h2,
h3,
h4,
.btn {
    font-family: var(--font-main);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* GSAP Visibility */
.gsap-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
}

/* Navigation */
/* Navigation */
/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-radius: 0;
    /* Important: Remove any inherited rounding */
    transform: none;
    /* Important: Remove any inherited transform */
}

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

.header-logo {
    height: 65px;
    /* Reduced from 509px original height to fit header */
    width: auto;
    display: block;
}

nav.desktop-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav.desktop-nav ul {
    display: flex;
    gap: clamp(1rem, 1.5vw, 2.5rem);
    align-items: center;
}

nav.desktop-nav a {
    font-size: clamp(0.75rem, 0.85vw, 0.9rem);
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

nav.desktop-nav a:hover {
    color: var(--accent);
}

/* Brochure Button */
.btn-brochure {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    /* Light grey */
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-brochure:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-main);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    background: var(--text-main);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 25px rgba(23, 173, 203, 0.3);
    border: none;
}

.btn.btn-accent:hover {
    background: #128ba3;
    /* Darker version of #17ADCB */
    box-shadow: 0 0 40px rgba(23, 173, 203, 0.5);
}

.btn.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(23, 173, 203, 0.05);
    color: var(--accent);
}

/* Sections */
section {
    padding: 7rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations and shadows */
}

.section-header {
    margin-bottom: 1rem;
    text-align: left;
}

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

.section-header h2 {
    font-size: clamp(2rem, 7vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: var(--text-main);
    line-height: 1;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* Hero */
.hero {
    min-height: 85vh;
    /* Reduced from 100vh */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
}

/* Italia nel Futuro Link */
.italia-link {
    text-decoration: none;
    display: inline-block;
}

.italia-link span {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.italia-link:hover span {
    background: rgba(23, 173, 203, 0.2) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(23, 173, 203, 0.3);
}

.external-icon {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transform: translateX(-4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0;
}

.italia-link:hover .external-icon {
    opacity: 1;
    width: 14px;
    transform: translateX(0);
    margin-left: 6px;
}

.hero-logo-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.hero-logo {
    width: 100%;
    height: auto;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-align: center;
    max-width: 900px;
}

/* Counters */
#counters {
    padding: 0;
    margin: 4rem auto 0;
    position: relative;
    z-index: 5;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 6 columns for desktop */
    gap: 1rem;
    /* Reduced gap */
    text-align: center;
    align-items: stretch;
}

.counter-item {
    padding: 1.2rem 1rem;
    /* Reduced padding */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: calc(var(--radius-lg) / 1.5);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    /* Tighter gap */
    min-height: auto;
    /* Removed fixed height for more compact look */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.counter-number {
    display: block;
    font-weight: 800;
    font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

/* Size classes to keep numbers visually balanced */
.counter-number.large {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.counter-number.medium {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
}

.counter-number.small {
    font-size: clamp(1.2rem, 2.6vw, 2rem);
}

.counter-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

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

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

@media (max-width: 600px) {
    .counters-grid {
        grid-template-columns: 1fr;
    }

    .counter-item {
        min-height: auto;
        padding: 1rem;
    }
}

.counter-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.counter-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* Grid & Cards */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* Center the 10th region on desktop (3 columns) */
@media (min-width: 1024px) {
    .regions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* Ticker Section - Full Width */
/* Tappe Slider - New Implementation */
#tappe {
    max-width: none !important;
    width: 100% !important;
    padding: 5rem 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.tappe-slider-container {
    width: 100%;
    position: relative;
    padding: 2.5rem 0;
    margin: 2rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.tappe-slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tappe-slider-track {
    display: flex;
    padding: 0 5%;
}

.tappe-item {
    flex: 0 0 350px;
    padding: 2.5rem;
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    scroll-snap-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.tappe-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(23, 173, 203, 0.1);
}

.tappe-item span {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

.tappe-item small {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tappa-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: underline;
    margin-top: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tappa-link:hover {
    opacity: 1;
    color: var(--accent);
}

/* Slider Navigation */
.slider-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 5%;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: #fff;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.slider-arrow:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(23, 173, 203, 0.3);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--card-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
    .tappe-item {
        flex: 0 0 280px;
        padding: 2rem;
    }

    .tappe-item span {
        font-size: 1.4rem;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
    }
}


#obiettivi {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}

/* Sectors (Tag Cloud) */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
    overflow: visible;
}

.sector-tag {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 28px 12px 12px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.sector-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sector-icon i {
    width: 24px;
    height: 24px;
}

.sector-tag:hover {
    background: #fff;
    color: var(--text-main);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Visione list style */
.visione-list {
    display: grid;
    gap: 15px;
    list-style: none;
    background: rgba(255, 255, 255, 0.8);
    padding: 0;
}

.visione-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 50px;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 768px) {

    .sectors-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 10px 5% 25px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .sector-tag {
        padding: 10px 16px 10px 10px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .sector-icon {
        width: 38px;
        height: 38px;
    }

    .visione-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 10px 5% 25px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .visione-list::-webkit-scrollbar {
        display: none;
    }

    .visione-item {
        flex-shrink: 0 !important;
        scroll-snap-align: center;
    }
}

/* Comms items */
.comms-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease;
}

.comms-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.04);
}

/* Regions Grid (Deprecated, keep for now if needed for back compat or remove) */
.regions-grid {
    display: none;
    /* Hidden as per ticker request */
}

/* General spacing audit */
section {
    padding: 8rem 5%;
}

@media (max-width: 768px) {
    section {
        padding: 5rem 5%;
    }

    .ticker-item span {
        font-size: 1.4rem;
    }

    .ticker-item {
        padding: 0 2rem;
    }
}

.regions-grid>a.region-card:last-child:nth-child(3n+1) {
    grid-column: 2;
}

a.region-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(10px);
}

a.region-card:hover {
    background: #f8fafc;
    border-color: var(--accent);
    transform: translateY(-8px) !important;
    box-shadow: 0 10px 30px rgba(23, 173, 203, 0.1);
}

.region-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.region-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: #e2e8f0;
}

.region-date {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    background: rgba(23, 173, 203, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.region-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.region-link-visual {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

a.region-card:hover .region-link-visual {
    color: var(--accent);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: 0.3s;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    background: #f8fafc;
    border-color: var(--accent);
}

.icon-box {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.icon-box.secondary {
    color: var(--accent-secondary);
}

.icon-box.tertiary {
    color: var(--accent-tertiary);
}

.img-box img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
}

/* Image Box specific for Mappa */
.mappa-box img {
    box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
}

/* Video inside image boxes */
.img-box video {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    object-fit: cover;
    /* Back to cover for full fill without borders */
    display: block;
    /* Removed box-shadow and border */
}

/* Shared img-box logic */
.img-box {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {

    .img-box video,
    .img-box .hero-video {
        aspect-ratio: auto;
        /* Allow natural ratio or let it be flexible */
        max-height: 400px;
        width: 100%;
    }

    .img-box {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        /* Contain any slight overflow */
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
}

.preloader-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 0 2rem;
}

.preloader-logo-container {
    width: 320px;
    margin: 0 auto 1.5rem;
    /* Reduced margin */
    overflow: hidden;
    position: relative;
}

.preloader-logo {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(105%);
    /* Initial position for mask effect */
}

.preloader-text {
    font-size: clamp(1rem, 2.3vw, 1.2rem);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.025em;
    line-height: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.preloader-text span {
    display: inline-block;
    white-space: pre;
}

.iniziativa-item .icon-box {
    flex-shrink: 0;
}

.iniziativa-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.iniziativa-list {
    margin-top: 1rem;
    display: grid;
    gap: 5px;
    color: var(--text-muted);
}

/* Chi Parteciperà Refactor */
.participants-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on desktop */
    gap: 20px;
    margin-top: 3rem;
    padding: 0 5%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 600px) {
    .participants-container {
        grid-template-columns: 1fr;
    }
}

.participant-card {
    height: 100%;
    background: #fff;
    padding: 2rem 1.5rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.participant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.participant-icon {
    width: 50px;
    height: 50px;
    background: rgba(23, 173, 203, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.participant-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.participant-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Le Tappe Table */
.tappe-table-container {
    max-width: 800px;
    margin: 2rem auto;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--card-border);
}

.tappe-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tappe-table td {
    width: 50%;
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    color: var(--text-main);
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}

.tappe-table tr:last-child td {
    border-bottom: none;
}

.tappa-region {
    font-size: 0.95rem;
    font-weight: 700;
    color: #011886;
    /* PA styled */
    background: rgba(1, 24, 134, 0.05);
    padding: 8px 22px;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.2s ease;
}

.tappa-region:hover {
    background: rgba(1, 24, 134, 0.09);
    transform: translateY(-1px);
}

/* Iniziative Stacked */
.iniziative-stacked {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.iniziativa-item {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.iniziativa-item .icon-box {
    flex-shrink: 0;
    margin-bottom: 0;
}

.iniziativa-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.iniziativa-list {
    margin-top: 1rem;
    display: grid;
    gap: 5px;
    color: var(--text-muted);
    list-style: none;
}

.iniziativa-subtext {
    margin-top: 10px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}



/* Footer Contatti */
.contatti-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.email-link {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    opacity: 0.8;
}

/* Mobile Adjustments Override */
@media (max-width: 1200px) {
    .participants-container {
        flex-direction: column;
        padding: 0 5%;
    }

    .participant-card {
        width: 100%;
    }

    .iniziativa-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .btn-brochure .btn-text {
        display: none;
    }

    .btn-brochure {
        padding: 0.6rem;
    }

    .email-link {
        font-size: 1.4rem;
    }

    /* Le Tappe Responsive */
    .tappe-table-container {
        padding: 0;
        margin: 1.5rem auto;
    }

    .tappe-table td {
        padding: 0.9rem 0.6rem;
    }

    .tappa-region {
        font-size: 0.88rem;
        padding: 7px 14px;
    }
}

.burger {
    display: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 10px;
}

/* Updated Full Overlay */
.mobile-overlay.full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    background: #011886;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: none;
    /* Let GSAP handle it */
}

.mobile-overlay.full-overlay.open {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-content: center;
    gap: 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mobile-overlay.full-overlay a {
    color: #fff;
    font-size: clamp(1.4rem, 5vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0;
    /* Animated by GSAP */
    transform: translateY(20px);
    position: relative;
    display: inline-flex;
    align-items: flex-start;
}

.mobile-overlay.full-overlay a sup {
    font-size: 0.35em;
    font-weight: 600;
    margin-left: 8px;
    margin-top: 0.2em;
    color: var(--accent);
}

.mobile-overlay.full-overlay a:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 5%;
    color: #fff;
    cursor: pointer;
}

/* Footer & Extras */
#manifesto {
    text-align: center;
    padding: 10rem 5%;
    background: radial-gradient(circle at center, rgba(23, 173, 203, 0.1) 0%, transparent 80%);
    margin-bottom: 0;
    max-width: none !important;
    width: 100% !important;
}

#manifesto h2 {
    font-size: clamp(2rem, 5vw, 2rem);
    margin-bottom: 2rem;
    font-weight: 800;
}

#manifesto p {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
    color: var(--text-muted);
}


footer a {
    text-decoration: underline
}

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


/* Preloader & Navigation Overlay are handled above with high priority classes */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: rgba(23, 173, 203, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(23, 173, 203, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(23, 173, 203, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(23, 173, 203, 0.4);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 5% 2rem;
    background: #ffffff;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

.footer-info .logo {
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 100px;
    width: auto;
    display: block;
}

.company-details {
    margin-top: 2rem;
    color: #888;
    line-height: 1.6;
}

.company-details p {
    margin: 0.25rem 0;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--accent);
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.footer-col a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col a:hover {
        transform: translateY(-3px);
    }
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
}

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

/* Privacy Policy Popup */
.privacy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-popup.active {
    opacity: 1;
    visibility: visible;
}

.privacy-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.privacy-popup-content {
    position: relative;
    width: 100%;
    max-height: 80vh;
    background: var(--bg-color);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    /* Disable Lenis scroll for this element */
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
}

.privacy-popup.active .privacy-popup-content {
    transform: translateY(0);
}

.privacy-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--card-border);
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1;
}

.privacy-popup-header h3 {
    color: var(--text-main);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.privacy-popup-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.privacy-popup-close:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.05);
}

.privacy-popup-body {
    padding: 2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.privacy-popup-body h4 {
    color: var(--text-main);
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.privacy-popup-body p {
    margin-bottom: 1rem;
}

.privacy-popup-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-popup-body li {
    margin-bottom: 0.5rem;
}

.privacy-popup-body a {
    color: var(--accent);
    text-decoration: none;
}

.privacy-popup-body a:hover {
    text-decoration: underline;
}

.privacy-popup-body small {
    color: #888;
    font-size: 0.8rem;
}

@media (max-width: 1200px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .grid-2>div,
    .grid-3>div {
        min-width: 0;
        width: 100%;
    }

    .img-box {
        margin: 0 auto;
        width: 100%;
    }

    nav.desktop-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    header {
        height: 70px;
        padding: 0 5%;
    }

    section {
        padding: 5rem 5%;
    }

    .hero p {
        padding: 0 1rem;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }

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

    .footer-info .logo {
        justify-content: center;
    }

    .footer-info p {
        margin: 1rem auto !important;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .footer-bottom {
        grid-column: 1 / -1;
        border-top: 1px solid var(--card-border);
        padding-top: 2rem;
        margin-top: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }

    @media (max-width: 900px) {
        .footer-bottom {
            flex-direction: column;
            text-align: center;
        }
    }

    .privacy-popup-content {
        max-height: 90vh;
    }

    .privacy-popup-header,
    .privacy-popup-body {
        padding: 1.5rem;
    }
}

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

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

@media (max-width: 600px) {
    .btn-contattaci {
        padding: 0.5rem !important;
        width: 44px;
        height: 44px;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .btn-contattaci .btn-text {
        display: none;
    }

    .btn-contattaci i {
        margin: 0;
    }

    .hero h1 span {
        display: block !important;
        width: 100%;
    }

    .year-highlight {
        margin-top: 0.5rem;
    }

    .tappe-table td {
        padding: 0.75rem 0.35rem;
    }

    .tappa-region {
        font-size: 0.78rem;
        padding: 6px 10px;
    }
}