:root {
    --color-navy: #0B1D3A; /* Sfondo scuro e blu istituzionale */
    --color-navy-light: #162C52;
    --color-royal: #1D4ED8; /* Azzurro Royal */
    --color-logo-lightblue: #3EA6D6; /* Azzurro chiaro della parte alta del logo */
    --color-gold: #FADB5F; /* Color Oro */
    --color-gold-hover: #E5C34A;
    --color-text: #E2E8F0;
    --color-text-muted: #94A3B8;
    --color-white: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-logo-lightblue);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utils */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #C08500; /* Dorato scuro ma acceso */
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-shadow: 0px 1px 2px rgba(255, 255, 255, 0.5); /* Effetto luminoso */
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-gold);
    border-radius: 2px;
}

.section-header p {
    color: #735000; /* Dorato profondissimo per massima leggibilità testi */
    font-size: 1.15rem;
    font-weight: 500;
}

.section-padding { padding: 5rem 0; }
.bg-darker { background-color: #061226; }

.grid {
    display: grid;
    gap: 2rem;
}

/* Pulsanti */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-navy);
    box-shadow: 0 4px 15px rgba(250, 219, 95, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    box-shadow: 0 6px 20px rgba(250, 219, 95, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-navy);
    box-shadow: 0 4px 15px rgba(250, 219, 95, 0.4);
    transform: translateY(-2px);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(11, 29, 58, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 0.8rem 0;
    background: rgba(11, 29, 58, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo { height: 60px; width: auto; object-fit: contain; }

.desktop-nav { display: flex; gap: 2rem; }

.desktop-nav a {
    font-weight: 500;
    font-family: var(--font-heading);
    position: relative;
}

.desktop-nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

.desktop-nav a:hover { color: var(--color-gold); }
.desktop-nav a:hover::after { width: 100%; }

@media (max-width: 768px) {
    .desktop-nav, .cta-nav { display: none; }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1620215707768-450f61d5e656?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente Azzurro Royal -> Navy Blue scuro */
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.6) 0%, rgba(11, 29, 58, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #E2E8F0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons { display: flex; gap: 1rem; }

@media (max-width: 768px) {
    .hero-content h2 { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; }
}

/* Squadre (Cards Glassmorphism) */
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
    background: rgba(22, 44, 82, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.2);
    border-color: rgba(250, 219, 95, 0.4);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

/* Placeholder sfondi sezioni - utilizziamo tinte basate sui custom colors */
.bg-propaganda { background: linear-gradient(45deg, var(--color-royal), var(--color-navy-light)); }
.bg-giovanili { background: linear-gradient(45deg, var(--color-navy-light), var(--color-royal)); }
.bg-seniores { background: linear-gradient(45deg, var(--color-navy), var(--color-gold)); }

.card-content { padding: 2rem; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--color-gold); }
.card-content p { color: var(--color-text-muted); margin-bottom: 1rem; }
.card-content ul { list-style: none; font-size: 0.95rem; }
.card-content li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.card-content li::before { content: '🏉'; position: absolute; left: 0; top: 0; font-size: 0.8rem; }

/* Instagram Area */
.instagram-feed-container {
    background: rgba(22, 44, 82, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1rem;
    min-height: 350px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.btn-instagram:hover {
    background: linear-gradient(45deg, #f09433 10%, #e6683c 35%, #dc2743 60%, #cc2366 85%, #bc1888 100%);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.5);
    transform: translateY(-3px);
    color: white;
}

/* Placeholder Instagram Grid styles (Per Anteprima) */
.mock-instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

.mock-ig-post {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.mock-ig-post img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1.15) contrast(1.15) saturate(1.2); /* Aumenta lucentezza e nitidezza */
}

.mock-ig-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-weight: bold;
}

.mock-ig-post:hover .mock-ig-overlay {
    opacity: 1;
}

.mock-ig-post:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #040d1a;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem;
}

.footer-logo { height: 90px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer-info p { color: var(--color-text-muted); }
.footer-contact h4 { margin-bottom: 1rem; color: var(--color-white); }
.footer-contact p { color: var(--color-text-muted); margin-bottom: 0.5rem; }
.footer-contact a:hover { color: var(--color-gold); }

.footer-bottom {
    text-align: center; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-muted); font-size: 0.9rem;
}

/* Simple Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-navy-light);
    color: var(--color-white);
    padding: 1.5rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(250, 219, 95, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.95rem;
    color: var(--color-text);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
