/* Base Variables & Reset */
:root {
    --primary: #FF7B00; /* Orange from the logo */
    --primary-hover: #E06C00;
    --dark-bg: #0A0A0A;
    --darker-bg: #050505;
    --card-bg: #1A1A1A;
    --text-main: #F4F4F5;
    --text-muted: #A1A1AA;
    --border-color: #27272A;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, #FF7B00, #FFB800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.max-w-800 { max-width: 800px; }
.opacity-80 { opacity: 0.8; }
.bg-darker { background-color: var(--darker-bg); }
.w-100 { width: 100%; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 0 20px rgba(255, 123, 0, 0.4);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0) 100%);
    backdrop-filter: blur(5px);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Animations classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 123, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo img {
    height: 40px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ============================
   HERO (usato su tutte le pagine)
   ============================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1a0d00 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255,123,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 2rem 1rem 4rem;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ============================
   VIDEO CONTAINER
   ============================ */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin: 2rem auto;
    max-width: 900px;
}
.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ============================
   REVIEW CARD
   ============================ */
.review-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}
.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-muted);
}
.review-author {
    font-weight: 600;
    color: var(--primary);
}

/* ============================
   PROGRAM LIST (moduli)
   ============================ */
.program-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}
.program-list li {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    transition: background 0.2s;
}
.program-list li:hover {
    background: rgba(255,123,0,0.08);
}

/* ============================
   TAG / BADGE
   ============================ */
.tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255,123,0,0.15);
    color: var(--primary);
    border: 1px solid rgba(255,123,0,0.3);
    margin: 0.25rem;
}

/* ============================
   INFO ROW
   ============================ */
.info-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
    }
    .menu-toggle {
        display: flex;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .nav-actions {
        display: none;
    }
    .section-title { font-size: 2rem; }
    .hero-title { font-size: clamp(2rem, 8vw, 3.5rem); }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 2rem;
}
.cookie-container p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.cookie-container p a {
    color: var(--primary);
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
.cookie-banner .btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 30px;
}
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .cookie-buttons {
        justify-content: flex-end;
    }
}

/* ============================
   UTILITY — classi helper
   ============================ */
.text-muted { color: var(--text-muted); }

/* Kicker / soprattitolo (es. "Il nostro manifesto") */
.hero-kicker {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

/* ============================
   NAV — link attivo via JS
   ============================ */
.nav-links .nav-active {
    color: var(--primary) !important;
}

/* ============================
   FOOTER — indirizzo & copyright
   ============================ */
.footer-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1rem;
}
.footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    text-align: center;
}
.footer-copy a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ============================
   FORM — select element
   ============================ */
.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================
   HOME — Branch cards
   ============================ */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 4rem auto 0;
    max-width: 1100px;
    justify-content: center;
}
@media (min-width: 992px) {
    .branches-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .branches-grid { grid-template-columns: 1fr; }
}
.branch-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 123, 0, 0.2);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}
.branch-card:hover {
    background: rgba(255, 123, 0, 0.1);
    transform: translateY(-10px);
    border-color: var(--primary);
}
.branch-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}
.branch-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

/* ============================
   FOOTER — Social icons
   ============================ */
.footer-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ============================
   FOOTER — Siti collegati
   ============================ */
.footer-sites {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.footer-sites a {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 123, 0, 0.3);
    padding-bottom: 1px;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-sites a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ============================
   FAQ / ACCORDION
   ============================ */
.faq-section { max-width: 860px; margin: 0 auto; }
.faq-category { margin-bottom: 3rem; }
.faq-category-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,123,0,0.2);
}
details.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
details.faq-item[open] { border-color: rgba(255,123,0,0.35); }
details.faq-item summary {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--text-main);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: '+';
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-answer {
    padding: 0 1.5rem 1.4rem;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.75;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
details.faq-item .faq-answer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
details.faq-item .faq-answer a:hover { text-decoration: underline; }

