/* --------------------------------------------------
   IMPORT DESIGN SYSTEM
-------------------------------------------------- */
@import url("variables.css");
@import url("components.css");

/* --------------------------------------------------
   RESET & BASE
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  color: var(--color-antracite);
  background: var(--color-bianco);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.site-header {
  background: var(--color-bianco);
  border-bottom: 1px solid #e5e5e5;
  padding: 2px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.logo {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.lang-switcher {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.lang-switcher img {
  width: 22px;
  opacity: 0.75;
  transition: 0.2s;
}

.lang-switcher img:hover {
  opacity: 1;
  transform: scale(1.08);
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  padding: 4px 14px;
  line-height: 1.1;
  text-decoration: none;
  color: var(--color-blu-profondo);
  font-weight: 500;
  border-radius: var(--radius-small);
  transition: var(--transition-fast);
}

.main-nav a:hover {
  background: var(--color-azzurro-mare);
  color: var(--color-bianco);
}

/* --------------------------------------------------
   HERO — FADE CAROUSEL
-------------------------------------------------- */
.hero-fade {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-fade-wrapper,
.fade-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.fade-img {
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.fade-img.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--color-bianco);
  max-width: 700px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.55);
}

.hero-subtitle {
  font-size: 1.6rem;
  margin-bottom: 20px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --------------------------------------------------
   SEZIONI GENERALI
-------------------------------------------------- */
.section {
  padding: 70px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-blu-profondo);
  text-align: center;
  margin-bottom: 10px;
  text-shadow: var(--shadow-soft);
}

.section-desc {
  font-size: 1.1rem;
  text-align: center;
  color: var(--color-antracite);
  margin-bottom: 32px;
  text-shadow: var(--shadow-text);
}

/* --------------------------------------------------
   SEZIONE CASE
-------------------------------------------------- */
.section-light {
  background: var(--color-turchese);
  padding: 80px 20px;
  text-align: center;
}

.section-light h2,
.section-light p {
  color: var(--color-bianco);
  text-shadow: var(--shadow-soft-white);
}

.case-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.case-card {
  width: 100%;
  max-width: 300px;
  background: var(--color-bianco);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: var(--transition-medium);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.case-img-wrapper {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.case-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-info {
  padding: 20px;
  text-align: center;
}

.case-info h3 {
  font-size: 1.2rem;
  color: var(--color-blu-profondo);
  margin-bottom: 8px;
}

.case-info p {
  font-size: 0.95rem;
  color: var(--color-antracite);
  opacity: 0.85;
  margin-bottom: 16px;
}

/* --------------------------------------------------
   INTRO + CAROSELLO
-------------------------------------------------- */
.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.intro-text {
  font-size: 1.05rem;
  line-height: 1.6;
}

.intro-text p + p {
  margin-top: 0.0rem;
}

.carousel {
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: var(--radius-large);
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.carousel-thumbs img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: var(--radius-small);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.carousel-thumbs img.active {
  opacity: 1;
  transform: scale(1.05);
  border: 2px solid #fff;
}

/* --------------------------------------------------
   SERVIZI — BOUTIQUE MINIMAL
-------------------------------------------------- */
.services-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.service-item {
  background: var(--color-bianco);
  padding: 28px;
  border-radius: var(--radius-large);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition-fast);
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.service-item img {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  object-fit: contain;
}

/* --------------------------------------------------
   SERVIZI PREMIUM — BRISA
-------------------------------------------------- */
.services-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.service-premium-card {
  background: var(--color-bianco);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  transition: var(--transition-medium);
  color: var(--color-antracite);
}

.service-premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.service-illustration {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.service-illustration img {
  width: 100px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.service-premium-card:hover .service-illustration img {
  transform: scale(1.08);
  filter: drop-shadow(var(--glow-blue-soft));
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--color-blu-profondo);
  font-weight: 700;
}

.service-desc {
  font-size: 1rem;
  color: var(--color-antracite);
  opacity: 0.9;
  line-height: 1.55;
  margin-bottom: 1rem;
}


.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  margin-bottom: 0.4rem;
  padding-left: 1.2rem;
  position: relative;
  color: var(--color-blu-profondo);
  font-weight: 500;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-azzurro-mare);
  font-size: 1.2rem;
}
/* Colori universali per tutte le lingue */
.section-features .service-title,
.section-features .service-desc,
.section-features .service-list li {
  color: var(--color-blu-profondo) !important;
}


/* --------------------------------------------------
   CONTATTI — PREMIUM
-------------------------------------------------- */
.contact-section {
  padding: 60px 24px;
  background: var(--color-bianco);
  border-radius: var(--radius-large);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  max-width: 1200px;
  margin: 0 auto;
}

.contact-claim {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-blu-profondo);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.contact-claim-sub {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-azzurro-mare);
  text-align: center;
  margin-top: 10px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  flex: 1;
  min-width: 220px;
  transition: 0.2s ease;
  text-align: center;
}

.contact-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.contact-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contact-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
}

.contact-text strong {
  color: var(--color-blu-profondo);
}

.contact-text a {
  color: var(--color-blu-profondo);
  text-decoration: none;
  font-weight: 500;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, #003459, #001f33);
  color: var(--color-bianco);
  padding: 14px 0 10px;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  position: relative;
}

.footer-logo {
  height: 80px;
}

.footer-claim {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-bianco);
  text-shadow: 0px 3px 10px rgba(0,0,0,0.25);
  white-space: nowrap;
}

.footer-bottom {
  text-align: center;
  margin-top: 10px;
}

.footer-bottom p {
  font-size: 0.75rem;
  opacity: 0.6;
}


/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 820px) {
  .intro-layout {
    grid-template-columns: 1fr;
  }

  .carousel {
    height: 260px;
  }

  .carousel-thumbs img {
    width: 55px;
    height: 45px;
  }

  .services-premium-grid {
    grid-template-columns: 1fr;
  }

  .service-premium-card {
    padding: 1.8rem;
  }

  .service-illustration {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.2rem; }

  .header-container {
    flex-direction: column !important;
    align-items: center !important;
  }

  .header-left {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
  }

  .logo {
    width: 110px;
  }

  .lang-switcher {
    margin-top: 0.3rem;
  }

  .main-nav {
    margin-top: 0.6rem;
    gap: 14px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .contact-row {
    flex-direction: column;
  }

  .footer-container {
    flex-direction: column;
    justify-content: center;
  }

  .footer-claim {
    position: static;
    transform: none;
    margin-top: 10px;
    white-space: normal;
  }
}
/* --------------------------------------------------
   BOOKHOUSE BOX — VILLA BRISA
-------------------------------------------------- */
.bookhouse-box {
  background: #f4f9fb;
  border-left: 4px solid var(--color-azzurro-mare);
  padding: 18px 22px;
  margin: 28px 0 40px;
  border-radius: var(--radius-large);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.bookhouse-box p {
  font-size: 1rem;
  color: var(--color-antracite);
  line-height: 1.55;
}

.bookhouse-box a {
  color: var(--color-blu-profondo);
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.bookhouse-box a:hover {
  color: var(--color-azzurro-mare);
  text-decoration: underline;
}
/* --------------------------------------------------
   FIX MOBILE — CENTRATURA SERVIZI PREMIUM
-------------------------------------------------- */
@media (max-width: 820px) {

  .service-premium-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-illustration {
    justify-content: center;
  }

  .service-illustration img {
    margin: 0 auto;
  }

  .service-list {
    text-align: center;
    padding-left: 0;
  }

  .service-list li {
    padding-left: 0;
  }

  .service-list li::before {
    left: -12px; /* mantiene il pallino centrato */
  }
}
.promo-cta {
    text-align: center;
    margin-top: 15px;
}

.promo-btn {
    display: inline-block;
    padding: 12px 22px;
    background-color: #003366; /* blu profondo */
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .2s ease;
}

.promo-btn:hover {
    opacity: 0.85;
}
/* FIX — Testo leggibile nelle card dei Vantaggi Esclusivi */
#vantaggi .service-item,
#benefits .service-item {
    background: #ffffff;
    border-radius: var(--radius-large);
    padding: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

#vantaggi .service-title,
#benefits .service-title {
    color: #003366; /* blu profondo */
    font-weight: 700;
    margin-bottom: 10px;
}

#vantaggi .service-desc,
#benefits .service-desc {
    color: #003366; /* blu profondo */
    opacity: 1;
    font-weight: 500;
    line-height: 1.45;
}
