:root {
  --ink: #2e2740;
  --muted-ink: #6b6480;
  --paper: #fbf8ff;
  --lilac: #e7ddf5;
  --lilac-soft: #f1eafb;
  --violet: #6b4e9e;
  --violet-deep: #4a3570;
  --berry: #b8407e;
  --gold: #cf9a3a;
  --line: rgba(46, 39, 64, 0.12);
  --shadow: 0 18px 50px rgba(74, 53, 112, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 248, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(120px, 14vw, 160px);
  height: auto;
  border-radius: 10px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--muted-ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--violet);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: end;
  padding: 140px clamp(18px, 5vw, 72px) 72px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(46, 33, 74, 0.86) 0%, rgba(74, 53, 112, 0.62) 45%, rgba(107, 78, 158, 0.12) 100%),
    url("img/saracinesca-teiera.jpeg") center / cover;
}

.hero-content {
  position: relative;
  max-width: 720px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 22px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.96;
}

h2 {
  max-width: 22ch;
  margin-bottom: 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  color: var(--muted-ink);
  font-size: 1rem;
  line-height: 1.7;
}

.hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: #fff;
  color: var(--violet-deep);
  border-color: #fff;
}

.button.secondary {
  color: #fff;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-band {
  background: var(--lilac-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-lead {
  font-size: 1.1rem;
}

/* Chi sono */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.levels {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.levels li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.levels strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  color: var(--violet);
}

.levels span {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Galleria negozio */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Le tre anime del negozio */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.anima-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.anima-num {
  display: inline-block;
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--berry);
}

.anima-card h3 {
  margin-bottom: 6px;
}

.anima-card > p {
  margin-bottom: 16px;
}

.brands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brands li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lilac-soft);
  color: var(--violet-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.brands li.own {
  background: rgba(207, 154, 58, 0.16);
  color: var(--gold);
}

/* Consulenze */
.muted {
  background: var(--lilac);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.more {
  margin-top: 16px;
}

.more > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  color: var(--berry);
  font-weight: 700;
  font-size: 0.9rem;
}

.more > summary::-webkit-details-marker {
  display: none;
}

.more > summary::after {
  content: "↓";
  transition: transform 0.2s ease;
}

.more-collapse {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--berry);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Con JS: da aperta nascondiamo il toggle in alto e mostriamo "Chiudi" in fondo */
.js .more[open] > summary {
  display: none;
}

.js .more[open] .more-collapse {
  display: inline-flex;
}

.more[open] > summary {
  margin-bottom: 12px;
}

.more[open] > summary::after {
  transform: rotate(180deg);
}

.more p,
.more ul {
  font-size: 0.95rem;
}

.more ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted-ink);
  line-height: 1.6;
}

.more ul li {
  margin-bottom: 4px;
}

.more p:last-child {
  margin-bottom: 0;
}

.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-num {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--berry);
}

/* Listino prezzi */
.listino {
  max-width: 820px;
  margin: 52px auto 0;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.listino .section-kicker {
  margin-bottom: 6px;
}

.listino h3 {
  margin-bottom: 22px;
  font-size: 1.9rem;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.price-row:last-child {
  border-bottom: none;
}

.price-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-label {
  font-weight: 600;
  color: var(--ink);
}

.price-detail {
  font-size: 0.85rem;
  color: var(--muted-ink);
}

.price-value {
  flex: none;
  white-space: nowrap;
  text-align: right;
}

.price-value strong {
  color: var(--violet);
  font-weight: 700;
}

.price-value > span {
  margin-left: 4px;
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.price-row.price-head {
  padding: 24px 0 4px;
  border-bottom: none;
}

.price-row.price-head .price-label {
  color: var(--violet-deep);
}

.price-row.price-sub {
  padding-left: 18px;
}

.price-row.price-sub .price-detail {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .price-value {
    text-align: left;
  }
}

/* Recensioni */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review {
  margin: 0;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 22px 24px;
  background: var(--lilac-soft);
}

.review p {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.05rem;
  font-style: italic;
}

.review cite {
  color: var(--violet);
  font-weight: 700;
  font-style: normal;
}

.reviews-note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-ink);
}

/* Poesia */
.poem-section {
  padding: clamp(72px, 10vw, 130px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(46, 33, 74, 0.9), rgba(74, 53, 112, 0.9)),
    url("img/lavanda.jpeg") center / cover fixed;
  color: #fff;
  text-align: center;
}

.poem-inner {
  max-width: 720px;
}

.poem-section .section-kicker {
  color: var(--gold);
}

.poem-title {
  margin: 0 auto 28px;
  max-width: 18ch;
  color: #fff;
}

.poem {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
}

/* Contatti */
.contact-section {
  background: var(--violet-deep);
  color: #fff;
}

.contact-section h2 {
  color: #fff;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
}

.contact-panel strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
}

.contact-panel span {
  color: rgba(255, 255, 255, 0.82);
}

.contact-panel a {
  color: var(--gold);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-panel .hours {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  color: #fff;
}

/* Social */
.socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-panel .socials {
  margin-top: 6px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  overflow-wrap: normal;
  transition: background 0.15s ease, transform 0.15s ease;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.socials svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* nel footer mostriamo solo le icone, tonde */
.site-footer .socials a {
  width: 40px;
  padding: 0;
  justify-content: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: #241b39;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a {
  color: #fff;
  font-weight: 700;
}

/* Farfalle animate */
.butterflies {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero .hero-content {
  z-index: 2;
}

.poem-section .poem-inner {
  position: relative;
  z-index: 2;
}

.bfly {
  position: absolute;
  width: 44px;
  color: rgba(255, 255, 255, 0.5);
  animation: bfly-drift 12s ease-in-out infinite;
  will-change: transform;
}

.bfly svg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center;
  animation: bfly-flutter 0.5s ease-in-out infinite;
}

.bfly.b1 { top: 17%; left: 7%;  width: 40px; animation-duration: 13s; }
.bfly.b2 { top: 30%; left: 60%; width: 28px; animation-duration: 10s; animation-delay: -3s; color: rgba(207, 154, 58, 0.6); }
.bfly.b3 { top: 63%; left: 22%; width: 52px; animation-duration: 15s; animation-delay: -6s; }
.bfly.b4 { top: 22%; left: 82%; width: 32px; animation-duration: 11s; animation-delay: -2s; }
.bfly.b5 { top: 70%; left: 72%; width: 44px; animation-duration: 14s; animation-delay: -5s; color: rgba(207, 154, 58, 0.5); }

.bfly.b2 svg, .bfly.b4 svg { animation-duration: 0.42s; }
.bfly.b3 svg, .bfly.b5 svg { animation-duration: 0.6s; }

@keyframes bfly-drift {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  50%  { transform: translate(26px, -22px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(-4deg); }
}

@keyframes bfly-flutter {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(0.5); }
}

/* Comparsa allo scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Rispetta chi preferisce meno movimento */
@media (prefers-reduced-motion: reduce) {
  .butterflies {
    display: none;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 880px) {
  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px clamp(16px, 5vw, 32px);
  }

  .brand-logo {
    width: 96px;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  .hero {
    min-height: 80vh;
    padding-top: 56px;
  }

  .intro-grid,
  .anime-grid,
  .service-grid,
  .reviews,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  /* fixed backgrounds jitter on mobile */
  .poem-section {
    background-attachment: scroll;
  }
}

@media (max-width: 520px) {
  .main-nav {
    font-size: 0.86rem;
    gap: 10px 16px;
  }

  .button {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .site-footer {
    flex-direction: column;
  }
}
