:root {
    /* Color Palette - Modern Forza Italia */
    --primary-deep: #00458b;
    /* Deep Blue */
    --primary-light: #00a0e3;
    /* Light Blue Accent */
    --accent: #ff0033;
    /* For small patriotic touches if needed, or stick to blues */
    --white: #ffffff;
    --off-white: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px -10px rgba(0, 69, 139, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.1;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-deep);
}

.section-title.light {
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

/* Stato navbar quando si scrolla */
.navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 69, 139, 0.1);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar.scrolled .nav-logo {
    color: var(--primary-deep);
    text-shadow: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-links a:hover,
.navbar.scrolled .nav-links a:hover {
    color: var(--primary-light);
}

.nav-cta {
    background: var(--primary-deep);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-social-icons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-social-link {
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.navbar.scrolled .nav-social-link {
    color: var(--primary-deep);
    filter: none;
}

.nav-social-link:hover,
.navbar.scrolled .nav-social-link:hover {
    color: var(--primary-light);
    transform: translateY(-3px) scale(1.1);
}

.nav-social-link svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    display: block;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--primary-deep);
    filter: none;
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-deep);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav-overlay.active {
    transform: translateX(0);
}

.nav-overlay-links {
    list-style: none;
    text-align: center;
}

.nav-overlay-links li {
    margin: 2rem 0;
}

.nav-overlay-links a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 800;
}

.overlay-socials {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.overlay-social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0.8;
}

.overlay-social-link:hover {
    color: var(--primary-light);
    opacity: 1;
}

.overlay-social-link i {
    width: 24px;
    height: 24px;
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-deep);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 160, 227, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-deep);
    border: 2px solid var(--primary-deep);
}

.btn-secondary:hover {
    background: var(--primary-deep);
    color: var(--white);
    transform: translateY(-5px);
}

.btn-primary.white {
    background: var(--white);
    color: var(--primary-deep);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #002e70;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-bg {
        /* Alza l'immagine sacrificando un po' di bordo superiore per svelare il viso */
        object-position: 85% -40px;
    }
}

.hero-overlay-gradient {
    display: none;
}

@media (max-width: 768px) {
    .hero-overlay-gradient {
        display: none;
    }
}

.hero-overlay-chicca::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 1024px) {
    .hero-overlay {
        background: rgba(0, 69, 139, 0.6);
        /* Solid/darker overlay on mobile for better text contrast/centering */
    }
}

.hero-content {
    max-width: 1700px; /* Quasi a tutto schermo su desktop */
    margin: 0 auto;
    padding: 0 4rem 0 2%; /* 2% di padding per stare attaccati al bordo a prescindere dallo schermo */
    padding-top: 12vh;
    display: grid;
    grid-template-columns: 1.6fr 0.4fr;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    min-height: calc(100vh - 120px);
}

.hero-spacer {
    display: block;
}

.hero-text {
    color: var(--white);
    text-align: left;
    z-index: 2;
}

@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    background: var(--primary-light);
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-main-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.85; /* Più compresso in verticale */
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: -3px;
    background: linear-gradient(to bottom, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    z-index: 2;
    position: relative;
    opacity: 0;
    animation: heroFadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-main-title.secondary {
    font-size: 4.2rem;
    line-height: 0.9;
    background: none;
    -webkit-text-fill-color: white;
    color: white;
    letter-spacing: -1px;
    font-weight: 700;
    opacity: 0;
    animation: heroFadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

@media (max-width: 1024px) {
    .hero-main-title {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }
    .hero-main-title.secondary {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 1.8rem !important;
        letter-spacing: -1px;
        line-height: 1.25;
    }
    .hero-main-title.secondary {
        font-size: 1.2rem !important;
        line-height: 1.3;
    }
    .hero-content {
        padding: 1rem 1rem 2vh 1rem;
        gap: 1rem;
    }
    .hero-text {
        padding: 1.2rem;
    }
    .hero-btns {
        margin-top: 1.2rem;
        flex-direction: row;
        gap: 0.5rem;
    }
    .hero-btns .btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        line-height: 1.1;
    }
}

.hero-btns {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-top: 2.5rem;
    opacity: 0;
    animation: heroFadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}
@media (max-width: 960px) {
    .hero {
        align-items: flex-end;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 2vh;
        padding-top: 15vh;
        height: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-main-title {
        font-size: 2rem !important;
        letter-spacing: -1px;
        line-height: 1.25;
    }
    .hero-main-title.secondary {
        font-size: 1.4rem !important;
        line-height: 1.3;
    }
    .hero-text {
        text-align: center;
        background: rgba(0, 30, 70, 0.5);
        padding: 1.2rem;
        border-radius: 20px;
        backdrop-filter: blur(5px);
        margin-top: auto;
    }
    .hero-btns {
        margin-top: 1rem;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    .hero-btns .btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        line-height: 1.1;
        min-width: 130px;
        white-space: normal;
    }
    .hero-spacer {
        display: none;
    }
}

.mobile-only {
    display: none !important;
}

.hero-candidate img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Bio Section */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bio-content .highlight {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.bio-stats {
    display: none;
}

.bio-chicca-graphic {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: white;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 69, 139, 0.1);
}

.bio-icon {
    width: 120px;
    height: 120px;
    color: var(--primary-light);
    animation: heartbeat 2s infinite ease-in-out;
    z-index: 2;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

.chicca-circles {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px dashed rgba(0, 160, 227, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chicca-circles::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-light);
    border-radius: 50%;
}

.bio-images-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.bio-interview-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.bio-interview-img:hover {
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .bio-images-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Priorities Section */
.priorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.priority-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 69, 139, 0.05);
    display: flex;
    flex-direction: column;
}

.priority-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.priority-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-deep);
}

.priority-card p {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-img {
    width: 100%;
    margin: 0;
    height: auto;
    max-height: 500px;
    object-fit: contain; /* Full poster visibility */
    background: #f8fbff;
    border-radius: 15px;
    border: 1px solid rgba(0, 69, 139, 0.05);
}

/* Interviste Gallery Section */
.interviste-section {
    background: white;
}

.interviste-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.intervista-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    display: block;
    background: #f8fbff;
    border: 1px solid rgba(0, 69, 139, 0.05);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.intervista-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    transition: transform 0.7s ease;
    margin: 0 auto;
}

.intervista-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 69, 139, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(3px);
}

.intervista-icon {
    color: white;
    background: var(--primary-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.intervista-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 69, 139, 0.2);
    border-color: var(--primary-light);
}

.intervista-card:hover .intervista-img {
    transform: scale(1.05);
}

.intervista-card:hover .intervista-overlay {
    opacity: 1;
}

.intervista-card:hover .intervista-icon {
    transform: translateY(0) scale(1);
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.video-card {
    background: var(--off-white);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: left;
    position: relative;
    border: 1px solid rgba(0, 69, 139, 0.05);
}

.video-card.playing {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 69, 139, 0.15);
}

.video-thumbnail {
    position: relative;
    height: 400px;
    transition: all 0.4s ease;
}

.video-card.playing .video-thumbnail {
    display: none;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-player-container {
    display: none;
    position: relative;
    width: 100%;
    height: 600px; /* Taller for Reels */
    background: #000;
}

.video-card.playing .video-player-container {
    display: block;
    animation: fadeIn 0.5s;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(0, 160, 227, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover .play-overlay {
    background: var(--primary-deep);
    transform: translate(-50%, -50%) scale(1.15);
}

.video-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--accent);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255, 0, 51, 0.4);
    z-index: 10;
}

.video-info {
    padding: 3rem;
    transition: all 0.3s ease;
}

.video-category {
    display: block;
    color: var(--primary-light);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.video-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    color: var(--primary-deep);
}

.video-info p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 0;
}

@media (max-width: 768px) {
    .video-thumbnail {
        height: 250px;
    }
    .video-player-container {
        height: 450px;
    }
    .video-info h3 {
        font-size: 1.5rem;
    }
}

/* Vision Section */
.vision {
    position: relative;
    background: var(--primary-deep);
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 120px 0;
}

.vision-bg-chicca {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 160, 227, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 69, 139, 0.6) 0%, transparent 40%),
                var(--primary-deep);
    z-index: 1;
}

.vision-waves {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    z-index: 2;
    opacity: 0.12;
    animation: waveFloat 20s infinite alternate ease-in-out;
}

@keyframes waveFloat {
    0% { transform: translateY(0) scaleX(1) skewX(0); }
    100% { transform: translateY(15px) scaleX(1.03) skewX(2deg); }
}

.vision-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.vision-badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    color: var(--primary-light);
}

.vision-quote {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 3.5rem;
    letter-spacing: -2px;
}

.glow-btn {
    box-shadow: 0 10px 30px rgba(0, 160, 227, 0.3);
    border: none !important;
    padding: 1.4rem 3rem !important;
    font-size: 1.1rem !important;
}

.glow-btn:hover {
    box-shadow: 0 15px 45px rgba(0, 160, 227, 0.5);
    transform: scale(1.05) translateY(-5px) !important;
}

/* Participation Section */
.participation-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.social-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s;
}

.social-btn.facebook {
    background: #1877f2;
    color: white;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-btn.youtube {
    background: #e62117;
    color: white;
}

.social-btn:hover {
    transform: translateX(10px);
}

.calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 160, 227, 0.1);
    color: var(--primary-light);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.calendar-btn:hover {
    background: var(--primary-light);
    color: white;
}

/* Vision Chicca Background */
.vision-bg-chicca {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-deep) 0%, #002d5b 100%);
    z-index: -1;
}

.vision-bg-chicca::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Footer */
.footer {
    background: var(--primary-deep);
    color: var(--white);
    padding: 80px 0 40px;
}

/* Footer Redesign */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-suggestion h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #25d366 !important;
    border: none !important;
}

.whatsapp-btn:hover {
    background: #128c7e !important;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}



.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-link:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: translateY(-5px);
}

.footer-social-link svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-credit {
    margin-top: 10px;
}

.footer-credit a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s;
}

.footer-credit a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.footer-credit a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-credit a:hover::after {
    width: 100%;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-candidate {
        display: block; /* Show photo on mobile too in vertical stack */
        margin-top: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding: 4rem 1.5rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-main-title, .hero-main-title.secondary {
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .hero-main-title {
        font-size: 3rem;
    }

    .desktop-only {
        display: none !important;
    }

    .hero-btns.mobile-only {
        display: flex !important;
        margin-top: 0;
    }

    .hero p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .bio-grid,
    .participation-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .nav-links, .nav-social-icons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

.off-white-bg {
    background-color: var(--off-white);
}

.primary-bg {
    background-color: var(--primary-deep);
    color: white;
}

/* Segnalami Map */
.map-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.map-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5) contrast(1.2);
}

.map-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 0, 51, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 51, 0);
    }
}

.report-list {
    list-style: none;
    margin-top: 1.5rem;
}

.report-list li {
    padding: 1rem;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.9rem;
}

.report-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.report-tag.buche {
    background: #fee2e2;
    color: #991b1b;
}

.report-tag.illuminazione {
    background: #fef3c7;
    color: #92400e;
}

.report-tag.degrado {
    background: #e5e7eb;
    color: #374151;
}

.priorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.priority-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 1px solid rgba(0, 69, 139, 0.05);
}

.priority-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-light);
}

.priority-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 160, 227, 0.1);
    color: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.priority-icon-wrapper i {
    width: 40px;
    height: 40px;
}

.priority-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-deep);
}

.btn-cta-prio {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-deep);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-cta-prio:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* Pillole di Attualità */
.pillole-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem; /* Added margin to prevent overlap */
}

.pillole-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.pillole-card:hover {
    transform: translateY(-10px);
}

.pillole-card .video-thumbnail {
    aspect-ratio: 9 / 16;
    height: auto;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.pillole-card .play-overlay {
    width: 70px;
    height: 70px;
    font-size: 2rem;
}

.pillole-card .video-player-container {
    aspect-ratio: 9 / 16;
    height: auto;
    width: 100%;
}

.pillole-card.playing .video-thumbnail {
    display: none;
}

.pillole-card.playing .video-player-container {
    display: block;
}

.pillole-card.playing .video-player-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.pillole-info {
    padding: 2rem;
}

.video-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 160, 227, 0.1);
    color: var(--primary-light);
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.pillole-info h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.btn.small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.quiz-opt {
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    color: var(--text-dark);
}

.quiz-opt:hover {
    border-color: var(--primary-light);
    background: rgba(0, 160, 227, 0.05);
    transform: translateY(-2px);
}

/* Timeline Scrollable */
.timeline-relative-wrapper {
    position: relative;
    width: 100%;
}

.timeline-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: white;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    color: var(--primary-deep);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto !important;
}

.timeline-nav-btn i {
    width: 32px;
    height: 32px;
    stroke: var(--primary-deep);
}

.timeline-nav-btn:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.timeline-nav-btn:hover i {
    stroke: white;
}

.nav-fallback {
    font-size: 2rem;
    font-weight: 800;
    display: none; /* Hide if Lucide works, show if fallback needed */
}

/* If lucide icon is empty or failed */
.timeline-nav-btn:not(:has(svg)) .nav-fallback {
    display: block;
}

.timeline-nav-btn.prev {
    left: -30px;
}

/* Vertical Timeline */
.timeline-vertical-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    padding-left: 60px;
    padding-bottom: 20px;
}

.timeline-v-line {
    position: absolute;
    left: 28px;
    top: 10px;
    width: 4px;
    height: calc(100% - 20px);
    background: rgba(0, 69, 139, 0.1);
    border-radius: 10px;
}

.timeline-v-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-v-dot {
    position: absolute;
    left: -46px; /* Center bullet on the 4px line (60px padding - 28px center - 14px radius - 4px border) */
    top: 10px;
    width: 28px;
    height: 28px;
    background: white;
    border: 5px solid;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-v-dot.status-red { 
    border-color: #ef4444; 
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); 
}

.timeline-v-dot.status-blue { 
    border-color: var(--primary-light); 
    box-shadow: 0 0 15px rgba(0, 160, 227, 0.3); 
}

.timeline-v-item.animate-on-scroll {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-v-item.animate-on-scroll.appear {
    opacity: 1;
    transform: translateX(0);
}

.timeline-v-card {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 69, 139, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.timeline-v-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 40px rgba(0, 69, 139, 0.1);
}

.timeline-v-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-deep);
}

.timeline-v-card ul {
    list-style: none;
    padding: 0;
}

.timeline-v-card li {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.timeline-v-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 800;
}

.timeline-v-date {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.timeline-v-item.future .timeline-v-card {
    background: var(--primary-deep);
    color: white;
    border: none;
}

.timeline-v-item.future .timeline-v-card h3,
.timeline-v-item.future .timeline-v-date,
.timeline-v-item.future .timeline-v-card li {
    color: white;
}

.timeline-v-item.future .timeline-v-card li::before {
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .timeline-vertical-wrapper {
        padding-left: 45px;
    }
    .timeline-v-line {
        left: 20px;
    }
    .timeline-v-dot {
        left: -37px;
        width: 22px;
        height: 22px;
        border-width: 4px;
    }
    .timeline-v-card {
        padding: 1.5rem;
    }
    .timeline-v-card h3 {
        font-size: 1.3rem;
    }
}

/* Agenda Section Styling */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: white;
    padding: 2.5rem;
    border-radius: 40px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 69, 139, 0.05);
}

.agenda-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-light);
    box-shadow: 0 25px 50px rgba(0, 69, 139, 0.12);
}

.agenda-date-badge {
    background: var(--primary-deep);
    color: white;
    width: 90px;
    height: 90px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 69, 139, 0.2);
}

.agenda-date-badge .month {
    font-size: 1.4rem;
    font-weight: 800;
}

.agenda-info {
    flex-grow: 1;
}

.agenda-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-deep);
}

.agenda-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.calendar-widget-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    background: rgba(0, 160, 227, 0.05);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.calendar-widget-btn:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 160, 227, 0.2);
}

.calendar-widget-btn i {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .agenda-grid {
        grid-template-columns: 1fr;
    }
    .agenda-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    .agenda-date-badge {
        margin-bottom: 1rem;
    }
}

/* Daily Idea */
.idea-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.idea-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary-deep);
    border-radius: 10px;
    font-weight: 800;
    margin-bottom: 2rem;
}

.idea-box h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.idea-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-arrow {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary-deep);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {

    .simulator-grid,
    .map-container {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        text-align: left;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-dot {
        left: 21px !important;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .vision-quote {
        font-size: 2rem;
    }

    .bio-stats {
        justify-content: center;
    }
}

/* Quiz Section */
.quiz-container {
    background: white;
    padding: 3rem;
    border-radius: 40px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

#quiz-start,
#quiz-question-container,
#quiz-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#quiz-start .section-title,
#quiz-result .section-title {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.quiz-progress {
    width: 100%;
    height: 8px;
    background: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary-light);
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.quiz-opt {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    background: transparent;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-opt:hover {
    border-color: var(--primary-light);
    background: rgba(0, 160, 227, 0.05);
    color: var(--primary-light);
    transform: translateY(-3px);
}

/* Footer Section */
.footer {
    background: #001a33; /* Slightly darker for better transition */
    color: white;
    padding: 100px 0 40px;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr;
    gap: 4rem;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.brand-tag {
    opacity: 0.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
    background: var(--primary-light);
    transform: translateY(-5px) rotate(8deg);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 160, 227, 0.3);
}

.footer-nav-col h4 {
    color: var(--primary-light);
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.footer-nav-col ul {
    list-style: none;
    padding: 0;
}

.footer-nav-col li {
    margin-bottom: 1rem;
}

.footer-nav-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav-col a:hover {
    color: white;
}

/* Glassmorphic Suggestion Card */
.footer-suggestion-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem;
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-suggestion-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 160, 227, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-suggestion-card h4 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-suggestion-card p {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.whatsapp-btn-premium {
    background: #25d366 !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: white !important;
    font-weight: 800 !important;
    animation: pulseGlowGreen 3s infinite;
}

@keyframes pulseGlowGreen {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    position: relative;
    padding-top: 2rem;
}

.footer-back-to-top {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 160, 227, 0.3);
    border: none;
    cursor: pointer;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.footer-back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.footer-back-to-top:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 15px 30px rgba(0, 160, 227, 0.5);
}

.footer-back-to-top:hover svg {
    stroke: var(--primary-light);
}

.footer-credit a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-suggestion-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .footer-brand, .footer-nav-col, .footer-suggestion-card {
        grid-column: span 1;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
/* --- UNIVERSAL MOBILE OPTIMIZATION (Android & iOS) --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem !important;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Grid Mobile Fixes */
    .priorities-grid, 
    .interviste-grid, 
    .video-grid, 
    .pillole-grid, 
    .agenda-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100%;
    }

    /* Quiz Mobile */
    .quiz-options {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .quiz-opt {
        padding: 1.2rem;
        font-size: 0.95rem;
        border-radius: 15px;
        text-align: left;
    }

    /* Vision Section Mobile */
    .vision-content {
        padding: 2rem 1rem;
    }

    .vision-quote {
        font-size: 1.4rem !important;
        line-height: 1.4;
    }

    /* Priorities Card Optimization */
    .priority-card {
        padding: 2rem 1.5rem;
    }
    
    .priority-card h3 {
        font-size: 1.5rem;
    }

    /* Agenda Spacing */
    .agenda-item {
        margin-bottom: 2rem;
    }
}

/* Specific for very small devices (iPhone SE) */
@media (max-width: 380px) {
    .hero-main-title {
        font-size: 1.8rem !important;
    }
    
    .navbar .nav-logo {
        font-size: 1.2rem;
    }
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 60, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; }
.modal-content {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.close-modal:hover { color: #333; }

/* Segnalami Salerno CSS tags */
.report-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
    text-transform: uppercase;
}
.report-tag.buche { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.report-tag.illuminazione { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.report-tag.barriere { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.report-tag.degrado { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.leaflet-popup-content-wrapper {
    border-radius: 15px !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Segnalami Legend Steps */
.segnalami-steps {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.segnalami-step {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    flex: 1;
    min-width: 250px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-light);
    transition: transform 0.3s ease;
}
.segnalami-step:hover {
    transform: translateY(-5px);
}
.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 160, 227, 0.1);
    color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.segnalami-step h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-deep);
}
.segnalami-step p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
}
