/* =============================================
   RESPONSIVE.CSS
   Overrides responsive per mobile e tablet
   ============================================= */

/* --- Hero mobile e loghi mobile: nascosti su desktop --- */
.mobile-hero-wrapper {
   display: none;
}
.loghi-mobile {
   display: none;
}

/* --- Immagini responsive generali --- */
img {
   max-width: 100%;
   height: auto;
}

/* --- Fixed button mobile: nascosto su desktop --- */
#fixed-button-mobile {
   display: none;
}

/* --- Scroll to top: nascosto su mobile --- */
@media (max-width: 767px) {
   #scroll-top-button {
      display: none !important;
   }
}

/* --- Fixed button mobile: stile su mobile --- */
@media (max-width: 767px) {
   #fixed-button-mobile {
      display: block;
      position: fixed;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
      max-width: 400px;
      z-index: 1020;
      text-align: center;
      padding: 14px 20px;
      box-sizing: border-box;
      background: #af0924;
      color: #fff !important;
      font-size: 16px;
      font-weight: 600;
      font-family: "Open Sans", arial, sans-serif;
      border-radius: 30px;
      text-decoration: none !important;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
   }
   #fixed-button-mobile span {
      color: #fff;
   }
}

/* =============================================
   MOBILE (max-width: 767px)
   ============================================= */
@media (max-width: 767px) {
   /* === NAVBAR: nascosta su mobile === */
   .navbar.navbar-inverse.navbar-fixed-top {
      display: none !important;
   }

   /* === Mostra le sezioni nascoste con hidden-xs === */
   .hidden-xs {
      display: block !important;
   }

   /* === BANNER / HERO === */
   #banner {
      display: none !important;
   }

   /* === HERO MOBILE: header + immagine fullscreen === */
   .mobile-hero-wrapper {
      display: flex !important;
      flex-direction: column;
      width: 100%;
      height: 100vh; /* fallback */
      height: 100svh; /* Safari 15.4+, Chrome 108+ */
      height: var(--hero-h, 100svh);
      overflow: hidden;
   }

   /* Blocco header: logo + titoli su sfondo scuro */
   .mobile-hero-top {
      flex: 0 0 auto;
      background: #1a1a1a;
      text-align: center;
      padding: 20px 20px 18px;
   }
   .mobile-hero-top img {
      width: 85%;
      max-width: none;
      height: auto;
      margin: 0 auto 6px;
      display: block;
   }
   .mobile-hero-top p {
      color: #9ba5af;
      font-size: 17px;
      line-height: 1.3;
      margin: 0 0 4px;
      font-weight: 400;
      font-style: italic;
      padding: 0;
   }
   .mobile-hero-top h3 {
      color: #fff;
      font-size: 14px;
      line-height: 1.4;
      margin: 0;
      font-weight: 300;
      font-family: "Open Sans", arial, sans-serif;
   }

   /* Immagine: riempie lo spazio restante */
   .mobile-hero-image {
      flex: 1 1 auto;
      position: relative;
      min-height: 0;
      overflow: hidden;
   }
   .mobile-hero-img {
      display: block;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      object-fit: cover;
      object-position: center top;
   }

   /* Pulsanti sovrapposti in basso sull'immagine */
   .mobile-hero-buttons {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      z-index: 10;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
      padding: 35px 20px 30px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
   }
   .mobile-hero-cta {
      display: block;
      width: 90%;
      max-width: 400px;
      box-sizing: border-box;
      text-align: center;
      font-size: 18px;
      font-weight: 600;
      padding: 15px 20px;
      background: #af0924;
      color: #fff !important;
      border: none;
      border-radius: 30px;
      text-decoration: none !important;
      text-transform: none;
   }
   .mobile-hero-login {
      display: block;
      width: 90%;
      max-width: 400px;
      box-sizing: border-box;
      text-align: center;
      font-size: 15px;
      font-weight: 500;
      padding: 12px 20px;
      background: rgba(255, 255, 255, 0.12);
      color: rgba(255, 255, 255, 0.75) !important;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 30px;
      text-decoration: none !important;
      text-transform: none;
   }

   /* === OVERLAY E FORM: nascosti su mobile === */
   #overlay-register {
      display: none !important;
   }

   /* Landing shield nascosto */
   .women-favored.landing-shield {
      display: none !important;
   }

   /* === FEATURES: colonna singola === */
   #service-description .row .col-sm-4 {
      width: 100%;
      float: none;
      margin-bottom: 20px;
   }
   .features img {
      max-width: 120px;
   }
   .features h2,
   .features h3 {
      font-size: 16px;
   }

   /* === SEO TEXT === */
   .section-title h1 {
      font-size: 22px;
      line-height: 1.3;
      padding: 0 10px;
   }

   /* === BLOG ARTICLES: colonna singola === */
   .news-teaser {
      width: 100% !important;
      float: none !important;
      margin-bottom: 25px;
   }
   .news-teaser img {
      width: 100%;
      height: auto;
   }

   /* === LOGHI: versione mobile === */
   .loghi.hidden-xs {
      display: none !important;
   }
   .loghi-mobile {
      display: block !important;
      background-color: #2b2b2b;
      padding: 10px 15px 10px;
      text-align: center;
      margin-top: -20px;
      border-bottom: 3px solid #af0924;
   }
   .loghi-mobile .about-us {
      font-family: "Satisfy", cursive;
      font-size: 19px;
      padding: 4px 8px;
      background-color: rgba(0, 0, 0, 0.7);
      color: #fff;
      display: inline-block;
      margin-bottom: 0;
      position: relative;
      z-index: 10;
      -webkit-transform: rotate(-3deg);
      transform: rotate(-3deg);
   }
   .loghi-mobile img {
      display: block;
      width: 100%;
      height: auto;
      margin-bottom: 8px;
   }

   /* === Spaziature sezioni su mobile === */
   #service-description {
      margin-bottom: 0 !important;
   }
   #seo-content {
      padding: 20px 0 !important;
      margin-top: 0 !important;
   }
   #news {
      padding: 25px 0 !important;
      margin-top: 0 !important;
   }
   .section-title {
      margin-bottom: 15px;
   }
}

.section-title {
   position: relative;
}
.section-title::before {
   position: absolute !important;
   top: 50% !important;
   left: 0;
   right: 0;
   transform: translateY(-50%);
}
.section-title h2 {
   position: relative;
   color: #fff;
   background: #2b2b2b;
   border: 2px solid #2a2a2a;
   font-size: 22px;
   padding: 12px 28px;
   font-weight: 300;
   width: 80%;
   max-width: 600px;
   line-height: 1.3;
   border-radius: 30px;
   text-align: center;
   display: block;
   margin: 0 auto;
}

/* ===== Layout premium homepage ===== */

.section-alt {
   background: #151515;
}

.content-narrow {
   max-width: 860px;
   margin-left: auto;
   margin-right: auto;
}

.text-left-block {
   text-align: left;
}

.text-left-block p {
   margin-bottom: 22px;
   line-height: 1.8;
}

.cards-grid {
   margin-top: 30px;
}

.info-card {
   background: rgba(255, 255, 255, 0.02);
   border: 1px solid rgba(255, 255, 255, 0.08);
   border-radius: 18px;
   padding: 28px 24px;
   height: 100%;
   transition: all 0.25s ease;
}

.info-card:hover {
   border-color: rgba(180, 30, 30, 0.35);
   transform: translateY(-2px);
}

.info-card h3 {
   margin-top: 0;
   margin-bottom: 14px;
   color: #b51f1f;
   font-size: 32px;
   font-weight: 300;
   line-height: 1.25;
}

.info-card p {
   margin-bottom: 0;
   line-height: 1.8;
}

.step-card {
   position: relative;
   padding-top: 62px;
}

.step-number {
   position: absolute;
   top: 22px;
   left: 24px;
   font-size: 28px;
   font-weight: 300;
   color: rgba(181, 31, 31, 0.9);
   line-height: 1;
}

.category-card h3 {
   font-size: 22px;
   margin-bottom: 12px;
}

.category-card h3 a {
   color: #b51f1f;
   text-decoration: none;
}

.category-card h3 a:hover {
   text-decoration: underline;
}

.category-link {
   display: inline-block;
   margin-top: 14px;
   color: #d7d7d7;
   font-size: 15px;
   text-decoration: none;
   border-bottom: 1px solid rgba(255, 255, 255, 0.18);
   padding-bottom: 2px;
}

.category-link:hover {
   color: #fff;
   border-bottom-color: rgba(181, 31, 31, 0.5);
}

.city-links {
   margin-top: 24px;
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
   justify-content: center;
}

.city-links a {
   display: inline-flex;
   align-items: center;
   gap: 7px;
   padding: 12px 18px;
   border-radius: 999px;
   background: rgba(255, 255, 255, 0.03);
   border: 1px solid rgba(255, 255, 255, 0.1);
   color: #e2e2e2;
   text-decoration: none;
   transition: all 0.2s ease;
}

.city-links a:hover {
   color: #fff;
   border-color: rgba(181, 31, 31, 0.4);
   transform: translateY(-1px);
}

.city-links a i {
   color: #b51f1f;
   font-size: 13px;
   flex-shrink: 0;
   transition: color 0.2s ease;
}

.city-links a:hover i {
   color: #e03030;
}

@media (max-width: 767px) {
   .info-card {
      padding: 22px 18px;
      margin-bottom: 18px;
   }

   .info-card h3 {
      font-size: 28px;
   }

   .step-card {
      padding-top: 56px;
   }

   .step-number {
      top: 18px;
      left: 18px;
      font-size: 24px;
   }

   .content-narrow {
      max-width: 100%;
   }

   .text-left-block {
      text-align: left;
   }
}

/* =============================================
   SMALL TABLETS (max-width: 991px)
   ============================================= */
@media (max-width: 991px) {
   /* Banner colonne adattate */
   #banner .clearfix.col-sm-8 {
      width: 100%;
   }
   #banner .clearfix.col-sm-4 {
      display: none;
   }

   /* Features */
   #service-description .col-sm-4 {
      margin-bottom: 15px;
   }

   /* Blog teaser */
   .news-teaser {
      margin-bottom: 20px;
   }

   /* Overlay register */
   #overlay-register-form {
      max-width: 95%;
   }
}

/* =============================================
   #SERVICE-DESCRIPTION — statistiche + foto circolari
   ============================================= */

.stat-number-lg {
   display: block;
   font-size: 36px;
   font-weight: 700;
   color: #af0924;
   line-height: 1;
   margin: 14px 0 8px;
   letter-spacing: -1px;
}

.section-subtitle {
   font-size: 15px;
   color: #9ba5af;
   margin-top: 6px;
   margin-bottom: 10px;
}

.features {
   text-align: center;
}

.features img.img-circle {
   display: block;
   margin: 0 auto 4px;
}

.features h3 {
   font-size: 15px;
   font-weight: 600;
   color: #e2e2e2;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   margin-bottom: 10px;
}

.features p {
   font-size: 14px;
   color: #9ba5af;
   line-height: 1.6;
}

@media (max-width: 767px) {
   .stat-number-lg {
      font-size: 34px;
   }
}

/* =============================================
   #TESTIMONIALS — recensioni brevi
   ============================================= */

.testimonial-card {
   position: relative;
   padding-top: 36px;
}

.testimonial-card::before {
   content: "\201C";
   position: absolute;
   top: 14px;
   left: 24px;
   font-size: 52px;
   line-height: 1;
   color: rgba(181, 31, 31, 0.35);
   font-family: Georgia, serif;
}

.testimonial-text {
   font-style: italic;
   color: #c8c8c8;
   line-height: 1.75;
   margin-bottom: 16px !important;
   font-size: 15px;
}

.testimonial-author {
   font-size: 13px;
   font-weight: 600;
   color: #b51f1f;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   margin-bottom: 0 !important;
}

@media (max-width: 767px) {
   .testimonial-card {
      margin-bottom: 18px;
   }
}

/* =============================================
   #FAQ — domande e risposte
   ============================================= */

.faq-item {
   border-bottom: 1px solid rgba(255, 255, 255, 0.07);
   padding: 24px 0;
}

.faq-item:first-child {
   padding-top: 8px;
}

.faq-item:last-child {
   border-bottom: none;
   padding-bottom: 0;
}

.faq-question {
   font-size: 17px;
   font-weight: 600;
   color: #e2e2e2;
   margin: 0 0 10px 0;
   padding-left: 22px;
   position: relative;
   line-height: 1.4;
}

.faq-question::before {
   content: "Q";
   position: absolute;
   left: 0;
   top: 0;
   font-size: 13px;
   font-weight: 700;
   color: #b51f1f;
   line-height: 1.8;
}

.faq-answer {
   color: #9ba5af;
   line-height: 1.8;
   margin: 0 !important;
   padding-left: 22px;
   font-size: 15px;
}

@media (max-width: 767px) {
   .faq-question {
      font-size: 15px;
   }

   .faq-answer {
      font-size: 14px;
   }
}

/* =============================================
   SPAZIATURA — #cities → #news
   ============================================= */

#cities {
   padding-bottom: 60px;
}

@media (max-width: 767px) {
   #cities {
      padding-bottom: 40px;
   }
}
