/* Ciao Parrucchieri — Senigallia — sito vetrina Universe */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --cream: #f7f1ec;
  --cream-2: #f0e6de;
  --wine: #6d1230;
  --wine-2: #8f2340;
  --wine-deep: #430c1f;
  --blush: #e9cdc6;
  --ink: #241318;
  --ink-soft: rgba(36, 19, 24, 0.62);
  --ink-faint: rgba(36, 19, 24, 0.38);
  --line: rgba(36, 19, 24, 0.12);
  --line-soft: rgba(36, 19, 24, 0.07);
  --white: #fffaf7;
  --shadow: 0 24px 60px rgba(67, 12, 31, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto;
  padding: 10px 16px; background: var(--wine); color: var(--white);
  z-index: 999; border-radius: 6px; clip: auto;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--wine);
}

.section { padding: 110px 24px; position: relative; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-narrow { max-width: 760px; margin: 0 auto; }

@media (max-width: 720px) {
  .section { padding: 72px 20px; }
}

/* ══════════ HEADER ══════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(247, 241, 236, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .4s var(--ease);
  z-index: -1;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { padding: 12px 32px; box-shadow: 0 8px 30px rgba(67,12,31,0.08); }

.site-header__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--wine-deep);
  display: flex; align-items: baseline; gap: 6px;
  white-space: nowrap;
}
.site-header__brand em { font-style: italic; color: var(--wine); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink); padding: 8px; z-index: 20;
}
.menu-toggle__icon {
  width: 24px; height: 16px; position: relative;
}
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 14px; }
body.nav-open .menu-toggle__icon::before { top: 7px; transform: rotate(45deg); }
body.nav-open .menu-toggle__icon::after { top: 7px; transform: rotate(-45deg); }

.site-header__nav { display: flex; align-items: center; gap: 34px; }
.site-header__nav a {
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
  color: var(--ink-soft); position: relative; padding: 4px 0;
}
.site-header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--wine); transition: width .3s var(--ease);
}
.site-header__nav a:hover, .site-header__nav a[aria-current="page"] { color: var(--wine); }
.site-header__nav a:hover::after, .site-header__nav a[aria-current="page"]::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.btn-wine { background: var(--wine); color: var(--white); box-shadow: 0 14px 30px rgba(109,18,48,0.3); }
.btn-wine:hover { background: var(--wine-deep); transform: translateY(-2px); box-shadow: 0 18px 36px rgba(109,18,48,0.4); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 11.5px; }

@media (max-width: 900px) {
  .site-header__nav {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(84vw, 360px);
    background: var(--cream); flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 26px; padding: 40px; transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.12);
  }
  body.nav-open .site-header__nav { transform: translateX(0); }
  .site-header__nav a { font-size: 16px; }
  .menu-toggle { display: flex; }
}

/* ══════════ HERO ══════════ */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  background: var(--cream);
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 64px 80px;
  position: relative;
  z-index: 2;
}
.hero__title {
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.98;
  margin: 18px 0 26px;
}
.hero__title em { font-style: italic; color: var(--wine); }
.hero__sub {
  font-size: 17px; line-height: 1.7; color: var(--ink-soft);
  max-width: 440px; margin-bottom: 36px; font-weight: 300;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 28px; margin-top: 56px; flex-wrap: wrap;
}
.hero__meta div { font-size: 12px; letter-spacing: 1px; color: var(--ink-faint); text-transform: uppercase; }
.hero__meta strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--wine-deep); font-weight: 600; letter-spacing: 0; text-transform: none; }

.hero__mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 6px;
  padding: 6px 6px 6px 0;
}
.hero__mosaic img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 2px;
  filter: saturate(1.05);
}
.hm-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.hm-2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.hm-3 { grid-column: 3 / 4; grid-row: 2 / 4; }
.hm-4 { grid-column: 1 / 2; grid-row: 3 / 5; }
.hm-5 { grid-column: 2 / 4; grid-row: 4 / 5; }
.hm-6 { grid-column: 2 / 3; grid-row: 3 / 4; }

.hero__mosaic-tile { overflow: hidden; position: relative; }
.hero__mosaic-tile img { transition: transform 1.2s var(--ease); }
.hero__mosaic-tile:hover img { transform: scale(1.08); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__copy { padding: 130px 22px 40px; order: 1; }
  .hero__mosaic { order: 2; height: 62vh; padding: 0 0 6px 0; }
  .hero__meta { gap: 20px; }
}

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 28px; left: 64px; display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-faint);
}
.scroll-cue span { display: block; width: 1px; height: 34px; background: var(--ink-faint); position: relative; overflow: hidden; }
.scroll-cue span::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--wine);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: -100%; } 50% { top: 0; } 100% { top: 100%; } }
@media (max-width: 980px) { .scroll-cue { display: none; } }

/* ══════════ REVEAL ══════════ */
[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].is-visible { transform: scale(1); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].is-visible { transform: translateX(0); }

/* ══════════ STORIA ══════════ */
.storia {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center;
}
.storia__frame {
  position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}
.storia__frame img { width: 100%; height: 100%; object-fit: cover; }
.storia__badge {
  position: absolute; bottom: -26px; right: -26px;
  background: var(--wine); color: var(--white);
  width: 128px; height: 128px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15px; line-height: 1.3;
  box-shadow: 0 16px 34px rgba(109,18,48,0.35);
}
.storia__badge strong { display: block; font-size: 30px; font-style: normal; font-weight: 700; }

.storia__text h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; margin: 14px 0 24px; }
.storia__text h2 em { font-style: italic; color: var(--wine); }
.storia__text p { font-size: 16px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 18px; max-width: 520px; }
.storia__points { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.storia__point { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.storia__point .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wine); margin-top: 8px; flex-shrink: 0; }

@media (max-width: 900px) {
  .storia { grid-template-columns: 1fr; gap: 44px; }
  .storia__badge { width: 100px; height: 100px; font-size: 12px; right: 10px; }
  .storia__badge strong { font-size: 24px; }
}

/* ══════════ SEZIONE INTESTAZIONE ══════════ */
.section-head { max-width: 640px; margin: 0 0 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; margin: 16px 0 0; }
.section-head h2 em { font-style: italic; color: var(--wine); }
.section-head p { margin-top: 18px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }

/* ══════════ GALLERY SERVIZI (masonry) ══════════ */
.gallery {
  columns: 3 260px; column-gap: 14px;
}
.gallery__item {
  break-inside: avoid; margin-bottom: 14px; position: relative;
  border-radius: 3px; overflow: hidden; box-shadow: 0 10px 26px rgba(67,12,31,0.10);
}
.gallery__item img { width: 100%; display: block; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 14px;
  background: linear-gradient(0deg, rgba(36,19,24,0.82), rgba(36,19,24,0));
  color: var(--white); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery__item:hover figcaption { opacity: 1; transform: translateY(0); }

@media (max-width: 720px) {
  .gallery { columns: 2 160px; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; }
  .gallery__item figcaption { opacity: 1; transform: none; font-size: 10.5px; padding: 10px; }
}

/* ══════════ SERVIZI PREVIEW STRIP ══════════ */
.services-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-radius: 4px; overflow: hidden;
  margin-top: 56px;
}
.services-strip__cell {
  background: var(--white); padding: 34px 24px; text-align: center;
}
.services-strip__cell .num { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--blush); font-size: 34px; }
.services-strip__cell h4 { font-size: 18px; margin: 10px 0 8px; }
.services-strip__cell p { font-size: 13px; color: var(--ink-faint); line-height: 1.6; margin: 0; }
@media (max-width: 780px) { .services-strip { grid-template-columns: repeat(2, 1fr); } }

/* ══════════ DOVE SIAMO ══════════ */
.dove {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 6px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--wine-deep);
}
.dove__info { padding: 64px 56px; color: var(--white); }
.dove__info h2 { color: var(--white); font-size: clamp(30px, 3.6vw, 44px); margin: 14px 0 22px; }
.dove__info h2 em { font-style: italic; color: var(--blush); }
.dove__list { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.dove__list li { display: flex; gap: 16px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.86); }
.dove__list strong { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--blush); margin-bottom: 4px; }
.dove__map { min-height: 340px; filter: grayscale(0.3) sepia(0.15); }
.dove__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

@media (max-width: 900px) {
  .dove { grid-template-columns: 1fr; }
  .dove__info { padding: 48px 26px; }
}

/* ══════════ CONTATTI CTA ══════════ */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(34px, 5vw, 62px); line-height: 1.05; }
.cta-final h2 em { font-style: italic; color: var(--wine); }
.cta-final p { max-width: 480px; margin: 22px auto 38px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.cta-final__actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ══════════ FOOTER ══════════ */
.site-footer {
  background: var(--wine-deep); color: rgba(255,255,255,0.7);
  padding: 60px 24px 28px;
}
.site-footer__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.site-footer__brand { font-family: 'Cormorant Garamond', serif; color: var(--white); font-size: 22px; }
.site-footer__brand em { font-style: italic; color: var(--blush); }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.site-footer__col a:hover { color: var(--white); }
.site-footer__bottom {
  max-width: 1180px; margin: 40px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.universe-badge { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.65); transition: color .3s; }
.universe-badge:hover { color: var(--white); }
.universe-badge .mark {
  width: 16px; height: 16px; border: 1.4px solid currentColor; border-radius: 50%;
  position: relative;
}
.universe-badge .mark::after {
  content: ""; position: absolute; inset: 3px; border: 1.4px solid currentColor; border-radius: 50%;
}

/* ══════════ WHATSAPP FLOAT ══════════ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 400;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(37,211,102,0.4);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ══════════ MENU PAGE (servizi e prezzi) ══════════ */
.page-header {
  padding: 150px 24px 50px; text-align: center;
}
.page-header .eyebrow { display: block; margin-bottom: 14px; }
.page-header h1 { font-size: clamp(38px, 6vw, 68px); }
.page-header h1 em { font-style: italic; color: var(--wine); }
.page-header p { max-width: 520px; margin: 18px auto 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

.menu-categories { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 64px; }
.menu-category__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 6px; }
.menu-category__head h2 { font-size: clamp(26px, 3.4vw, 36px); white-space: nowrap; }
.menu-category__line { flex: 1; height: 1px; background: var(--line); }
.menu-category__note { color: var(--ink-faint); font-size: 13.5px; margin: 6px 0 22px; font-style: italic; }

.menu-dish-list { display: flex; flex-direction: column; }
.menu-dish {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.menu-dish__info h4 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.menu-dish__info p { margin: 0; font-size: 13px; color: var(--ink-faint); line-height: 1.6; max-width: 440px; }
.menu-dish__price {
  flex-shrink: 0; font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--wine); font-size: 16px; white-space: nowrap;
}

.menu-extra-info {
  max-width: 900px; margin: 50px auto 0; text-align: center;
  display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-faint); padding-top: 30px; border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .menu-dish { flex-direction: column; gap: 4px; }
  .menu-dish__price { order: -1; color: var(--wine); }
}

/* utility */
.loading-shimmer { opacity: 0.4; }
