/* =========================================================
   Atelier Sposa Fashion — stylesheet
   Palette: avorio, tortora, oro, terracotta
   ========================================================= */

:root {
  --ivory: #faf6f1;
  --ivory-soft: #f3ebe2;
  --blush: #efe0d8;
  --charcoal: #2c2521;
  --charcoal-soft: #5a4f47;
  --gold: #b8925f;
  --gold-dark: #96754a;
  --rose: #c98f86;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(44, 37, 33, 0.08);
  --shadow-lg: 0 20px 50px rgba(44, 37, 33, 0.14);
  --radius: 4px;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 18px;
}

.section-lead {
  max-width: 680px;
  color: var(--charcoal-soft);
  font-size: 1.02rem;
  margin-bottom: 20px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

section { padding: 90px 0; }

.section-alt { background: var(--ivory-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s ease;
}

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

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44,37,33,0.06);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--charcoal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 34px; height: 34px;
  border: 1px solid rgba(44,37,33,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.social-icons a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.social-icons svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 600;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--charcoal);
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (solo home, foto fissa in scroll) ---------- */
.hero {
  position: relative;
  min-height: max(46vh, 380px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-parallax {
  background-color: var(--blush);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.hero-parallax::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(44,37,33,0.35) 0%, rgba(44,37,33,0.55) 100%);
}
.hero-parallax.hero-parallax--missing {
  background-image: none !important;
  background: linear-gradient(135deg, var(--blush) 0%, var(--ivory-soft) 100%);
}
.hero-parallax.hero-parallax--missing::after {
  content: "Aggiungi qui la foto: " attr(data-hero-image);
  position: absolute; z-index: 3; bottom: 22px; right: 24px;
  font-size: 0.7rem; color: var(--gold-dark);
  background: rgba(255,255,255,0.9);
  padding: 7px 14px; border-radius: 3px;
}
@media (max-width: 860px) {
  .hero-parallax { background-attachment: scroll; }
}

/* ---------- Fascia titolo (pagine interne, senza foto grande) ---------- */
.page-title-band {
  padding: 65px 0 28px;
  background: linear-gradient(135deg, var(--blush) 0%, var(--ivory-soft) 100%);
  border-bottom: 1px solid rgba(184,146,95,0.25);
  text-align: center;
}
.page-title-band-h {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-top: 10px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  color: var(--white);
}
.hero-content .eyebrow { color: var(--blush); }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--white);
  max-width: 780px;
  margin-bottom: 22px;
}
.hero-text {
  max-width: 560px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Image placeholder (shown until real photos are added) ---------- */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, var(--blush) 0%, var(--ivory-soft) 100%);
  border: 1px solid rgba(184,146,95,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold-dark);
  text-align: center;
  padding: 20px;
}
.img-placeholder svg { width: 34px; height: 34px; opacity: 0.7; }
.img-placeholder span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  word-break: break-all;
}
.ratio-box { position: relative; width: 100%; overflow: hidden; }
.ratio-box img, .ratio-box .img-placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  will-change: transform;
}
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

/* ---------- Hover animation on images ---------- */
.card:hover .ratio-box img,
.card:hover .ratio-box .img-placeholder,
.brand-card:hover .ratio-box img,
.brand-card:hover .ratio-box .img-placeholder,
.split-media:hover img,
.split-media:hover .img-placeholder,
.gallery-grid .ratio-box:hover img,
.gallery-grid .ratio-box:hover .img-placeholder {
  transform: scale(1.09);
  filter: brightness(1.04) saturate(1.08);
}
.testimonial-card:hover .testimonial-avatar img,
.testimonial-card:hover .testimonial-avatar .img-placeholder {
  transform: scale(1.12) rotate(-2deg);
}

/* ---------- About / intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-text .section-title { margin-bottom: 20px; }
.split-text p { color: var(--charcoal-soft); margin-bottom: 16px; }

/* ---------- Cards / offerings ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 50px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  margin-top: 50px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-body { padding: 28px 26px 32px; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card-body p { color: var(--charcoal-soft); font-size: 0.95rem; }

/* ---------- Brand / collection grid ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 50px;
}
.brand-card { text-align: center; }
.brand-card .ratio-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.brand-card h3 { font-size: 1.3rem; letter-spacing: 0.04em; margin-bottom: 10px; text-transform: capitalize; }
.brand-card p { color: var(--charcoal-soft); font-size: 0.94rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.testimonial-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  box-shadow: var(--shadow);
}
.testimonial-card .quote-mark { color: var(--gold); font-family: var(--font-heading); font-size: 2rem; line-height: 1; }
.testimonial-card h4 { font-size: 1rem; margin: 8px 0 10px; }
.testimonial-card p { font-size: 0.88rem; color: var(--charcoal-soft); font-style: italic; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.gallery-grid .ratio-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-band .eyebrow { color: var(--gold); }
.cta-band h2 { color: var(--white); margin-bottom: 18px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.info-list { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark);
}
.info-icon svg { width: 18px; height: 18px; }
.info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.info-item p, .info-item a { color: var(--charcoal-soft); font-size: 0.92rem; }
.info-item a:hover { color: var(--gold-dark); }

.map-frame {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal-soft);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(44,37,33,0.18);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--ivory);
  color: var(--charcoal);
  transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.78rem; color: var(--charcoal-soft); margin-top: 12px; }
.form-status { margin-top: 14px; font-size: 0.85rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #4c7a4f; }
.form-status.err { color: #a4453d; }

/* ---------- Area servita / tag comuni ---------- */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 40px auto 0;
}
.area-tags span {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(184,146,95,0.35);
  background: var(--white);
  color: var(--charcoal-soft);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}
.area-tags span:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}
.area-group-label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 34px 0 0;
}
.area-group-label:first-of-type { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 320px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 15px; height: 15px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--charcoal);
  color: rgba(255,255,255,0.88);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-inner p { font-size: 0.88rem; line-height: 1.6; max-width: 640px; margin: 0; }
.cookie-banner-inner p a { color: var(--gold); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 12px 24px; font-size: 0.72rem; }
.cookie-banner-actions .btn-outline { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.9); }
.cookie-banner-actions .btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 340px);
    height: 100vh;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 40px;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-links { flex-direction: column; gap: 22px; }
  .nav-toggle { display: flex; }
  .split, .split-reverse .split-media, .contact-wrap { grid-template-columns: 1fr; }
  .split, .contact-wrap { display: flex; flex-direction: column; }
  .split-reverse .split-media { order: 0; }
}

@media (max-width: 700px) {
  section { padding: 64px 0; }
  .grid-3, .grid-2, .brand-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
  .hero { min-height: max(42vh, 340px); }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .header-inner { padding: 14px 18px; }
  .brand-name { font-size: 1.25rem; }
}
