/* --- TEMA COLORE BLU & VARIABILI --- */
:root {
    --primary: #123962;        /* Blu istituzionale profondo */
    --primary-light: #1c528b;  /* Blu brillante */
    --accent: #d97736;         /* Arancio vivo per pulsanti e risalto */
    --accent-hover: #bc6123;
    --gold: #f5b73d;           /* Giallo oro per sezioni attive e tesseramento */
    --dark: #0a1726;           /* Blu notte per la barra e footer */
    --light-bg: #f4f7fa;       /* Sfondo chiaro elegante */
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #5d6d7e;
    --border-color: #dbe2ea;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(18, 57, 98, 0.08);
    --shadow-lg: 0 20px 40px rgba(18, 57, 98, 0.16);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

h1, h2, h3, h4 {
    color: var(--dark);
    font-weight: 700;
}

.hero-title, .spotlight-title, .section-title, .past-events-title {
    font-family: 'Playfair Display', Georgia, serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- PULSANTI DESKTOP --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    min-height: 48px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    touch-action: manipulation;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(217, 119, 54, 0.35);
}

.btn-primary:hover, .btn-primary:active {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 54, 0.45);
}

.btn-outline {
    background: rgba(10, 23, 38, 0.35);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
}

.btn-outline:hover, .btn-outline:active {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border-color);
}

.btn-outline-dark:hover, .btn-outline-dark:active {
    background: var(--light-bg);
    border-color: var(--primary);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
}

.btn-gold:hover, .btn-gold:active {
    background: #e2a628;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 183, 61, 0.35);
}

/* --- PULSANTI SOCIAL SPECIFICI --- */
.btn-social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.35);
}

.btn-social-instagram:hover,
.btn-social-instagram:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.45);
    filter: brightness(1.08);
}

.btn-social-facebook {
    background: #1877f2;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.btn-social-facebook:hover,
.btn-social-facebook:active {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
}

.btn-social-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-social-whatsapp:hover,
.btn-social-whatsapp:active {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.full-width {
    width: 100%;
}

/* --- NAVBAR DESKTOP --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(10, 23, 38, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    padding-top: env(safe-area-inset-top, 0px);
}

.header.scrolled {
    background: rgba(8, 18, 30, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image-wrap {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    padding: 3px;
    flex-shrink: 0;
}

.brand-icon-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.proloco-title {
    font-weight: 800;
    font-size: 1.12rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.sub-title {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-item {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--gold) !important;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 8px;
    z-index: 1001;
}

.hamburger-btn span {
    width: 26px;
    height: 2.5px;
    background: white;
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* DRAWER MOBILE NASCOSTO SU PC */
.mobile-drawer {
    display: none !important;
}

/* TASTO TORNA ALLA HOME: NASCOSTO TOTALMENTE SU PC */
.mobile-back-btn-wrap {
    display: none !important;
}

/* --- HERO SECTION DESKTOP --- */
.hero-section {
    position: relative;
    padding: 170px 0 100px;
    color: white;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary);
}

.hero-bg-image {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background-image: url('sfondo-torre.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(1px);
    transform: scale(1.02);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 23, 38, 0.72) 0%, rgba(14, 43, 77, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.4rem;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.accent-text {
    color: var(--gold) !important;
    font-style: italic;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-desc {
    max-width: 620px;
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 34px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.9);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 24px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.stat-label {
    font-size: 0.85rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* --- EVENTO IN EVIDENZA (GRIGLIA & LOCANDINA 1:1) --- */
.event-spotlight-section {
    padding: 80px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.spotlight-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.spotlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffedd5;
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: center;
}

.spotlight-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cinema-poster-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    height: auto;
    box-shadow: var(--shadow-soft);
    background-color: #0b1a2d;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.cinema-poster-frame:hover .poster-img {
    transform: scale(1.03);
}

.sub-heading {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.spotlight-title {
    font-size: 2.2rem;
    margin: 8px 0 16px;
    line-height: 1.25;
}

.spotlight-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.event-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-item i {
    width: 38px;
    height: 38px;
    background: #e9f2fa;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    font-size: 0.95rem;
}

.detail-item span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.spotlight-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.spotlight-empty {
    text-align: center;
    padding: 30px 20px;
}

.spotlight-empty i.empty-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: inline-block;
}

.spotlight-empty h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.spotlight-empty p {
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 24px;
    font-size: 1.05rem;
}

/* --- ARCHIVIO EVENTI PRECEDENTI --- */
.past-events-section {
    margin-top: 55px;
    padding-top: 45px;
    border-top: 1px dashed var(--border-color);
}

.past-events-header {
    text-align: center;
    margin-bottom: 35px;
}

.past-events-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.past-events-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.past-event-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.past-event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.past-event-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #0b1a2d;
}

.past-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.92);
    transition: var(--transition);
}

.past-event-card:hover .past-event-thumb img {
    filter: brightness(1);
    transform: scale(1.04);
}

.past-badge-closed {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 23, 38, 0.85);
    backdrop-filter: blur(4px);
    color: #e2e8f0;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.past-event-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.past-event-date {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.past-event-body h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.past-event-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- SEZIONE GENERICA --- */
.section-header {
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}

.badge-section {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- CHI SIAMO --- */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.about-card {
    background: white;
    padding: 34px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 56px;
    height: 56px;
    background: #eef6fc;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.active-card .about-icon {
    background: #ffedd5;
    color: var(--accent);
}

.about-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- TERRITORIO --- */
.territory-section {
    padding: 90px 0;
    background: #eef3f8;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.territory-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.territory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(18, 57, 98, 0.18);
    border-color: var(--accent);
}

.card-thumb {
    height: 220px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.territory-card:hover .card-thumb img {
    transform: scale(1.08);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body .tag {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body h3 {
    margin: 8px 0 10px;
    font-size: 1.3rem;
}

.card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.card-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    transition: gap 0.2s ease, color 0.2s ease;
}

.territory-card:hover .card-action-link {
    color: var(--accent);
    gap: 12px;
}

/* --- GALLERIA FOTOGRAFICA (ALBUM 1:1) --- */
.gallery-section {
    padding: 90px 0;
    background: #ffffff;
}

.gallery-albums-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.gallery-album-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 390px;
}

.gallery-album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(18, 57, 98, 0.16);
    border-color: var(--accent);
}

.album-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #0b1a2d;
}

.album-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-album-card:hover .album-cover-img {
    transform: scale(1.05);
}

.album-overlay-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(10, 23, 38, 0.88);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.album-overlay-badge i {
    color: var(--gold);
}

.album-folder-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.album-details {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.album-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.album-details h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.album-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.album-open-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    transition: gap 0.2s ease, color 0.2s ease;
}

.gallery-album-card:hover .album-open-link {
    color: var(--accent);
    gap: 12px;
}

/* --- LIGHTBOX MODAL --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 18, 30, 0.94);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-modal {
    position: relative;
    width: 100%;
    max-width: 1050px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    background: #0f2137;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--accent);
}

.lightbox-header {
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.lightbox-album-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lightbox-header h3 {
    color: white;
    font-size: 1.35rem;
    margin-top: 2px;
}

.lightbox-counter {
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 50px;
}

.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-grow: 1;
    min-height: 380px;
    background: #071321;
}

.lightbox-image-wrap {
    max-width: 100%;
    max-height: 58vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-wrap img {
    max-width: 100%;
    max-height: 58vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s ease;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.lightbox-nav-btn:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn.prev {
    left: 20px;
}

.lightbox-nav-btn.next {
    right: 20px;
}

.lightbox-thumbnails {
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    background: #0d1e33;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-thumb {
    width: 65px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: var(--transition);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumb:hover {
    opacity: 0.85;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--gold);
    transform: scale(1.04);
}

/* --- TESSERAMENTO CTA --- */
.cta-section {
    padding: 60px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.badge-white {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.cta-inner h2 {
    color: white;
    font-size: 2.6rem;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.cta-inner p {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- SEZIONE SPONSOR IN BLU --- */
.sponsor-section {
    padding: 85px 0 70px;
    background: #ffffff;
}

.sponsor-cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #164373 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 42px 46px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    box-shadow: 0 16px 36px rgba(18, 57, 98, 0.22);
    margin-bottom: 26px;
    transition: var(--transition);
    color: #ffffff;
}

.sponsor-cta-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(18, 57, 98, 0.3);
}

.sponsor-cta-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--gold);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.sponsor-cta-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.sponsor-cta-content p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.sponsor-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sponsor-badges-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.sponsor-badges-list span i {
    color: #4ade80;
}

.sponsor-cta-btn-wrap {
    flex-shrink: 0;
}

.sponsor-cta-btn-wrap .btn-primary {
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.sponsor-cta-btn-wrap .btn-primary:hover {
    background: #e2a628;
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 183, 61, 0.4);
}

.sponsor-grid-placeholder {
    text-align: center;
    padding: 12px 0;
}

.sponsor-placeholder-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    background: #f1f5f9;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

/* --- CONTATTI --- */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-methods {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.c-item i {
    width: 44px;
    height: 44px;
    background: #e9f2fa;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.c-item h4 {
    font-size: 1rem;
}

.c-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.c-item a {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s ease;
}

.c-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.contact-form-wrap {
    background: white;
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* --- FOOTER --- */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.f-brand {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.social-links-f {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    justify-content: flex-end;
}

.social-links-f a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links-f a:hover {
    background: var(--accent);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* --- MODALI E POPUP --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 23, 38, 0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    max-width: 480px;
    width: 100%;
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark);
}

.modal-icon {
    width: 65px;
    height: 65px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.modal-icon.success-icon {
    background: #dcfce7;
    color: #16a34a;
}

.modal-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.modal-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.modal-subtext {
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
    margin-bottom: 24px !important;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- MODAL DETTAGLIATA STORIA DEL TERRITORIO --- */
.history-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 23, 38, 0.78);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.history-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.history-modal-container {
    background: #ffffff;
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-modal-overlay.active .history-modal-container {
    transform: translateY(0) scale(1);
}

.history-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(18, 57, 98, 0.08);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: var(--transition);
}

.history-modal-close:hover {
    background: var(--accent);
    color: white;
}

.history-modal-header {
    padding: 36px 36px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

.history-modal-header .h-badge {
    display: inline-block;
    background: #eef6fc;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.history-modal-header h2 {
    font-size: 2rem;
    line-height: 1.25;
    color: var(--dark);
}

.history-modal-body {
    padding: 28px 36px;
    overflow-y: auto;
    line-height: 1.7;
    color: #334155;
    font-size: 1rem;
}

.history-modal-body h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 24px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.history-modal-body h4:first-child {
    margin-top: 0;
}

.history-modal-body p {
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.history-modal-body .quote-block {
    background: #fdf8f4;
    border-left: 4px solid var(--accent);
    padding: 14px 18px;
    margin: 18px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: #475569;
}

.history-modal-footer {
    padding: 16px 36px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    display: flex;
    justify-content: flex-end;
}

/* ===================================================
   ANIMAZIONI A PIOGGIA DESKTOP
   =================================================== */
.hero-title,
.hero-desc,
.hero-buttons,
.stat-card {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

body.page-loaded .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

body.page-loaded .hero-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

body.page-loaded .hero-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

body.page-loaded .stat-card:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

body.page-loaded .stat-card:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.95s;
}

body.page-loaded .stat-card:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.1s;
}

.rain-item {
    opacity: 0;
    transform: translateY(-45px);
    transition: opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.75s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.rain-item.drop-in {
    opacity: 1;
    transform: translateY(0);
}

.cards-grid .territory-card:nth-child(1),
.about-grid .about-card:nth-child(1) {
    transition-delay: 0.1s;
}

.cards-grid .territory-card:nth-child(2),
.about-grid .about-card:nth-child(2) {
    transition-delay: 0.25s;
}

.cards-grid .territory-card:nth-child(3),
.about-grid .about-card:nth-child(3) {
    transition-delay: 0.4s;
}

.contact-grid .contact-info {
    transition-delay: 0.15s;
}

.contact-grid .contact-form-wrap {
    transition-delay: 0.3s;
}

/* ==========================================================================
   SOLO SU MOBILE (SOTTO 992px): SEZIONI DEDICATE, DRAWER TRASPARENTE E PIOGGIA
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    /* 1. Menu ad hamburger semi-trasparente elegante (blur glassmorphism) */
    .mobile-drawer {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(10, 24, 43, 0.78);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        padding: calc(90px + env(safe-area-inset-top, 0px)) 24px calc(30px + env(safe-area-inset-bottom, 0px));
        transform: translateX(100%);
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 998;
        overflow-y: auto;
    }

    .mobile-drawer.open {
        transform: translateX(0);
    }

    /* 2. Voci del menu centrate con effetto a pioggia quando si apre il menu */
    .mobile-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 14px;
        margin: auto 0;
        width: 100%;
    }

    .mobile-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(-30px);
        transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1), transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .mobile-drawer.open .mobile-links li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Ritardo a cascata per ciascuna voce del menu mobile */
    .mobile-drawer.open .mobile-links li:nth-child(1) { transition-delay: 0.10s; }
    .mobile-drawer.open .mobile-links li:nth-child(2) { transition-delay: 0.16s; }
    .mobile-drawer.open .mobile-links li:nth-child(3) { transition-delay: 0.22s; }
    .mobile-drawer.open .mobile-links li:nth-child(4) { transition-delay: 0.28s; }
    .mobile-drawer.open .mobile-links li:nth-child(5) { transition-delay: 0.34s; }
    .mobile-drawer.open .mobile-links li:nth-child(6) { transition-delay: 0.40s; }
    .mobile-drawer.open .mobile-links li:nth-child(7) { transition-delay: 0.46s; }
    .mobile-drawer.open .mobile-links li:nth-child(8) { transition-delay: 0.52s; }

    .mobile-nav-item {
        color: #ffffff;
        font-size: 1.35rem;
        font-weight: 700;
        padding: 8px 16px;
        display: inline-block;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .mobile-nav-item:active,
    .mobile-nav-item.active {
        color: var(--gold) !important;
        transform: scale(1.08);
    }

    .mobile-drawer-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        width: 100%;
        max-width: 320px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .mobile-socials {
        display: flex;
        justify-content: center;
        gap: 18px;
    }

    .mobile-socials a {
        width: 46px;
        height: 46px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.15rem;
    }

    /* 3. Tasto Torna alla Home: visibile SOLO su mobile */
    .mobile-back-btn-wrap {
        display: block !important;
        margin-bottom: 24px;
    }

    .btn-mobile-back {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(18, 57, 98, 0.08);
        color: var(--primary);
        border: 1px solid var(--border-color);
        padding: 9px 18px;
        border-radius: 50px;
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .btn-mobile-back:hover,
    .btn-mobile-back:active {
        background: var(--primary);
        color: #ffffff;
        transform: scale(0.97);
    }

    /* 4. Modalità Mobile: una sola sezione visibile per volta */
    body.mobile-mode section[id] {
        display: none !important;
    }

    body.mobile-mode section[id].mobile-active-section {
        display: block !important;
    }

    body.mobile-mode section.mobile-active-section:not(#hero) {
        padding-top: calc(96px + env(safe-area-inset-top, 0px)) !important;
        margin-top: 0 !important;
        min-height: calc(100dvh - 120px);
    }

    /* ===================================================
       EFFETTO PIOGGIA A CASCATA SU OGNI SEZIONE (MOBILE)
       =================================================== */
    @keyframes rainDropMobile {
        0% {
            opacity: 0;
            transform: translateY(-45px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Elementi che scendono dall'alto ad ogni apertura di sezione */
    body.mobile-mode section.mobile-active-section .section-header,
    body.mobile-mode section.mobile-active-section .spotlight-wrapper,
    body.mobile-mode section.mobile-active-section .about-card,
    body.mobile-mode section.mobile-active-section .territory-card,
    body.mobile-mode section.mobile-active-section .gallery-album-card,
    body.mobile-mode section.mobile-active-section .cta-box,
    body.mobile-mode section.mobile-active-section .sponsor-cta-box,
    body.mobile-mode section.mobile-active-section .contact-info,
    body.mobile-mode section.mobile-active-section .contact-form-wrap,
    body.mobile-mode section.mobile-active-section .past-events-section,
    body.mobile-mode section.mobile-active-section .mobile-back-btn-wrap {
        animation: rainDropMobile 0.65s cubic-bezier(0.25, 1, 0.5, 1) both;
    }

    /* Ritardi scaglionati */
    body.mobile-mode section.mobile-active-section .mobile-back-btn-wrap {
        animation-delay: 0.02s;
    }

    body.mobile-mode section.mobile-active-section .section-header {
        animation-delay: 0.08s;
    }

    body.mobile-mode section.mobile-active-section .spotlight-wrapper {
        animation-delay: 0.12s;
    }

    body.mobile-mode section.mobile-active-section .about-grid .about-card:nth-child(1),
    body.mobile-mode section.mobile-active-section .cards-grid .territory-card:nth-child(1) {
        animation-delay: 0.18s;
    }

    body.mobile-mode section.mobile-active-section .about-grid .about-card:nth-child(2),
    body.mobile-mode section.mobile-active-section .cards-grid .territory-card:nth-child(2) {
        animation-delay: 0.30s;
    }

    body.mobile-mode section.mobile-active-section .about-grid .about-card:nth-child(3),
    body.mobile-mode section.mobile-active-section .cards-grid .territory-card:nth-child(3) {
        animation-delay: 0.42s;
    }

    body.mobile-mode section.mobile-active-section .gallery-album-card {
        animation-delay: 0.18s;
    }

    body.mobile-mode section.mobile-active-section .cta-box {
        animation-delay: 0.12s;
    }

    body.mobile-mode section.mobile-active-section .sponsor-cta-box {
        animation-delay: 0.16s;
    }

    body.mobile-mode section.mobile-active-section .contact-info {
        animation-delay: 0.12s;
    }

    body.mobile-mode section.mobile-active-section .contact-form-wrap {
        animation-delay: 0.28s;
    }

    /* Quando si torna alla Home dal menu o dal tasto indietro */
    body.mobile-mode #hero.mobile-active-section .hero-title {
        animation: rainDropMobile 0.65s cubic-bezier(0.25, 1, 0.5, 1) 0.10s both;
    }
    body.mobile-mode #hero.mobile-active-section .hero-desc {
        animation: rainDropMobile 0.65s cubic-bezier(0.25, 1, 0.5, 1) 0.22s both;
    }
    body.mobile-mode #hero.mobile-active-section .hero-buttons {
        animation: rainDropMobile 0.65s cubic-bezier(0.25, 1, 0.5, 1) 0.34s both;
    }
    body.mobile-mode #hero.mobile-active-section .hero-stats {
        animation: rainDropMobile 0.65s cubic-bezier(0.25, 1, 0.5, 1) 0.46s both;
    }

    .spotlight-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cinema-poster-frame {
        max-width: 100%;
        width: 100%;
    }

    .about-grid, .cards-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-cta-box {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 24px;
        gap: 20px;
    }

    .sponsor-cta-icon {
        margin: 0 auto;
    }

    .sponsor-badges-list {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links-f {
        justify-content: center;
    }

    .history-modal-header {
        padding: 24px 20px 16px;
    }

    .history-modal-header h2 {
        font-size: 1.55rem;
    }

    .history-modal-body {
        padding: 20px;
    }

    .history-modal-footer {
        padding: 14px 20px;
    }

    .lightbox-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .lightbox-nav-btn.prev {
        left: 10px;
    }

    .lightbox-nav-btn.next {
        right: 10px;
    }
}

/* ===================================================
   SMARTPHONE STRETTI (SOTTO 576px)
   =================================================== */
@media (max-width: 576px) {
    .hero-section {
        padding: 105px 0 45px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.2;
        margin-bottom: 14px;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 22px;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 12px;
        min-height: 46px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding-top: 16px;
        text-align: center;
    }

    .stat-card {
        align-items: center;
    }

    .stat-num {
        font-size: 1.35rem;
        line-height: 1.1;
    }

    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0px;
        margin-top: 4px;
    }

    .spotlight-wrapper {
        padding: 24px 18px;
    }

    .spotlight-title {
        font-size: 1.8rem;
    }

    .spotlight-actions {
        flex-direction: column;
    }

    .spotlight-actions .btn {
        width: 100%;
    }

    .cta-box {
        padding: 38px 18px;
    }

    .cta-inner h2 {
        font-size: 1.95rem;
    }

    .cta-action-buttons .btn {
        width: 100%;
    }

    .sponsor-cta-box {
        padding: 26px 18px;
    }

    .sponsor-cta-content h3 {
        font-size: 1.25rem;
    }

    .sponsor-cta-btn-wrap .btn {
        width: 100%;
    }

    .modal-actions .btn {
        width: 100%;
    }

    .lightbox-nav-btn {
        display: none !important;
    }

    .lightbox-header {
        padding: 12px 16px;
    }

    .lightbox-counter {
        margin-right: 44px;
        padding: 4px 10px;
        font-size: 0.78rem;
    }
    /* --- CONTATORE VISITE NEL FOOTER --- */
.footer-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 14px;
}

.footer-counter i {
    color: var(--gold);
    font-size: 0.85rem;
}

.footer-counter strong {
    color: #ffffff;
    font-weight: 700;
}
}
