/* ============================================================
   LAVANDERIA SELF-SERVICE - STYLE SHEET
   Design: Clean Foam & Water Fresh Palette
   ============================================================ */

/* Font serviti in locale (niente chiamate a Google Fonts) */
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/work-sans-v24-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/work-sans-v24-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/work-sans-v24-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/work-sans-v24-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/work-sans-v24-latin-800.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans KR'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/noto-sans-kr-v39-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans KR'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/noto-sans-kr-v39-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans KR'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/noto-sans-kr-v39-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans KR'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/noto-sans-kr-v39-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans KR'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/noto-sans-kr-v39-latin-800.woff2') format('woff2'); }

:root {
  --white: #ffffff;
  --foam: #e4f4f8;
  --foam-2: #eef9fb;
  --foam-card: #f4fbfd;
  --aqua: #0a9bc4;
  --aqua-bright: #25c0e0;
  --aqua-deep: #0a6f8c;
  --teal: #176f93;
  --ink: #12303a;
  --sun: #ffc23d;
  --sun-soft: #ffe1a6;
  --accent-yellow: #facc6e;
  --line: #cde7ee;
  
  --shadow-sm: 0 4px 14px rgba(23, 50, 58, 0.06);
  --shadow-md: 0 10px 24px rgba(11, 91, 115, 0.08);
  --shadow-lg: 0 18px 40px rgba(11, 91, 115, 0.12);
  
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  
  --maxw: 1140px;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER WIDE */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER — identico a index.html (stessi bordi, colori, distanziamento) */
header.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  background: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--foam);
  box-shadow: 0 4px 14px rgba(23, 50, 58, 0.08);
}

.header-row {
  width: 100%;
  max-width: 1250px;
  min-height: 78px;
  margin: 0 auto;
  padding-inline: clamp(48px, 7vw, 88px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 28px;
}

.brand {
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

nav.main-nav a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 8px 14px;
  background: var(--foam);
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  transition: background-color .2s, border-color .2s, color .2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--teal);
  background: var(--sun-soft);
  border-color: var(--teal);
}

/* SELETTORE LINGUA */
.lang-switch {
  position: relative;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal);
  background: var(--foam);
  border: 1px solid var(--teal);
  border-radius: 999px;
  height: 42px;
  line-height: 1;
  padding: 0 34px 0 16px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.lang-switch select:hover {
  background: var(--sun-soft);
  border-color: var(--teal);
}

.lang-switch select option {
  color: var(--ink);
  background: var(--white);
}

.lang-switch::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  pointer-events: none;
  font-size: 1rem;
}

/* HERO / TITLE */
.title-intro {
  padding: 40px 20px 20px;
  text-align: center;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
}

.delfino-icon {
  width: 150px;
  height: 150px;
  background-image: url('pictures/delfino2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.title-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.title-main {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--teal);
}

.accent {
  color: var(--aqua-deep);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 700;
  margin-top: 4px;
}

.instr-intro {
  text-align: center;
  color: #3a5a63;
  max-width: 640px;
  margin: 14px auto 32px;
  font-size: 1.08rem;
}

/* TAB SWITCHER — stesso stile dello switch in index.html (.programs-toggle) */
.tab-container {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.tab-switcher {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  background: var(--white);
  border: 1.5px solid var(--aqua);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
}

.tab-btn {
  border: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.tab-btn:hover {
  background: rgba(10, 155, 196, .10);
}

.tab-btn.active {
  background: #bfe6f4;
  color: var(--teal);
  box-shadow: none;
}

.tab-content {
  display: none;
  animation: fadeIn 0.35s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* STEPPER PROGRESS BAR */
.stepper-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--foam);
  color: var(--teal);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 2px solid var(--line);
}

.stepper-item.active .stepper-num {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.stepper-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.stepper-divider {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 10px;
}

/* GRUPPI FASI */
.phase-group {
  background: var(--foam);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 32px;
  margin-bottom: 32px;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.phase-badge {
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.phase-title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--teal);
  font-weight: 800;
}

/* ELENCO PASSAGGI — incolonnati uno sotto l'altro */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(23, 111, 147, 0.35);
}

/* Riga sempre visibile: numero + testo + freccetta */
.step-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--white);
  color: var(--teal);
  border: 2px solid var(--teal);
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.step-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: #3a5a63;
  font-size: 1rem;
}

/* DOPPIA FRECCETTA "c'è ancora da leggere" */
.step-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--aqua);
  background: var(--white);
  color: var(--aqua-deep);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.step-toggle:hover {
  background: var(--foam);
}

.step-toggle .chevron {
  transition: transform 0.3s ease;
  animation: chevron-hint 1.8s ease-in-out infinite;
}

.step-toggle[aria-expanded="true"] {
  background: var(--aqua);
  color: var(--white);
}

.step-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
  animation: none;
}

@keyframes chevron-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .step-toggle .chevron { animation: none; }
}

/* CONTENUTO NASCOSTO: consigli + foto */
.step-details[hidden] {
  display: none;
}

.step-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: stepReveal 0.3s ease;
}

@keyframes stepReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-tip {
  margin: 0;
  background: linear-gradient(135deg, rgba(255,194,61,0.16), rgba(255,194,61,0.05));
  border: 1px solid rgba(255, 194, 61, 0.5);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #5a4a1a;
  font-size: 0.95rem;
  font-weight: 500;
}

.step-text strong {
  color: var(--teal);
}

.highlight-tag {
  display: inline-block;
  background: var(--accent-yellow);
  color: #3a2a06;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Più foto: affiancate finché c'è spazio, poi una sotto l'altra */
.step-media {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
}

.step-media .step-media-frame {
  flex: 1 1 240px;
  max-width: 100%;
  display: flex;
}

/* Due foto affiancate: stessa altezza, nessun bordo bianco (riempiono il riquadro) */
.step-media .step-media-frame img {
  height: 100%;
  object-fit: cover;
}

.step-media-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 440px;
}

/* Foto singola: centrata nella colonna */
.step-details > .step-media-frame {
  align-self: center;
}

.step-media-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.instr-note {
  margin: 32px auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  background: linear-gradient(135deg, rgba(255,194,61,0.2), rgba(255,194,61,0.06));
  border: 1.5px solid rgba(255, 194, 61, 0.6);
  color: #5a4a1a;
  font-weight: 600;
}

/* BANNER & CTA */
.teaser-section {
  padding: 20px 0;
}

.teaser {
  background: linear-gradient(135deg, var(--foam), var(--foam-2));
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.teaser h2 {
  margin: 0 0 6px;
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--teal);
  background: var(--accent-yellow);
  color: #3a2a06;
  box-shadow: 0 8px 20px rgba(255, 200, 87, 0.35);
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 200, 87, 0.45);
}

/* Varianti pulsante usate nel banner cookie */
.btn-primary {
  background: var(--aqua);
  color: #fff;
  border: none;
  box-shadow: 0 12px 26px rgba(0, 102, 255, .25);
}
.btn-primary:hover { background: var(--aqua-deep); }
.btn-ghost {
  background: var(--white);
  color: var(--aqua-deep);
  border: 2px solid var(--aqua);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--foam); border-color: var(--aqua-deep); }

/* BANNER COOKIE */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 950;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--ink);
  color: #eaf6f8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: .88rem; line-height: 1.5; }
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-banner-actions a {
  color: #eaf6f8;
  font-size: .85rem;
  text-decoration: underline;
  white-space: nowrap;
}
.cookie-banner-actions .btn {
  padding: 9px 18px;
  font-size: .88rem;
  white-space: nowrap;
  box-shadow: none;
}
@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; padding: 16px; }
}

/* Tabella cookie nell'informativa */
.privacy-table-wrap { overflow-x: auto; margin: 8px 0 4px; }
.privacy-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 440px;
  font-size: .92rem;
}
.privacy-table th,
.privacy-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.privacy-table th { background: var(--foam); color: var(--teal); font-weight: 700; }

/* FOOTER */
footer.site-footer {
  margin-top: 60px;
  padding: 48px 0 24px;
  background: linear-gradient(160deg, var(--ink), var(--teal));
  color: #cfe6ec;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.footer-logo-badge img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.footer-brand p {
  margin: 0;
  color: #cfe6ec;
  line-height: 1.5;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.footer-col a {
  color: #cfe6ec;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero-title { flex-direction: column; }
  .title-text { align-items: center; text-align: center; }
  .stepper-bar { display: none; }
  .teaser { flex-direction: column; text-align: center; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* HEADER mobile — identico a index.html */
@media (max-width: 700px) {
  header.site-header { position: relative; min-height: 0; }
  .header-row {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .brand { min-width: 0; font-size: 1rem; }
  .brand-logo { width: 32px; height: 32px; }
  nav.main-nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; gap: 20px; }
  nav.main-nav a { font-size: .9rem; }
  .lang-switch { align-self: center; }
  .lang-switch select { font-size: .8rem; padding: 7px 28px 7px 11px; }
  .lang-switch::after { right: 11px; }
}

@media (max-width: 600px) {
  .wrap { padding-inline: 20px; }
}

@media (max-width: 580px) {
  .phase-group { padding: 20px 14px; }
  .footer-top { grid-template-columns: 1fr; }
  .phase-header { gap: 10px; }
  .phase-badge { font-size: 0.72rem; padding: 4px 9px; }
}

@media (max-width: 560px) {
  .step-card { padding: 14px 12px; }
  .step-row { gap: 10px; }
}

/* Riga legale nel footer (dati societari) */
.footer-bottom-inner { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.footer-legal { opacity: .8; font-size: .78rem; line-height: 1.5; }
