/* =====================
   VARIABILI
===================== */
:root {
  --arancione: #ff8100;
  --giallo: #ffa500;
  --rosso: #a21c26;
  --blu: #1a2f48;
  --nero: #000;
  --grigio: #3d424a;
}

html {
  scroll-behavior: smooth;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: fadeIn 0.5s ease-in;
      min-width: 320px;
}


/* =====================
   FONT
===================== */
p,
footer,
.btn-hero,
.club-link {
  font-family: "Electrolize", sans-serif;
}

h2,
h3,
.header .navbar a {
  font-family: "Bowlby One SC", sans-serif;
}

h3 {
  color: var(--blu);
}

/* =====================
   HEADER / NAVBAR
===================== */
/*.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  background: var(--blu);
  padding: 1rem 5rem;
  z-index: 1000;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.4);
} */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: space-between; /* ⭐ layout corretto */

  background: var(--blu);
  padding: 1rem 5rem;
  z-index: 1000;

  box-shadow: 0 .5rem 1rem rgba(0,0,0,.4);
}


/* LOGO A SINISTRA */
/*.header .logo {
  font-family: "Notable", sans-serif;
  font-size: 1.5rem;
  text-decoration: none;
  z-index: 2;
  display: flex;
  color: #fff;
  align-items: center;
  gap: 0.4rem;
}
*/
.header .logo {
  font-family: "Notable", sans-serif;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .4rem;
  color:#fff;
}

/*.logo img {
  display: block;
  height: 28px; 
  width: 2rem;
} */

.logo img {
  display:block;
  height:28px;
  width:2rem;
}

/*NAVBAR PERFETTAMENTE CENTRATA */
.header .navbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
} 



/* NAVBAR DESKTOP 

.header .navbar a {
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.header .navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--giallo);
  transition: width .3s ease;
}

.header .navbar a:hover {
  color: var(--giallo);
}

.header .navbar a:hover::after {
  width: 100%;
}

.active-logo {
  color: var(--rosso) !important;
}

.active {
  color: var(--giallo) !important;
} */

/* NAVBAR DESKTOP */
.header .navbar {

  display:flex;
  gap:1.5rem;

  margin:0 auto; /* ⭐ centratura reale senza absolute */

}

.header .navbar a {
  font-size:1.5rem;
  color:#fff;
  text-decoration:none;
  position:relative;
  padding-bottom:4px;
}

.header .navbar a::after {
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:3px;
  background:var(--giallo);
  transition:width .3s ease;
}

.header .navbar a:hover {
  color:var(--giallo);
}

.header .navbar a:hover::after {
  width:100%;
}

.active-logo {
  color:var(--rosso)!important;
}

.active {
  color:var(--giallo)!important;
}





/* =====================
   HAMBURGER
===================== 
#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all .3s ease;
} */

/* =====================
   HAMBURGER
===================== */

#menu-toggle {
  display:none;
}

.hamburger {
  display:none;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
}

.hamburger span {
  width:28px;
  height:3px;
  background:#fff;
  border-radius:3px;
  transition:all .3s ease;
}


/* =====================
   HERO / HOME
===================== */
#home {
  min-height: 100vh;
  padding-top: 20rem;
  background:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url("../img/giocatore-tennis-tavolo.png") no-repeat center 3% / cover;
  background-attachment: fixed;
}


#home h1 {
  font-family: "Notable", sans-serif;
  font-size: clamp(2rem, 8vw, 3.8rem);
  color: #fff;
  text-align: center;
}

#home p {
  color: #fff;
}

.sotto {
  display: block;
}

.rosso {
  font-size: 5rem;
  color: var(--rosso);
}

.hero-subtitle {
  font-family: "Electrolize", sans-serif;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 1.5rem auto 0;
  text-align: center;
  color: #fff;
}

.btn-hero {
  background: var(--arancione);
  color: #fff;
  padding: .9rem 2.4rem;
  border-radius: 50px;
  text-transform: uppercase;
  transition: .3s ease;
}

.btn-hero:hover {
  background: var(--giallo);
  color: #000;
  transform: translateY(-3px);
}

/* =====================
   PRIMO ALLENAMENTO
===================== */

#primo-allenamento h2,
#primo-allenamento h3,
#primo-allenamento h4,
#primo-allenamento p {
  color: var(--blu);
}

#primo-allenamento h3 {
  font-size: 1.2rem;
  font-family: "Electrolize", sans-serif;
}

#primo-allenamento h4 {
  font-family: "Bowlby One SC", sans-serif;
}

.preparazione-list .icon {
  font-size: 1.8rem;
}

/* =====================
   CLUB
===================== */
#club {
  background:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url("../img/Bologna.png") no-repeat center / cover;
  background-attachment: fixed;
}

.heading {
  /* font-size: 9rem; */

  font-size: clamp(3rem, 10vw, 9rem);
  color: transparent;
  -webkit-text-stroke: .05rem #fff;
  text-align: center;
  position: relative;
}

.heading span {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #fff;
}

.club-card {
  max-width: 420px;
  padding: 1.8rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.75), rgba(243,243,243,.75));
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  transition: .3s ease;
}

.club-card:hover {
  transform: translateY(-6px);
}

.club-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;   /* 👈 IMPORTANTISSIMO */
}

.club-logo {
  width: 56px;
  height: 56px;
  background: #fff;
  padding: .4rem;
  border-radius: 12px;
  object-fit: contain; /* mantiene proporzioni */
}

.club-name {
  font-size: clamp(1.2rem, 4vw, 2rem);
}

.club-description {
  color: var(--grigio);
  line-height: 1.6;
}

.club-link {
  color: var(--arancione);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.club-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--giallo);
  transition: width .3s;
}

.club-link:hover {
  color: var(--nero) !important;
}

.club-link:hover::after {
  width: 100%;
}



/* SEZIONE */
.club-carousel-section {
    background: #fff;
    padding-top: 0px;
}

/* CONTENITORE */
.club-slider {
    width: 100%;
    overflow: hidden;
}

/* TRACCIA */
.club-track {
    display: flex;
    width: max-content;
    animation: scroll-left 28s linear infinite;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* CARD LOGO */
.club-slide {
    min-width: 10rem;
    margin-right: 2rem;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
}

/* LOGO */
.club-slide img {
   max-width: 110px;
   max-height: 90px;
  object-fit: contain;

}

/* ANIMAZIONE */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.club-slide span {
  font-family: "Electrolize", sans-serif;
}




/* =====================
   FAQ
===================== */
#faq h2 {
  color: var(--blu);
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #e5e7eb;

}

.accordion-header {
  font-family: "Electrolize", sans-serif;
}

/* Accordion aperto */
.accordion-button:not(.collapsed) {
  border-color: var(--arancione);  
  background-color: #fff;    
  box-shadow: none;  
  color: var(--arancione);         
}

/* Stato focus  */
.accordion-button:focus {
  border-color: var(--arancione);
  box-shadow: 0 0 0 0.15rem var(--arancione);
  outline: none;
}

/* Freccia */
.accordion-button:not(.collapsed)::after {
  filter: hue-rotate(40deg) saturate(3);
}

.accordion-body {
  font-family: "Electrolize", sans-serif;
}


/* =====================
   FOOTER
===================== */
#footer {
  background: var(--blu);
  position: relative;
  z-index: 10;
  color: #fff;
}

.footer-subtitle {
  color: var(--rosso);
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .9rem;
}

/* =====================
   IMAGE / ANIMATION
===================== */
.image-full {
  background: url("../img/primo-allenamento.png") center / cover;
  min-height: 550px;
  mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: .8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: none;
}

/* =====================
   PAGINA ALLENAMENTO
===================== */

.allenamento-hero {
  min-height: 60vh;
  padding-top: 12rem;
  background:
    linear-gradient(135deg, rgba(0,0,0,.65), rgba(0,0,0,.7)),
    url("../img/hero-allenamento.png") no-repeat center 60% / cover;
}

.allenamento-hero h1 {
  font-family: "Notable", sans-serif;
  font-size: clamp(2rem, 8vw, 3.8rem);
  color: var(--rosso);
}

.allenamento-section {
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  color: var(--blu);
}

.allenamento-section h3 {
  color: var(--blu);
}

.allenamento-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.allenamento-timeline li {
  padding: .7rem 0;
  border-bottom: 1px dashed rgba(0,0,0,.15);
  font-family: "Electrolize", sans-serif;
  color: var(--grigio);
}

.allenamento-timeline li:last-child {
  border-bottom: none;
}

.allenamento-image {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.allenamento-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.allenamento-cta {
    background:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
    url("../img/giocatore-tennis-tavolo.png") no-repeat center 40% / cover;
  background-repeat: no-repeat;
  text-align: center;
  padding: 4rem 1.5rem;
  color: #fff;
}

.allenamento-cta h2 {
  font-family: "Bowlby One SC", sans-serif;
  margin-bottom: 1rem;
}

/* =====================
   PAGINA CLUB
===================== */

.club-hero {
  min-height: 60vh;
  padding-top: 12rem;
  background:
    linear-gradient(135deg, rgba(0,0,0,.65), rgba(0,0,0,.4)),
    url("../img/Bologna.png") no-repeat center 20% / cover;
}

.club-hero h1 {
  font-family: "Notable", sans-serif;
  font-size: clamp(2rem, 8vw, 3.8rem);
  color: var(--rosso);
}

.club-intro {
  max-width: 820px;
  margin: 0 auto;
  font-family: "Electrolize", sans-serif;
  color: var(--grigio);
  font-size: 1.05rem;
}

/* SEZIONE LISTA */
.club-section {
  padding: 4rem 0;
}

.club-row {
  align-items: center;
}

/* TESTO CLUB */

.club-info {
text-align: center;
}


.club-info h2 {
  font-family: "Bowlby One SC", sans-serif;
  color: var(--blu);
  margin-bottom: 1rem;
}

.club-info ul {
  padding-left: 0;
  margin: 1rem 0;
  font-family: "Electrolize", sans-serif;
}


.club-info ul li {
  list-style: none;
  margin-bottom: .4rem;
  color: var(--blu);
}

/* MAPPA */
.club-map iframe {
  /*width: 100%;
  height: 450px; */
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

/* =====================
   ICONE SOCIAL CLUB
===================== */
.club-social {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Sito generico */
.social-icon.site {
    background-color: #1a2f48; /* blu scuro */
}
.social-icon.site:hover {
    background-color: var(--giallo);
    color: var(--nero);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Instagram */
.social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-icon.instagram:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Facebook */
.social-icon.facebook {
    background-color: #1877F2;
}
.social-icon.facebook:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* =====================
   PAGINA FAQ
===================== */


.faq-hero {
    min-height: 60vh;
  padding-top: 12rem;
  background:
    linear-gradient(135deg, rgba(0,0,0,.65), rgba(0,0,0,.4)),
    url("../img/hero-faq.jpg") no-repeat center 30% / cover;
}

.faq-hero h1 {
  font-family: "Notable", sans-serif;
  font-size: clamp(2rem, 8vw, 3.8rem);
  color: var(--rosso);
}

#faq a {
  color: var(--arancione);
  text-decoration: none;
}

/* =====================
   RESPONSIVE + HAMBURGER
===================== */
@media (max-width: 768px) {

  /* HEADER */
  .header {
    padding: 1rem 1.5rem;
  }

  .header .logo {
    margin-right: auto;
  }

  /* HAMBURGER */
  .hamburger {
    display: flex;
    margin-left: auto;
    z-index: 2;
  }

  /* NAVBAR MOBILE */

  .header .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: translateY(-200%);
    background: var(--blu);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    transition: transform 0.4s ease;
  }

  .header .navbar a {
    font-size: 1.3rem;
    margin: 1rem 0;
  }

  #menu-toggle:checked ~ .navbar {
    transform: translateY(0);
  }

  /* HAMBURGER → X */
  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* HERO */
  #home {
    padding-top: 14rem;
    background-attachment: scroll;
  }

  #home h1 {
    font-size: 1.8rem;
  }

  .rosso {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    padding: 0 1rem;
  }

  /* CLUB */
  .heading {
    font-size: 3.5rem;
  }

  .heading span {
    font-size: 1.6rem;
  }

  .club-card {
    max-width: 100%;
  }

  /* IMAGE */
  .image-full {
    min-height: 320px;
    mask-image: none;
  }

  /* FOOTER */
  #footer {
    text-align: center;
  }

  /* =====================
    RESPONSIVE CLUB
  ===================== */

   .club-hero {
    padding-top: 9rem;
  }

  .club-hero h1 {
    font-size: 2.2rem;
  }

  .club-info {
    text-align: center;
  }

  .club-info ul {
    text-align: left;
    display: inline-block;
  }

  .club-map iframe {
    height: 260px;
  }
}