/* --- Variabili Colori --- */
:root {
    --granata-primary: #7A0C14; /* Colore principale Granata Salernitana */
    --granata-dark: #5c0a0f;
    --light-grey: #f8f9fa;
    --dark-grey: #212529;
    --accent-gold: #F4AF2A;
}

/* --- Stili Generali --- */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--light-grey);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--granata-primary);
    opacity: 0.85;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.bg-dark-transparent {
    background-color: rgba(0, 0, 0, 0.4);
}

/* --- Bottoni --- */
.btn-primary,
.btn-granata {
    background-color: var(--granata-primary);
    border: none;
    color: white;
    font-weight: 700;
    padding: 10px 25px;
    transition: all 0.3s ease;
}
.btn-primary:hover,
.btn-granata:hover {
    background-color: var(--granata-dark);
    transform: translateY(-2px);
}

.btn-outline-primary,
.btn-outline-granata {
    border: 2px solid var(--granata-primary);
    color: var(--granata-primary);
    background: transparent;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover,
.btn-outline-granata:hover {
    background: var(--granata-primary);
    color: white;
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(33, 37, 41, 0.9);
    padding: 0.5rem;
    border-bottom: 1px solid var(--granata-dark);
    transition: background-color 0.3s ease-in-out;
}
.navbar.scrolled {
    background-color: var(--dark-grey);
}
.navbar .logo {
    height: 60px;
    width: auto;
}
.navbar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    margin: 0 10px;
    transition: color 0.3s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: white;
}

/* --- Sezione Hero --- */
.hero-section {
    min-height: calc(100vh - 80px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    overflow: hidden;
    padding: 8rem 1rem 2rem;
}
.hero-section .payoff {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-section p {
    text-shadow: 1.5px 1.5px 6px rgba(0,0,0,0.8);
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
}
.hero-face {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(250px, 45vw, 650px);
    height: auto;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

/* --- Responsive Hero & Navbar --- */
@media (max-width: 600px) {
    .navbar .logo { height: 45px; }
    .navbar .nav-link { margin: 0 6px; font-size: 0.9rem; }

    .hero-section {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 7rem;
        justify-content: center;
    }
    .hero-section .payoff {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 0.5rem;
    }
    .hero-section p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        margin-bottom: 1rem;
    }
    .hero-face {
        width: clamp(140px, 50vw, 250px);
    }
}

/* --- Sezione About --- */
#about-teaser .about-logo img {
    max-width: 60%;
    height: auto;
}
@media (max-width: 767px) {
    #about-teaser .about-logo { justify-content: center; }
}

/* --- Footer --- */
footer {
    background-color: var(--dark-grey);
}
footer a {
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover { color: var(--granata-primary) !important; }
.text-primary { color: var(--granata-primary) !important; }
.text-primary-footer { color: var(--accent-gold); }
.footer-link-remember {
    color: #ffffff; /* bianco come il testo */
    text-decoration: none;
    transition: color 0.3s;
}
.footer-link-remember:hover {
    color: #cccccc; /* grigio chiaro all'hover */
}

/* Effetto zoom */
.hover-zoom { transition: transform 0.4s ease; }
.hover-zoom:hover { transform: scale(1.05); }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }

/* --- Carousel Loghi / Sponsor --- */
.brands-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}
.carousel-track {
    display: flex;
    gap: 6px;
    align-items: center;
    animation: scroll-left 30s linear infinite;
}
.carousel-track a { flex: 0 0 auto; }
.carousel-track img {
    height: clamp(60px, 8vw, 130px);
    object-fit: contain;
    background: white;
    padding: 12px;
    border-radius: 16px;
    border: 3px solid var(--granata-primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.carousel-track img:hover { transform: scale(1.1); }
.brands-carousel:hover .carousel-track { animation-play-state: paused; }

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .carousel-track { gap: 4px; }
    .carousel-track img { height: 100px; padding: 10px; border-radius: 14px; }
}

/* --- Decorazioni & Testi --- */
.section-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section-title-wrapper .decor-line-granata {
    width: 120px;
    height: 4px;
    margin: 4px 0;
    background: linear-gradient(90deg, var(--granata-primary), #ffffff, var(--granata-primary));
    border-radius: 2px;
}
.section-title {
    font-weight: 700;
    color: var(--granata-primary);
    text-transform: uppercase;
}
.section-title.text-white { color: #fff !important; }
@media (max-width: 768px) {
    .section-title-wrapper .decor-line-granata { width: 60px; height: 3px; margin: 3px 0; }
}

/* --- News Cards --- */
.news-card { display: flex; flex-direction: column; background-color: white; }
.news-card .card-body { display:flex; flex-direction:column; flex-grow:1; }
.object-fit-cover { object-fit: cover; height: 200px; }

/* --- Testi Motivazionali --- */
.motivazionale-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #000;
}

/* Testo universale */
.text-universal {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #000;

}

