/* --- RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body, html { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: #333; background-color: #fff; }

/* --- NAVBAR --- */
nav { 
    background: #ffffff; 
    padding: 15px 50px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-links { display: flex; gap: 30px; flex: 1; }
.nav-links.right { justify-content: flex-end; }
nav a { 
    color: #333; 
    text-decoration: none; 
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
}
nav a:hover { 
    color: #b8860b; 
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3);
}
.nav-logo { text-align: center; flex: 2; }
.nav-logo h1 { font-family: 'Cinzel', serif; margin: 0; font-size: 1.3rem; letter-spacing: 2px; }
.nav-logo span { display: block; font-size: 0.55rem; letter-spacing: 3px; color: #888; margin-top: 4px; }

/* --- HERO & PARCHMENT ANIMATION --- */
.hero { 
    width: 100%;
    aspect-ratio: 16 / 9; 
    background-image: url('https://www.artoftennis.org/immagini/Perugino_Tennis.png');
    background-size: 100% 100%; 
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: flex-start;
    padding: 50px 5% 0 0; 
}

.parchment-container {
    width: 0;
    height: auto;
    background: rgba(245, 235, 200, 0.92);
    overflow: hidden;
    white-space: nowrap;
    transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 12px solid #63391b;
    box-shadow: -10px 10px 25px rgba(0,0,0,0.4);
    border-radius: 2px;
}

.parchment-container.unroll {
    width: 420px;
    white-space: normal;
}

.parchment-content {
    padding: 40px;
    color: #2c1e14;
    min-width: 420px;
}

.parchment-content h2 { font-family: 'Cinzel', serif; font-size: 1.8rem; margin-bottom: 15px; border-bottom: 1px solid #8b4513; padding-bottom: 5px; }
.parchment-content p { font-size: 1rem; margin-bottom: 25px; font-weight: 400; font-style: italic; line-height: 1.5; }

/* --- BUTTONS --- */
.btn { background: #63391b; color: #fff; padding: 12px 25px; text-decoration: none; font-weight: bold; font-size: 0.8rem; display: inline-block; transition: 0.3s; }
.btn:hover { background: #cddc39; color: #000; }
.btn-small { background: #00695c; color: #fff; padding: 10px 20px; text-decoration: none; font-size: 0.75rem; font-weight: bold; border-radius: 4px; display: inline-block; margin-top: 15px; }

/* --- SECTIONS --- */
.section { padding: 80px 20px; width: 100%; max-width: 1100px; margin: auto; }
.container-inner { width: 100%; }
.section-title { text-align: center; font-family: 'Cinzel', serif; font-size: 2.2rem; margin-bottom: 40px; }
.grey-bg { background-color: #fcfcfc; max-width: 100%; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.about-content { text-align: center; font-size: 1.1rem; line-height: 1.8; color: #555; }

/* --- NUOVO LAYOUT WHO WE ARE --- */
.about-wrapper {
    display: flex;
    align-items: center; /* Centra verticalmente logo e testo */
    gap: 50px;           /* Spazio tra logo e testo */
    max-width: 900px;
    margin: 0 auto;
    text-align: left;    /* Testo allineato a sinistra per leggere meglio accanto al logo */
}

.about-logo {
    flex: 0 0 200px;     /* Larghezza fissa per il logo */
}

.about-logo img {
    width: 100%;
    height: auto;
    border-radius: 50%;  /* Se il logo è circolare o vuoi dargli un tocco elegante */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* --- AGGIORNAMENTO RESPONSIVE PER IL LOGO --- */
@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column; /* Su mobile il logo va sopra il testo */
        text-align: center;
        gap: 30px;
    }
    
    .about-logo {
        flex: 0 0 150px; /* Logo leggermente più piccolo su mobile */
        max-width: 150px;
    }
}

/* --- COURSES GRID --- */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.course-card { background: #fff; padding: 30px; border-radius: 8px; border: 1px solid #eee; text-align: center; transition: 0.3s; }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.course-card h3 { font-family: 'Cinzel', serif; margin-bottom: 10px; color: #00695c; }
.location { color: #b8860b; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 10px; }

/* Stile aggiuntivo per le card corsi */
.date-badge {
    background: #b8860b;
    color: white;
    display: inline-block;
    padding: 5px 15px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.course-card h3 {
    min-height: 50px; /* Allinea i titoli se hanno lunghezze diverse */
}

/* --- DARK FOOTER --- */
footer { background: #1a1a1a; color: #ffffff; padding: 20px 0; width: 100%; }
footer h3 { font-family: 'Cinzel', serif; margin-bottom: 15px; color: #cddc39; }
footer p { color: #ccc; font-size: 0.9rem; margin-bottom: 8px; }
.legal-info { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; font-size: 0.8rem; color: #777; text-align: center; }

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Nascosto inizialmente */
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95); /* Colore scuro come il footer */
    color: white;
    padding: 20px 0;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    bottom: 0; /* Compare dal basso */
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.cookie-content p {
    font-size: 0.85rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.cookie-content a {
    color: #cddc39; /* Colore giallo/verde dei tuoi bottoni */
    text-decoration: underline;
}

.cookie-btn {
    background: #cddc39;
    color: #000;
    border: none;
    padding: 8px 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.cookie-btn:hover {
    background: #fff;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    nav { flex-direction: column; padding: 15px; }
    .nav-links { margin-top: 15px; gap: 15px; }
    .hero { aspect-ratio: 1 / 1; background-size: cover; justify-content: center; padding: 40px 0; }
    .parchment-container.unroll { width: 90%; }
    .parchment-content { min-width: 100%; padding: 20px; }
    .section-title { font-size: 1.8rem; }
}