﻿/* --------------------------------------------------------------
   # FONT
-------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;800&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
}

/* --------------------------------------------------------------
   # TIPOGRAFIA GENERALE
-------------------------------------------------------------- */
.testo_header {
    color: #577590;
    font-size: 1.5rem;
}

b {
    color: #577590;
}

/* --------------------------------------------------------------
   # NAVBAR
-------------------------------------------------------------- */

/* Sticky navbar */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Link navbar */
.nav-link {
    color: #fff;
    text-transform: uppercase;
}

/* Link attivo con underline */
.nav-link.active {
    position: relative;
    font-weight: 600;
}

.nav-link.active::after {
    content: "";
    width: 100%;
    height: 3px;
    background: #ffffff;
    position: absolute;
    left: 0;
    bottom: -5px;
    border-radius: 2px;
}

/* --------------------------------------------------------------
   # HERO (SLIDE / HEADER IMMAGINE)
-------------------------------------------------------------- */
.hero-slide {
    height: 70vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
/* Aggiungi al tuo index_style.css se necessario */
.hero-content a {
    position: relative;
    z-index: 10;
    text-decoration: none;
}

.hero-btn {
    z-index: 20 !important;
    position: relative;
}
/* Overlay (attualmente trasparente ma utile per futura sovrapposizione) */

.hero-slide::before {
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    animation: fadeUp 1s ease-in-out;
    max-width: 800px;
}

/* Testi responsivi */
.hero-title {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    margin-bottom: 1.2rem;
}

/* Bottone responsivo */
.hero-btn {
    font-size: clamp(0.9rem, 2vw, 0.9rem);
    padding: 0.3rem;
}

/* Mobile */
@media (max-width: 767px) {
    .hero-slide {
        height: 50vh;
        min-height: 400px;
        padding: 1.5rem;
    }
}

/* Animazione fade */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------
   # BOTTONE "TORNA SU"
-------------------------------------------------------------- */
#goTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
  
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --------------------------------------------------------------
   # BANNER PROMO / AVVISO
-------------------------------------------------------------- */
.banner {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f9aa4f, #FFA94D);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 2s ease-in-out;
}

.banner h1 {
    font-size: 24px;
font-weight:800;
    margin-bottom: 10px;
    animation: textSlide 3s infinite;
    color: #fff;
}

.banner p {
    font-size: 16px;
    margin-bottom: 10px;
     color: #fff;
font-weight:600;
}

.banner a {
    display: inline-block;
    padding: 10px 10px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.banner a:hover {
    background-color: #FF5733;
}

/* Animazioni banner */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes textSlide {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* --------------------------------------------------------------
   # TEAM SECTION
-------------------------------------------------------------- */
.team {
    background: #fff;
    padding: 30px 0;
}

.team .member {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.team .member .pic {
    border-radius: 4px;
    overflow: hidden;
}

.team .member img {
    transition: all ease-in-out 0.4s;
}

.team .member:hover img {
    transform: scale(1.1);
}

.team .member .member-info {
    position: absolute;
    bottom: -48px;
    left: 20px;
    right: 20px;
    background: linear-gradient(
        360deg,
        #5c768d 0%,
        rgba(92, 118, 141, 0.9) 35%,
        rgba(140, 167, 191, 0.8) 100%
    );
    padding: 15px 0;
    border-radius: 4px;
}

.team .member h4 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 16px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.team .member h4::after {
    content: "";
    position: absolute;
    display: block;
    width: 50px;
    height: 1px;
    background: #fff;
    bottom: 0;
    left: calc(50% - 25px);
}

.team .member span {
    font-style: italic;
    display: block;
    font-size: 13px;
    color: #fff;
}

.team .member .social {
    margin-top: 15px;
}

.team .member .social a {
    transition: color 0.3s;
    color: #fff;
}

.team .member .social a:hover {
    color: #9eccf4;
}

.team .member .social i {
    font-size: 16px;
    margin: 0 2px;
}

/* Responsive team spacing */
@media (max-width: 992px) {
    .team .member {
        margin-bottom: 100px;
    }
}