/* ===================================================================
   Riflessi di Cristina Residori — Gussola (CR)
   Foglio di stile condiviso
=================================================================== */

:root {
  --color-bg: #fbf7f4;
  --color-bg-alt: #f3e9e4;
  --color-charcoal: #2b2523;
  --color-text: #3a332f;
  --color-text-light: #6b6058;
  --color-rose: #b3242c;
  --color-rose-dark: #7e1a20;
  --color-gold: #d4956a;
  --color-white: #ffffff;
  --color-border: #e6d9d1;

  --font-title: "Playfair Display", "Georgia", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --shadow-soft: 0 10px 30px rgba(43, 37, 35, 0.08);
  --shadow-strong: 0 20px 50px rgba(43, 37, 35, 0.16);
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--color-charcoal);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-rose-dark);
  margin-bottom: 0.9rem;
  font-weight: 500;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--color-text-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-rose-dark);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}

.btn-outline:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-charcoal);
}

.btn-light:hover {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(43, 37, 35, 0.08);
  border-bottom-color: var(--color-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-charcoal);
}

.logo span {
  color: var(--color-rose-dark);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-rose-dark);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-rose-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 600;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--color-charcoal);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 37, 35, 0.55) 0%, rgba(43, 37, 35, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-content .eyebrow {
  color: var(--color-gold);
}

.hero-content h1 {
  color: var(--color-white);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.page-hero {
  position: relative;
  padding: 8rem 0 5rem;
  color: var(--color-white);
  overflow: hidden;
}

.page-hero .hero-bg::after {
  background: linear-gradient(180deg, rgba(43, 37, 35, 0.6) 0%, rgba(43, 37, 35, 0.78) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

/* ---------- Grids / cards ---------- */
.grid {
  display: grid;
  gap: 2rem;
}

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

.home-gallery-scroll {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.home-gallery-scroll img {
  flex: 0 0 auto;
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
  scroll-snap-align: start;
}

.home-gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.home-gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}

@media (max-width: 640px) {
  .home-gallery-scroll img {
    width: 200px;
    height: 260px;
  }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-rose-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.service-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

@media (max-width: 640px) {
  .service-card img {
    height: 260px;
  }
}

.service-card {
  padding: 0;
  overflow: hidden;
}

.service-card .service-body {
  padding: 1.8rem;
}

.service-price {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-title);
  color: var(--color-rose-dark);
  font-size: 1.05rem;
}

/* ---------- Split / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.stat-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ---------- Founder quote ---------- */
.founder-quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.founder-quote blockquote {
  margin: 0 0 1.5rem;
  padding: 0;
}

.founder-quote blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-title);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.founder-quote blockquote p {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--color-charcoal);
  line-height: 1.55;
  margin: 0;
}

.founder-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-rose-dark);
}

.stat-row .stat-num {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--color-rose-dark);
  display: block;
}

.stat-row .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 1.2rem;
  border: 4px solid var(--color-bg-alt);
}

.team-role {
  color: var(--color-rose-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
  display: block;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

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

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

/* Sezione Eventi: mostra le foto intere senza ritaglio */
#eventi .gallery-item {
  aspect-ratio: auto;
}

#eventi .gallery-item img {
  height: auto;
  object-fit: contain;
  background: var(--color-bg-alt);
}

.gallery-item .gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

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

/* ---------- Gallery by service ---------- */
.gallery-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.gallery-jump a {
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  transition: border-color var(--transition), color var(--transition);
}

.gallery-jump a:hover {
  border-color: var(--color-rose-dark);
  color: var(--color-rose-dark);
}

.service-gallery-block {
  margin-bottom: 3.5rem;
  scroll-margin-top: 6rem;
}

.service-gallery-block:last-child {
  margin-bottom: 0;
}

.service-gallery-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.service-gallery-title::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--color-rose-dark);
  flex-shrink: 0;
}

.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-gallery-grid .gallery-item {
  aspect-ratio: 4 / 5;
}

/* ---------- Instagram feed ---------- */
.instagram-feed-wrap {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-white);
  padding: 1.5rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.testimonial-card .stars {
  color: var(--color-gold);
  margin-bottom: 0.8rem;
  letter-spacing: 0.15em;
}

.testimonial-author {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--color-charcoal);
  font-size: 0.9rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 4.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--color-white);
}

.cta-band p {
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 1.8rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.info-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-rose-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-list strong {
  display: block;
  color: var(--color-charcoal);
  margin-bottom: 0.2rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: none;
  width: 100%;
  height: 320px;
}

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-charcoal);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-rose-dark);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: -0.4rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.form-check input[type="checkbox"] {
  width: auto;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--color-rose-dark);
}

.form-check label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.form-check label a {
  color: var(--color-rose-dark);
  text-decoration: underline;
}

/* ---------- Hours table ---------- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-light);
}

.hours-table tr.closed td:last-child {
  color: var(--color-rose-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: 0.9rem;
  display: block;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.social-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.social-row a:hover {
  background: var(--color-rose-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 400;
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.9);
  padding: 1.2rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 620px;
}

.cookie-banner a {
  color: var(--color-gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- 404 page ---------- */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page .error-code {
  font-family: var(--font-title);
  font-size: clamp(5rem, 15vw, 9rem);
  color: var(--color-rose-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.2rem;
}

.legal-content ul {
  padding-left: 1.3rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split img { height: 340px; }
  .split.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.8rem;
    padding: 2rem 2.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-cta .btn-outline {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; }
  .service-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
  .section { padding: 3.5rem 0; }
}
