/* ============================================================
   SallyPicture — Landing page
   Palette lilla / viola / bianco · stile delicato e celestiale
   ============================================================ */

:root {
  /* Palette */
  --white: #ffffff;
  --warm-white: #fdfcff;
  --lilac-light: #f3eefb;   /* sezioni morbide */
  --lilac-soft: #e9e0f7;
  --lilac: #c9b8ea;
  --violet: #9b7fd4;        /* dettagli, bottoni, icone */
  --violet-deep: #7a5fb8;
  --text: #3a3450;          /* viola molto scuro per i testi */
  --text-soft: #6a627e;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  /* Tipografia */
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Poppins', system-ui, sans-serif;

  /* Misure */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(123, 95, 184, 0.12);
  --shadow-soft: 0 8px 28px rgba(123, 95, 184, 0.08);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p { color: var(--text-soft); }
a { color: inherit; text-decoration: none; }

section { padding: 92px 0; position: relative; }

/* ---------- Tag e intestazioni di sezione ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: .8rem;
  font-weight: 500;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-sub { font-size: 1.05rem; margin-top: .6rem; }
.center { text-align: center; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  padding: .8rem 1.7rem; border-radius: 50px; border: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .28); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(37, 211, 102, .36); }
.btn-ghost { background: var(--lilac-light); color: var(--violet-deep); }
.btn-ghost:hover { background: var(--lilac-soft); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--violet-deep); border: 1.5px solid var(--lilac); }
.btn-outline:hover { background: var(--lilac-light); transform: translateY(-3px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253, 252, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(155, 127, 212, .12);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--violet-deep); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-size: .94rem; color: var(--text); position: relative; transition: color .2s; }
.main-nav a:not(.nav-cta):hover { color: var(--violet); }
.main-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--violet); transition: width .25s ease; border-radius: 2px;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: .55rem 1.3rem; font-size: .88rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--violet-deep); border-radius: 3px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 150px 0 100px;
  background:
    radial-gradient(ellipse 70% 60% at 75% 20%, rgba(201, 184, 234, .35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(243, 238, 251, .9), transparent 55%),
    var(--warm-white);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); margin-bottom: 1rem; font-weight: 500; }
.hero h1 { margin-bottom: 1.2rem; }
.hero-sub { font-size: 1.12rem; max-width: 520px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.trust-text { font-size: .86rem; color: var(--violet-deep); opacity: .85; }

.hero-visual { display: flex; justify-content: center; }
.hero-logo-halo {
  position: relative; width: min(420px, 80vw); aspect-ratio: 1;
  display: grid; place-items: center;
}
.hero-logo-halo::before {
  content: ''; position: absolute; inset: -6%;
  background: radial-gradient(circle, rgba(201, 184, 234, .45), transparent 65%);
  border-radius: 50%; filter: blur(6px); animation: pulse 6s ease-in-out infinite;
}
.hero-logo-halo img { width: 100%; border-radius: 50%; position: relative; z-index: 1; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* stelline decorative */
.stars-decor { position: absolute; inset: 0; pointer-events: none; }
.stars-decor .star { position: absolute; color: var(--lilac); opacity: .7; font-size: 1.1rem; animation: twinkle 4s ease-in-out infinite; }
.stars-decor.sm .star { color: var(--violet); }
.star.s1 { top: 14%; left: 8%; font-size: 1.4rem; } .star.s2 { top: 22%; right: 12%; }
.star.s3 { top: 60%; left: 6%; font-size: .9rem; } .star.s4 { bottom: 18%; right: 8%; font-size: 1.3rem; }
.star.s5 { top: 45%; right: 4%; } .star.s6 { bottom: 30%; left: 14%; font-size: .8rem; }
@keyframes twinkle { 0%,100% { opacity: .3; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }

/* ============================================================
   BIO
   ============================================================ */
.bio { background: var(--white); }
.bio-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.bio-photo { display: flex; justify-content: center; }
.photo-placeholder {
  width: 100%; max-width: 360px; aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--lilac-light), var(--lilac-soft));
  display: grid; place-content: center; gap: .5rem; text-align: center;
  color: var(--violet); box-shadow: var(--shadow-soft);
}
.photo-placeholder span { font-size: 3rem; }
.photo-placeholder small { color: var(--violet-deep); opacity: .7; font-size: .85rem; }
.bio-photo-frame {
  position: relative; width: 100%; max-width: 360px;
}
.bio-photo-frame::before {
  content: ''; position: absolute; inset: -16px -16px 16px 16px;
  border: 1.5px solid var(--lilac); border-radius: var(--radius);
  z-index: 0; transition: transform .5s ease;
}
.bio-photo-frame::after {
  content: '✦'; position: absolute; top: -14px; left: -12px; z-index: 2;
  color: var(--violet); font-size: 1.4rem; animation: twinkle 4s ease-in-out infinite;
}
.bio-photo-frame:hover::before { transform: translate(6px, -6px); }
.bio-img {
  position: relative; z-index: 1;
  width: 100%; max-width: 360px; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  transition: transform .4s ease, box-shadow .4s ease;
}
.bio-img:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.bio-text h2 { margin-bottom: 1.1rem; }
.bio-text p { font-size: 1.1rem; margin-bottom: 1.8rem; }

/* ============================================================
   SERVIZI
   ============================================================ */
.services { background: var(--lilac-light); overflow: hidden; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; overflow: hidden;
  background: var(--white); border-radius: var(--radius); padding: 36px 30px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(155, 127, 212, .08);
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease;
}
/* stagger d'ingresso delle card */
.service-grid .card.reveal { transition-property: opacity, transform, box-shadow; }
.service-grid .card:nth-child(1) { transition-delay: .00s; }
.service-grid .card:nth-child(2) { transition-delay: .08s; }
.service-grid .card:nth-child(3) { transition-delay: .16s; }
.service-grid .card:nth-child(4) { transition-delay: .24s; }
.service-grid .card:nth-child(5) { transition-delay: .32s; }
.service-grid .card:nth-child(6) { transition-delay: .40s; }
/* alone luminoso che segue l'hover */
.card::before {
  content: ''; position: absolute; top: -40%; left: -30%; width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(201,184,234,.45), transparent 65%);
  opacity: 0; transform: scale(.6); transition: opacity .5s ease, transform .6s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; transform: scale(1); }
.card-icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.6rem; color: var(--violet); margin-bottom: 1.1rem;
  background: linear-gradient(145deg, var(--lilac-light), var(--lilac-soft));
  box-shadow: 0 6px 16px rgba(155,127,212,.18);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), background .4s ease, color .4s ease;
}
.card:hover .card-icon {
  transform: rotate(-8deg) scale(1.12);
  background: linear-gradient(145deg, var(--violet), var(--violet-deep));
  color: #fff;
}
.card h3 { margin-bottom: .6rem; transition: color .3s ease; }
.card:hover h3 { color: var(--violet-deep); }
.card p { font-size: .96rem; margin-bottom: 1.2rem; }
.card-link {
  color: var(--violet); font-weight: 500; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .25rem; transition: color .2s, gap .25s;
}
.card:hover .card-link { gap: .6rem; color: var(--violet-deep); }

/* ============================================================
   PORTFOLIO — copertine per categoria
   ============================================================ */
.portfolio { background: var(--white); position: relative; }

.cat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.cat-card {
  position: relative; overflow: hidden; cursor: pointer;
  flex: 0 1 320px; max-width: 360px; aspect-ratio: 4 / 5;
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease;
  transition-delay: var(--d, 0s);
}
.cat-card-media { position: absolute; inset: 0; }
.cat-card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  transition: transform .9s cubic-bezier(.22,.61,.36,1), filter .5s ease;
}
.cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58,52,80,.05) 30%, rgba(58,52,80,.78) 100%);
  transition: background .5s ease;
}
.cat-card-text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 24px 26px; color: #fff;
  transform: translateY(6px); transition: transform .5s ease;
}
.cat-card-text h3 {
  color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .15rem;
  text-shadow: 0 2px 14px rgba(43,38,64,.5);
}
.cat-card-count {
  display: inline-block; font-family: var(--font-body); font-size: .8rem;
  letter-spacing: .08em; opacity: 0; transform: translateX(-8px);
  transition: opacity .45s ease, transform .45s ease;
}
.cat-card::after {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit;
  box-shadow: inset 0 0 0 0 rgba(255,255,255,.6);
  transition: box-shadow .5s ease; pointer-events: none;
}
.cat-card:hover, .cat-card:focus-visible {
  transform: translateY(-8px); box-shadow: var(--shadow); outline: none;
}
.cat-card:hover .cat-card-media img,
.cat-card:focus-visible .cat-card-media img { transform: scale(1.08); }
.cat-card:hover .cat-card-overlay,
.cat-card:focus-visible .cat-card-overlay {
  background: linear-gradient(180deg, rgba(123,95,184,.15) 20%, rgba(58,52,80,.82) 100%);
}
.cat-card:hover .cat-card-text,
.cat-card:focus-visible .cat-card-text { transform: translateY(0); }
.cat-card:hover .cat-card-count,
.cat-card:focus-visible .cat-card-count { opacity: .92; transform: translateX(0); }
.cat-card:hover::after,
.cat-card:focus-visible::after { box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }

.gallery-note { text-align: center; margin-top: 36px; font-size: .92rem; }
.gallery-note a { color: var(--violet); font-weight: 500; }

/* ---- Pannello categoria (tutte le foto) ---- */
.cat-overlay {
  position: fixed; inset: 0; z-index: 180; display: none;
  background: rgba(43, 38, 64, .55); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s ease;
}
.cat-overlay.open { display: block; opacity: 1; }
.cat-panel {
  position: absolute; inset: 4vh 0 0; margin: 0 auto; width: 100%;
  background: var(--warm-white);
  border-radius: 30px 30px 0 0; box-shadow: 0 -20px 60px rgba(43,38,64,.3);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(40px); transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.cat-overlay.open .cat-panel { transform: translateY(0); }
.cat-panel-head {
  text-align: center; padding: 30px 20px 18px; position: relative;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(201,184,234,.35), transparent 70%),
    var(--warm-white);
  border-bottom: 1px solid rgba(155,127,212,.12);
}
.cat-panel-head h2 { margin-top: .1rem; }
.cat-close {
  position: absolute; top: 14px; right: 18px; z-index: 5;
  width: 52px; height: 52px; border: none; cursor: pointer;
  background: linear-gradient(145deg, var(--violet), var(--violet-deep)); color: #fff;
  border-radius: 50%; font-size: 2rem; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(123,95,184,.45);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cat-close:hover { transform: rotate(90deg) scale(1.08); box-shadow: 0 12px 28px rgba(123,95,184,.55); }
.cat-close:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.cat-gallery {
  flex: 1; min-height: 0;
  overflow-y: auto; padding: 26px clamp(16px, 4vw, 48px) 60px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; align-content: start;
}
.cat-shot {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-soft); background: var(--lilac-light); position: relative;
  opacity: 0; transform: translateY(18px) scale(.97);
  animation: shotIn .55s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes shotIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.cat-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.cat-shot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, transparent 60%, rgba(58,52,80,.28));
  opacity: 0; transition: opacity .4s ease;
}
.cat-shot:hover img, .cat-shot:focus-visible img { transform: scale(1.07); }
.cat-shot:hover::after, .cat-shot:focus-visible::after { opacity: 1; }
.cat-shot:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ============================================================
   MOSTRA / GALLERIA SCORREVOLE (marquee infinito)
   ============================================================ */
.showcase {
  background:
    radial-gradient(ellipse 60% 50% at 18% 0%, rgba(201, 184, 234, .28), transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 100%, rgba(243, 238, 251, .9), transparent 55%),
    var(--warm-white);
  overflow: hidden;
}
/* fa "respirare" il marquee a tutta larghezza, fuori dal container */
.marquee {
  display: flex;
  flex-direction: column;
  gap: 22px;
  /* dissolvenza elegante ai bordi sinistro e destro */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-row {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-row[data-row="0"] { animation: marquee-left 75s linear infinite; }
.marquee-row[data-row="1"] { animation: marquee-right 68s linear infinite; }
/* pausa morbida quando si passa sopra alla galleria */
.marquee:hover .marquee-row,
.marquee:focus-within .marquee-row { animation-play-state: paused; }

@keyframes marquee-left  { from { transform: translateX(0); }      to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); }   to { transform: translateX(0); } }

.frame {
  position: relative;
  flex: 0 0 auto;
  height: 300px;
  margin-right: 22px;           /* il margine (non gap) garantisce un loop perfettamente continuo */
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--lilac-light);
  box-shadow: var(--shadow-soft);
  transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s ease;
}
.frame img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
  user-select: none;
}
.frame::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  background: linear-gradient(180deg, transparent 55%, rgba(58, 52, 80, .32));
  opacity: 0;
  transition: opacity .45s ease;
}
.frame:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: var(--shadow);
  z-index: 2;
}
.frame:hover::after { opacity: 1; }

.showcase-note { text-align: center; margin-top: 40px; font-size: .92rem; color: var(--text-soft); }
.showcase-note a { color: var(--violet); font-weight: 500; }

/* ============================================================
   COME FUNZIONA
   ============================================================ */
.how { background: var(--lilac-light); overflow: hidden; }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 48px;
  position: relative;
}
/* linea che collega i passaggi */
.steps::before {
  content: ''; position: absolute; top: 60px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--lilac) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step {
  background: var(--white); border-radius: var(--radius); padding: 40px 26px 32px; text-align: center;
  box-shadow: var(--shadow-soft); position: relative; z-index: 1;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease;
}
.step.reveal { transition-property: opacity, transform, box-shadow; }
.steps .step:nth-child(2) { transition-delay: .1s; }
.steps .step:nth-child(3) { transition-delay: .2s; }
.steps .step:nth-child(4) { transition-delay: .3s; }
.step:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.step-icon {
  position: absolute; top: 16px; right: 18px; font-size: 1.1rem; color: var(--lilac);
  transition: transform .6s ease, color .4s ease;
}
.step:hover .step-icon { transform: rotate(20deg) scale(1.25); color: var(--violet); }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 50%; background: linear-gradient(145deg, var(--violet), var(--violet-deep));
  color: #fff; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600;
  box-shadow: 0 8px 20px rgba(123,95,184,.35); position: relative;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.step-num::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--lilac); opacity: 0; transform: scale(.8);
  transition: opacity .4s ease, transform .5s ease;
}
.step:hover .step-num { transform: scale(1.1); }
.step:hover .step-num::after { opacity: 1; transform: scale(1); }
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { font-size: .92rem; }

/* ============================================================
   CTA FORTE
   ============================================================ */
.cta-strong { padding: 70px 0; background: var(--white); }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--lilac-light), var(--lilac-soft) 60%, #ded0f5);
  border-radius: 32px; padding: 64px 30px; box-shadow: var(--shadow-soft);
}
.cta-card h2 { margin-bottom: 1rem; }
.cta-card p { max-width: 560px; margin: 0 auto 2rem; font-size: 1.08rem; color: var(--text); }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact { background: var(--lilac-light); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 1.6rem; }
.contact-list { list-style: none; margin-bottom: 2rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; font-size: 1rem; }
.contact-list .ci { width: 40px; height: 40px; display: grid; place-items: center; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-soft); }
.contact-list a { color: var(--text); transition: color .2s; }
.contact-list a:hover { color: var(--violet); }

.contact-form { background: var(--white); padding: 38px 34px; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.contact-form h3 { margin-bottom: 1.2rem; }
.contact-form label { display: block; font-size: .85rem; color: var(--violet-deep); margin-bottom: 1rem; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: .35rem; padding: .75rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--lilac-soft); background: var(--warm-white); font-family: var(--font-body);
  font-size: .95rem; color: var(--text); font-weight: 300; transition: border .2s; resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--violet); }
.contact-form .btn { width: 100%; margin-top: .4rem; }
.form-note { display: block; text-align: center; margin-top: .8rem; color: var(--text-soft); font-size: .8rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #2b2640; color: #d9d3ea; padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { width: 54px; height: 54px; border-radius: 50%; margin-bottom: 1rem; }
.footer-brand p { color: #b7afce; max-width: 280px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.site-footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: .5rem; }
.footer-links a, .footer-contact a { color: #c8c1dd; font-size: .92rem; transition: color .2s; width: fit-content; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: .8rem; margin-top: .9rem; }
.footer-social a {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #d9d3ea; font-weight: 500; font-size: .9rem;
  padding: .5rem .9rem .5rem .6rem; border-radius: 50px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}
.footer-social a svg { transition: transform .4s ease; }
.footer-social a:hover {
  transform: translateY(-3px); color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  box-shadow: 0 10px 22px rgba(123,95,184,.4);
}
.footer-social a:hover svg { transform: scale(1.15) rotate(-6deg); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; }
.footer-bottom p { color: #9a93b5; font-size: .85rem; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .25s ease; animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse { 0% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(43, 38, 64, .9);
  display: none; align-items: center; justify-content: center; padding: 5vw;
  backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-content { max-width: 90vw; max-height: 85vh; }
.lightbox-content img { max-width: 100%; max-height: 85vh; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lightbox-content .ph-large {
  width: min(70vw, 480px); aspect-ratio: 1; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--lilac-light), var(--lilac-soft));
  display: grid; place-content: center; gap: .6rem; text-align: center; color: var(--violet);
}
.lightbox-content .ph-large span { font-size: 4rem; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px; background: none; border: none; color: #fff;
  font-size: 3rem; line-height: 1; cursor: pointer; transition: transform .2s;
}
.lightbox-close:hover { transform: rotate(90deg); }

/* ============================================================
   ANIMAZIONI REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .bio-inner { grid-template-columns: 1fr; }
  .bio-photo { order: -1; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .cat-card { flex-basis: 280px; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .frame { height: 240px; }
  .cat-panel { inset: 2vh 0 0; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }
  /* Menu mobile */
  .main-nav {
    position: fixed; top: 74px; left: 0; right: 0;
    background: var(--warm-white); flex-direction: column; align-items: stretch;
    gap: 0; padding: 0 5%; max-height: 0; overflow: hidden;
    box-shadow: var(--shadow-soft); transition: max-height .35s ease, padding .35s ease;
  }
  .main-nav.open { max-height: 420px; padding: 1rem 5% 1.6rem; }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(155,127,212,.1); }
  .main-nav a::after { display: none; }
  .nav-cta { margin-top: .8rem; text-align: center; border-bottom: none !important; }
  .hamburger { display: flex; }

  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cat-card { flex-basis: 100%; max-width: 420px; aspect-ratio: 5 / 4; }
  .cat-card-count { opacity: .92; transform: none; }
  .cat-gallery { grid-template-columns: repeat(2, 1fr); padding-bottom: 80px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .wa-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .frame { height: 190px; margin-right: 14px; }
  .marquee { gap: 14px; }
}

/* Riduce le animazioni se l'utente lo preferisce */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
