/* ===== VARIABILI & BASE (pagina Servizi - solo desktop, no dipendenze esterne) ===== */
:root {
  --bg: #f8f9fb;
  --surface: rgba(248, 249, 251, 0.72);
  --surface-strong: rgba(248, 249, 251, 0.88);
  --text: #1e2328;
  --muted: rgba(30, 35, 40, 0.72);
  --border: rgba(30, 35, 40, 0.14);

  --accent: #2f7ea7;
  --accent-2: #7f9b8f;
  --accent-soft: rgba(47, 126, 167, 0.14);

  --shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  --radius: 16px;

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  --font-serif: ui-serif, "Georgia", serif;

  --header-height: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Focus visibile per tastiera */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a:focus-visible {
  outline-offset: 2px;
}

/* Voce Servizi in nav bar e menu hamburger: grassetto e colori Floating Dream */
.nav-list a[href="servizi.php"] {
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-list a[href="servizi.php"]::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 100%;
}

.nav-modal-list a[href="servizi.php"] {
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== SFONDO PARALLAX ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/servizi/background_parallax_servizi.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #fff;
  opacity: 0.95;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: 1px solid rgba(47, 126, 167, 0.5);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(47, 126, 167, 0.28), 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(47, 126, 167, 0.35), 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: rgba(47, 126, 167, 0.6);
  color: #fff;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #fff, transparent);
  opacity: 0.6;
  border-radius: 1px;
}

.scroll-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  opacity: 0.8;
}


/* ===== PAGINA SERVIZI: footer bianco + sezioni contenuto ===== */
/* Riga separatrice tra hero e sezione 1 (colori Floating Dream) */
.services-intro {
  position: relative;
  padding: 70px 0 56px;
  background: #ffffff;
}

.services-intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 20%,
    var(--accent-2) 80%,
    transparent 100%
  );
  opacity: 0.9;
}

.services-intro__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.services-intro__card {
  margin: 0 auto;
  max-width: 920px;
  text-align: center;
}

.services-intro__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.services-intro__list {
  margin: 0 auto;
  max-width: 680px;
  list-style: none;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.services-intro__item {
  padding: 0;
}

.services-intro__item-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.services-intro__item-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #000;
}

.service-section {
  padding: 110px 0;
}

.service-section .container,
.container.service-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* Padding solo per container che NON sono il rettangolo grid (evita sovrascrittura) */
.service-section .container:not(.service-grid) {
  padding: 0 1.5rem;
}

/* Rettangolo stile Floating Dream: sfondo nero 40% opacità, bordo 3px, 90% larghezza */
.service-grid {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(47, 126, 167, 0.5);
  border-radius: 22px;
  padding: 3rem 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-section.is-reverse .service-media {
  order: 2;
}

.service-section.is-reverse .service-text {
  order: 1;
}

/* Centra l’immagine rispetto all’asse orizzontale del rettangolo */
/* Colonna immagine: img a dimensioni fisse, centrata (non segue il rettangolo) */
.service-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-media img {
  display: block;
  width: 480px;
  max-width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  /* Sfumatura gradiente verso trasparente nell’ultimo 20% dei bordi */
}

.service-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.service-icon {
  flex-shrink: 0;
  width: var(--service-icon-size, 56px);
  height: var(--service-icon-size, 56px);
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.service-text h2 {
  margin: 0;
  font-size: 42px;
  letter-spacing: 0.3px;
  color: #f8f9fb;
}

/* Colori per sezione: icona, titolo e bordo contenitore (💧 🔥 🥂 ☕) */
.service-section--water .service-grid { border-color: rgba(3, 169, 244, 0.65); }
.service-section--water .service-icon,
.service-section--water .service-text h2 { color: #03a9f4; }

.service-section--fire .service-grid { border-color: rgba(255, 87, 34, 0.65); }
.service-section--fire .service-icon,
.service-section--fire .service-text h2 { color: #ff5722; }

.service-section--champagne .service-grid { border-color: rgba(255, 193, 7, 0.7); }
.service-section--champagne .service-icon,
.service-section--champagne .service-text h2 { color: #ffc107; }

.service-section--coffee .service-grid { border-color: rgba(109, 76, 65, 0.7); }
.service-section--coffee .service-icon,
.service-section--coffee .service-text h2 { color: #bcaaa4; }

.service-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(248, 249, 251, 0.9);
  max-width: 640px;
}

.service-cta-wrap {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.service-cta {
  --cta-color: #2f7ea7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--cta-color);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cta-color);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.service-cta:hover,
.service-cta:focus-visible {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  filter: saturate(1.15);
}

.service-section--water .service-cta { --cta-color: #03a9f4; }
.service-section--fire .service-cta { --cta-color: #ff5722; }
.service-section--champagne .service-cta { --cta-color: #ffc107; }
.service-section--coffee .service-cta { --cta-color: #bcaaa4; }

.bg-w2b {
  background: linear-gradient(180deg, #ffffff 0%, transparent 100%);
}

.bg-b2w {
  background: linear-gradient(180deg, transparent 0%, #ffffff 100%);
}

/* Footer servizi: gradiente morbido come home/gallery */
body.page-servizi .footer {
  background: #fff !important;
}

/* ===== MEDIA QUERIES: MOBILE & TABLET (4 breakpoint) ===== */

/* 1. Mobile portrait (max-width 767px) */
@media (max-width: 767px) and (orientation: portrait) {
  body::before {
    background-image: url("../img/servizi/background_parallax_servizi_mobile.webp");
  }

  .hero {
    padding: calc(var(--header-height) + 1.5rem) 1rem 3rem;
    min-height: 100vh;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  .scroll-indicator {
    bottom: 1.5rem;
  }

  .scroll-line {
    height: 32px;
  }

  .services-intro {
    padding: 52px 0 28px;
  }

  .services-intro__inner {
    padding: 0 1rem;
  }

  .services-intro__card {
    text-align: center;
  }

  .services-intro__title {
    font-size: 1.5rem;
  }

  .services-intro__item-title {
    font-size: 1.0625rem;
  }

  .services-intro__item-text {
    font-size: 0.975rem;
  }

  .service-section {
    padding: 64px 0;
  }

  .service-grid {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .container.service-grid {
    padding: 2rem 1rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-text {
    order: 1;
    text-align: center;
  }

  .service-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .service-media {
    order: 2;
  }

  .service-media img {
    width: 280px;
    max-width: 100%;
    height: 200px;
  }

  .service-text h2 {
    font-size: 1.5rem;
  }

  .service-text p {
    font-size: 1rem;
  }

  .service-title-wrap {
    justify-content: center;
  }

}

/* 2. Mobile landscape (max-width 767px) */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    padding: calc(var(--header-height) + 1rem) 1rem 2rem;
    min-height: 100vh;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

  .scroll-indicator {
    bottom: 1rem;
  }

  .scroll-line {
    height: 28px;
  }

  .services-intro {
    padding: 44px 0 24px;
  }

  .services-intro__inner {
    padding: 0 1rem;
  }

  .services-intro__card {
    text-align: center;
  }

  .services-intro__title {
    font-size: 1.375rem;
  }

  .services-intro__item-title {
    font-size: 1rem;
  }

  .services-intro__item-text {
    font-size: 0.95rem;
  }

  .service-section {
    padding: 56px 0;
  }

  .service-section .container:not(.service-grid) {
    padding: 0 1rem;
  }

  .container.service-grid {
    padding: 1.5rem 1rem;
  }

  .service-grid {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-text {
    order: 1;
    text-align: center;
  }

  .service-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .service-media {
    order: 2;
  }

  .service-media img {
    width: 260px;
    max-width: 100%;
    height: 180px;
  }

  .service-text h2 {
    font-size: 1.375rem;
  }

  .service-text p {
    font-size: 0.95rem;
  }

  .service-title-wrap {
    justify-content: center;
  }
}

/* 3. Tablet portrait (768px – 1024px): stesso menu hamburger di mobile (logo, simbolo disabili, lingue + hamburger) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  body::before {
    background-image: url("../img/servizi/background_parallax_servizi_mobile.webp");
  }

  .hero {
    padding: calc(var(--header-height) + 2rem) 1.5rem 3.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
  }

  .services-intro {
    padding: 60px 0 34px;
  }

  .services-intro__inner {
    padding: 0 1.5rem;
  }

  .service-section {
    padding: 90px 0;
  }

  .service-section .container:not(.service-grid) {
    padding: 0 1.5rem;
  }

  .container.service-grid {
    padding: 2rem 1.5rem;
  }

  .service-grid {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-text {
    order: 1;
    text-align: center;
  }

  .service-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .service-media {
    order: 2;
  }

  .service-media img {
    width: 360px;
    max-width: 100%;
    height: 280px;
  }

  .service-text h2 {
    font-size: 2rem;
  }

  .service-text p {
    font-size: 1.0625rem;
  }

  .service-title-wrap {
    justify-content: center;
  }

}

/* 4. Tablet landscape (768px – 1360px) */
@media (min-width: 768px) and (max-width: 1360px) and (orientation: landscape) {
  .hero {
    padding: calc(var(--header-height) + 1.5rem) 2rem 3rem;
  }

  .hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
  }

  .services-intro {
    padding: 64px 0 36px;
  }

  .services-intro__inner {
    padding: 0 1.5rem;
  }

  .service-section {
    padding: 90px 0;
  }

  .service-section .container:not(.service-grid) {
    padding: 0 1.5rem;
  }

  .container.service-grid {
    padding: 2rem 1.5rem;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }

  .service-media img {
    width: 400px;
    max-width: 100%;
    height: 300px;
  }

  .service-text h2 {
    font-size: 2.25rem;
  }

  .service-text p {
    font-size: 1.0625rem;
  }

}

