/* ==========================================================================
   Colsil Parrucchieri — restyling emozionale (statico)
   Palette calda beauty: rosa cipria, prugna, crema. Contrasti AA.
   ========================================================================== */

:root {
  --plum: #5f3345;
  --plum-deep: #47222f;
  --rose: #b06a7c;
  --rose-soft: #e8c9d0;
  --cream: #fbf5f2;
  --cream-2: #f4e7e2;
  --ink: #2b2126;
  --muted: #6c5a61;
  --white: #ffffff;
  --gold: #c79a5b;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(71, 34, 47, 0.35);
  --shadow-sm: 0 8px 24px -14px rgba(71, 34, 47, 0.4);
  --maxw: 1160px;
  --gap: clamp(1.5rem, 4vw, 3.5rem);

  --font-head: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.02rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; color: var(--plum-deep); font-weight: 700; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--cream-2); }

.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; z-index: 1000; background: var(--plum-deep); color: #fff;
  padding: .75rem 1.1rem; border-radius: 10px;
}

/* Focus visibile per accessibilità */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
  font-weight: 700; color: var(--rose); margin: 0 0 .6rem;
}

/* ---------- Buttons (touch target >= 44px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center; line-height: 1.1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--plum); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--plum-deep); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-small { min-height: 44px; padding: .55rem 1.15rem; font-size: .95rem; }
.btn-whatsapp { background: #1f8a4c; color: #fff; }
.btn-whatsapp:hover { background: #176a3a; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 245, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--plum), var(--rose)); color: #fff;
  font-family: var(--font-head); font-size: 1.3rem; box-shadow: var(--shadow-sm);
}
.brand-text { font-family: var(--font-head); font-size: 1.25rem; color: var(--plum-deep); }
.brand-text em { font-style: normal; color: var(--rose); font-size: .78em; display: block; letter-spacing: .18em; text-transform: uppercase; margin-top: -3px; }

.main-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .4rem; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .85rem; border-radius: 999px; color: var(--ink); font-weight: 500; }
.nav-list a:hover { text-decoration: none; background: var(--cream-2); }
.nav-cta a { color: #fff; }
.nav-cta a:hover { background: var(--plum-deep); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent;
  cursor: pointer; border-radius: 12px; padding: 12px;
}
.nav-toggle span { display: block; height: 2px; background: var(--plum-deep); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(71,34,47,.15) 0%, rgba(71,34,47,.35) 45%, rgba(47,34,42,.82) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-block: clamp(2.5rem, 7vw, 5rem); max-width: 42rem; }
.hero-content .eyebrow { color: var(--rose-soft); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6.5vw, 4.2rem); margin-bottom: .4em; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #f6ecef; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--gap); align-items: center; }
.story-media img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; }
.story-text h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.story-values { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; }
.story-values li { position: relative; padding-left: 1.4rem; }
.story-values li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.story-values strong { display: block; color: var(--plum-deep); font-family: var(--font-head); font-size: 1.15rem; }
.story-values span { color: var(--muted); font-size: .96rem; }

/* ---------- Section head ---------- */
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Services ---------- */
.services-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 2.2rem;
}
.services-feature img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.services-feature-text { padding: clamp(1.5rem, 4vw, 2.8rem); }
.services-feature-text h3 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.services-feature-text p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.service-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.card { background: var(--white); border: 1px solid var(--cream-2); border-radius: var(--radius-sm); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.gallery-grid li { overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s ease; }
.gallery-grid img:hover { transform: scale(1.06); }

/* ---------- Reviews ---------- */
.review-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.review { background: var(--white); border-radius: var(--radius-sm); padding: 2.2rem 1.7rem 1.7rem; box-shadow: var(--shadow-sm); }
.review p { font-family: var(--font-head); font-size: 1.15rem; color: var(--plum-deep); font-style: italic; position: relative; }
.review p::before { content: "\201C"; font-size: 2.6rem; color: var(--rose-soft); position: absolute; top: -1.4rem; left: -.3rem; line-height: 1; }
.review-author { color: var(--rose); font-weight: 600; font-size: .95rem; }

/* ---------- Newsletter ---------- */
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.newsletter-form { display: flex; gap: .7rem; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 220px; min-height: 48px; padding: .7rem 1rem; border-radius: 999px;
  border: 2px solid var(--rose-soft); background: #fff; font: inherit; color: var(--ink);
}
.newsletter-form input:focus { border-color: var(--plum); outline: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.contact-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: .1rem; }
.ci-label { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--rose); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.social-bar { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 0; padding: 0; }
.social-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--cream-2); font-weight: 600; font-size: .9rem; }
.social-bar a:hover { text-decoration: none; background: var(--plum); color: #fff; }

.contact-form, .map-wrap { background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.map-wrap { margin-top: 1.4rem; }
.contact-form h3, .map-wrap h3 { font-size: 1.35rem; }
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin: .8rem 0 .3rem; color: var(--plum-deep); }
.contact-form input, .contact-form textarea {
  width: 100%; min-height: 48px; padding: .65rem .9rem; border-radius: 12px;
  border: 2px solid var(--rose-soft); background: var(--cream); font: inherit; color: var(--ink);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--plum); outline: none; }
.contact-form .btn { margin-top: 1.1rem; width: 100%; }
.form-note { font-size: .8rem; color: var(--muted); margin: .8rem 0 0; }

.map-placeholder {
  display: grid; place-items: center; min-height: 220px; border-radius: 12px;
  background: repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 12px, var(--cream) 12px, var(--cream) 24px);
  color: var(--muted); font-weight: 600; border: 1px dashed var(--rose);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-deep); color: #f3e4e9; padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer-inner { display: grid; gap: 1rem; text-align: center; justify-items: center; }
.site-footer .brand-mark { background: linear-gradient(135deg, var(--rose), var(--gold)); }
.site-footer .brand-text, .site-footer .brand-text em { color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; }
.footer-tag { color: var(--rose-soft); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.footer-nav a { color: #f3e4e9; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: .85rem; color: #cbaab6; margin: .5rem 0 0; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; background: #1f8a4c; color: #fff;
  display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow);
}
.wa-float:hover { text-decoration: none; background: #176a3a; transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-top: 1px solid var(--cream-2);
    padding: .5rem clamp(1.1rem, 4vw, 2rem) 1rem;
    box-shadow: var(--shadow); display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list a { min-height: 48px; border-radius: 10px; }
  .nav-cta { margin-top: .3rem; }
  .nav-cta a { justify-content: center; }
  .main-nav { position: static; }

  .story-grid, .services-feature, .newsletter-inner, .contact-grid { grid-template-columns: 1fr; }
  .story-media { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
