/* Davide Salon e beauty
   Palette presa dal salone: verde petrolio degli infissi e legno chiaro delle mensole.
   Due famiglie di caratteri: Instrument Serif per titoli
   e nome, Jost per tutto il resto. */

:root {
  --petrol-900: #0b3338;
  --petrol-800: #0f444a;
  --petrol-700: #14595f;
  --petrol-500: #1f8a8c;
  --petrol-300: #9fcfcd;
  --petrol-100: #e2efee;
  --mist:       #f4f8f7;
  --white:      #ffffff;
  --oak:        #d9bf9b;
  --oak-pale:   #f6efe3;
  --ink:        #172629;
  --ink-soft:   #51656a;
  --star:       #e2a93b;

  --font-title: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-text:  "Jost", "Segoe UI", system-ui, sans-serif;

  --size-text:  1.0625rem;
  --size-small: 0.95rem;
  --size-h3:    1.65rem;

  --wrap:  1120px;
  --frame: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--size-text);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; }
figure, blockquote { margin: 0; }
strong { font-weight: 500; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
h3 { font-size: var(--size-h3); line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--petrol-500); }

.wrap { max-width: calc(var(--wrap) + 2.5rem); margin-inline: auto; padding-inline: 1.25rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--petrol-900); color: #fff;
}
.skip-link:focus { top: 0.6rem; }

:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.kicker {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--petrol-700);
}
.kicker::before {
  content: ""; flex: none; width: 30px; height: 3px; background: var(--petrol-500);
}

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 + p { margin: 1.1rem 0 0; color: var(--ink-soft); }

/* Pulsanti: angoli vivi, come gli infissi */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font: inherit; line-height: 1.25; text-decoration: none;
  color: #fff; background: var(--petrol-700);
  border: 2px solid var(--petrol-700);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--petrol-900); border-color: var(--petrol-900); }
.btn svg { flex: none; }
.btn-outline { color: var(--petrol-700); background: transparent; }
.btn-outline:hover { color: #fff; background: var(--petrol-700); border-color: var(--petrol-700); }
.btn-small { padding: 0.55rem 1rem; }
.btn-light { color: var(--petrol-900); background: #fff; border-color: #fff; }
.btn-light:hover { color: var(--petrol-900); background: var(--petrol-100); border-color: var(--petrol-100); }
.btn-light-outline { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.55); }
.btn-light-outline:hover { color: var(--petrol-900); background: #fff; border-color: #fff; }

.text-link {
  color: var(--petrol-700);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--petrol-900); }

/* Stelle: riempite in proporzione al voto */
.stars {
  position: relative; display: inline-block; flex: none;
  width: 5.75em; height: 1.1em; vertical-align: -0.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d3dcdb' d='M12 2l3 6.3 6.9.9-5 4.8 1.2 6.9L12 17.6l-6.1 3.3 1.2-6.9-5-4.8L9 8.3z'/%3E%3C/svg%3E") 0 50% / 1.15em 1.1em repeat-x;
}
.stars::before {
  content: ""; position: absolute; inset: 0; width: 88%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e2a93b' d='M12 2l3 6.3 6.9.9-5 4.8 1.2 6.9L12 17.6l-6.1 3.3 1.2-6.9-5-4.8L9 8.3z'/%3E%3C/svg%3E") 0 50% / 1.15em 1.1em repeat-x;
}

/* ---------- Testata ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 5px solid var(--petrol-500);
  border-bottom: 1px solid var(--petrol-100);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }

.brand {
  margin: 0 auto 0 0;
  font-family: var(--font-title); font-size: var(--size-h3); line-height: 1;
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  color: var(--ink);
}

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  padding: 0.4rem 0; text-decoration: none;
  border-bottom: 2px solid transparent; transition: border-color 0.2s;
}
.site-nav a:hover { border-color: var(--petrol-500); }

.header-actions { display: flex; align-items: center; gap: 0.25rem; }
.icon-link {
  display: grid; place-items: center; width: 42px; height: 42px;
  color: var(--petrol-700); transition: background 0.2s;
}
.icon-link:hover { background: var(--petrol-100); }
.header-actions .btn { margin-left: 0.5rem; }
.btn-short { display: none; }

/* ---------- Apertura ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background: linear-gradient(180deg, var(--mist), var(--white) 75%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.lead { max-width: 33rem; margin-bottom: 1.9rem; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.7rem; }
.hero-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin: 0; color: var(--ink-soft); }

/* La "vetrina": cornice verde petrolio con i tre vetri in alto, come la facciata */
.window {
  background: var(--petrol-500); padding: var(--frame);
  box-shadow: 0 34px 60px -36px rgba(11, 51, 56, 0.6);
}
.window img { width: 100%; object-fit: cover; }
.window-transom {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--frame); margin-bottom: var(--frame);
}
.window-transom span { height: 34px; background: linear-gradient(165deg, #fbfdfd 0%, #cfe6e4 100%); }
.hero-window { width: 100%; max-width: 440px; justify-self: end; }
.hero-window img { aspect-ratio: 4 / 5; object-position: 50% 42%; }

/* ---------- In breve ---------- */
.facts { background: var(--petrol-900); color: #fff; }
.facts-list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0; padding: 0; list-style: none;
}
.facts-list li { padding: 1.8rem 1.5rem; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.facts-list li:first-child { padding-left: 0; border-left: 0; }
.facts-list strong {
  display: block; margin-bottom: 0.35rem;
  font-family: var(--font-title); font-weight: 400; font-size: var(--size-h3); line-height: 1.12;
}
.facts-list span { display: block; line-height: 1.45; color: #c3dddc; }

/* ---------- Il salone ---------- */
.salon { background: var(--mist); }
.salon-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.salon-window img { aspect-ratio: 4 / 3; object-position: 40% 50%; }
.salon-text h2 { margin-bottom: 1.4rem; }
.salon-text p a { color: var(--petrol-700); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.salon-text p a:hover { color: var(--petrol-900); }

.inline-quote { margin-top: 1.8rem; padding-left: 1.3rem; border-left: 3px solid var(--oak); }
.inline-quote p { margin-bottom: 0.5rem; }
.inline-quote figcaption { font-size: var(--size-small); color: var(--ink-soft); }

/* ---------- Servizi ---------- */
.services-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: 2.2rem; border-top: 2px solid var(--ink);
}
.services-col { display: grid; gap: 2.4rem; align-content: start; }
.service h3 { display: flex; align-items: center; gap: 0.7rem; }
.service ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.service li { padding: 0.62rem 0; border-top: 1px solid var(--petrol-100); }
.service li:last-child { border-bottom: 1px solid var(--petrol-100); }
.service .two-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.service .two-cols li:last-child { grid-column: 1 / -1; }

/* Il palo da barbiere che si vede in vetrina */
.pole {
  flex: none; width: 9px; height: 1.5em; border-radius: 5px;
  background: repeating-linear-gradient(135deg, #c53a40 0 5px, #fff 5px 10px, #2b5ea6 10px 15px, #fff 15px 20px);
  box-shadow: 0 0 0 1px rgba(23, 38, 41, 0.18);
}

.price-band {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem; align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--oak-pale); border-left: var(--frame) solid var(--oak);
}
.price-quote p {
  margin-bottom: 0.6rem;
  font-family: var(--font-title); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15;
}
.price-quote figcaption { font-size: var(--size-small); color: var(--ink-soft); }
.price-cta { display: grid; gap: 0.8rem; justify-items: start; }
.price-cta p { margin: 0; }

/* ---------- Lavori ---------- */
.works { background: var(--petrol-100); }
.triptych {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--frame); padding: var(--frame);
  background: var(--petrol-500);
  box-shadow: 0 34px 60px -36px rgba(11, 51, 56, 0.6);
}
.triptych figure { display: flex; flex-direction: column; background: #fff; }
.triptych img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.triptych figcaption { padding: 0.75rem 1rem 0.85rem; line-height: 1.3; }

/* ---------- Recensioni ---------- */
.reviews-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.reviews-side { position: sticky; top: 110px; }
.reviews-side h2 { margin-bottom: 1.6rem; }
.score { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.score-num { font-family: var(--font-title); font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1; color: var(--petrol-700); }
.score .stars { display: block; margin-bottom: 0.35rem; }
.score-note { display: block; font-size: var(--size-small); color: var(--ink-soft); line-height: 1.35; }

.reviews-list { display: grid; gap: 0; }
.quote { padding: 1.7rem 0; border-top: 1px solid var(--petrol-100); }
.quote:first-child { padding-top: 0; border-top: 0; }
.quote p { margin-bottom: 0.8rem; }
.quote figcaption { font-size: var(--size-small); color: var(--ink-soft); }
.quote figcaption strong { margin-right: 0.35rem; color: var(--ink); }
.quote-lead p { font-family: var(--font-title); font-size: var(--size-h3); line-height: 1.25; }

/* ---------- Orari e contatti ---------- */
.contact { background: var(--petrol-900); color: #fff; }
.contact .kicker { color: var(--petrol-300); }
.contact h2 em { color: var(--petrol-300); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.contact-card h3 { margin-bottom: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-weight: 400; }
.hours th { text-align: left; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-closed th, .hours .is-closed td { color: #a9c9c8; }
.hours .is-today th, .hours .is-today td { color: var(--oak); }
.hours .is-today th::after { content: "oggi"; margin-left: 0.6rem; font-size: var(--size-small); }

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-list .label { color: #a9c9c8; }
.contact-list a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.45); }
.contact-list a:hover { text-decoration-color: #fff; }
.contact-list small { grid-column: 2; font-size: var(--size-small); color: #c3dddc; }

.contact-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.map-window { box-shadow: none; }
.map-window iframe { display: block; width: 100%; height: 380px; border: 0; background: var(--petrol-100); }

/* ---------- Piè di pagina ---------- */
.site-footer { padding: 3rem 0 2.2rem; background: #072629; color: #c3dddc; text-align: center; }
.footer-inner { display: grid; gap: 1.1rem; justify-items: center; }
.site-footer .footer-brand { margin: 0; color: #fff; font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1; white-space: normal; }
.footer-address { margin: 0; }
.footer-address a { color: #fff; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer-social { display: flex; align-items: center; gap: 0.3rem; }
.footer-social .icon-link { color: #fff; }
.footer-social .icon-link:hover { background: rgba(255, 255, 255, 0.12); }
.footer-handle { color: #fff; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer-small { margin: 0.6rem 0 0; font-size: var(--size-small); }

/* ---------- Schermi medi ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
}

@media (max-width: 900px) {
  .hero-grid, .salon-grid, .services-grid, .price-band, .reviews-grid, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-window { max-width: 520px; justify-self: start; }
  .hero-window img { aspect-ratio: 1 / 1; object-position: 50% 38%; }
  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .facts-list li { padding: 1.4rem 1.2rem; }
  .facts-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts-list li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .reviews-side { position: static; }
  .window-transom { display: none; }
}

/* ---------- Telefono ---------- */
@media (max-width: 600px) {
  html { scroll-padding-top: 76px; }
  .header-inner { gap: 0.5rem; min-height: 62px; }
  .brand { white-space: normal; font-size: 1.4rem; line-height: 0.98; }
  .brand span { display: block; }
  .header-actions .btn { margin-left: 0.25rem; padding: 0.55rem 0.8rem; }
  .btn-number { display: none; }
  .btn-short { display: inline; }

  .hero-cta .btn, .price-cta .btn, .contact-cta .btn { width: 100%; }
  .facts-list li { padding: 1.2rem 0.9rem; }
  .facts-list strong { font-size: 1.4rem; }

  .service .two-cols { column-gap: 1.2rem; }
  .triptych { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .triptych figure:first-child { grid-column: 1 / -1; }
  .triptych figure:first-child img { aspect-ratio: 4 / 5; }
  .triptych figcaption { padding: 0.6rem 0.75rem 0.7rem; }

  .contact-list li { grid-template-columns: minmax(0, 1fr); }
  .contact-list small { grid-column: 1; }
  .map-window iframe { height: 320px; }
}
