/* ================================================
   STUDIO NOTARILE CARAMMA – Stylesheet
   Palette: Navy #1a3a5c · Grigio #808285 · Bianco #ffffff
   ================================================ */

/* ---- Font self-hosted ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy:        #1a3a5c;
  --navy-dark:   #0f2438;
  --navy-mid:    #234e78;
  --grey:        #808285;
  --grey-light:  #c8cdd2;
  --grey-pale:   #f0f2f4;
  --white:       #ffffff;
  --text:        #2a2d30;
  --text-muted:  #808285;
  --border:      #dde1e6;
  --bg:          #f8f9fa;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;

  --shadow-sm:   0 1px 4px rgba(26,58,92,.07);
  --shadow-md:   0 4px 20px rgba(26,58,92,.10);

  --transition:  .3s cubic-bezier(.4,0,.2,1);
  --container:   1120px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--white); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
ul { list-style: none; }

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  padding: .5rem 1rem; background: var(--navy); color: var(--white);
  border-radius: var(--radius-sm); font-size: .875rem; z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ================================================
   COOKIE BANNER
   ================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(15,36,56,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,.85);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform .4s ease;
}
.cookie-banner.is-hidden { transform: translateY(110%); }

.cookie-banner__text { flex: 1; font-size: .85rem; line-height: 1.6; min-width: 240px; }
.cookie-banner__link { color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: .75rem; flex-shrink: 0; }

.cookie-banner__btn {
  padding: .5rem 1.25rem; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: .82rem; font-weight: 500;
  cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.cookie-banner__btn--primary { background: var(--white); color: var(--navy); border: 1.5px solid var(--white); }
.cookie-banner__btn--primary:hover { background: var(--grey-pale); }
.cookie-banner__btn--outline { background: transparent; color: rgba(255,255,255,.7); border: 1.5px solid rgba(255,255,255,.3); }
.cookie-banner__btn--outline:hover { border-color: rgba(255,255,255,.6); color: var(--white); }

/* ================================================
   BURGER FISSO
   ================================================ */
.burger {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none;
  cursor: pointer; padding: 0;
}
.burger__line {
  display: block; width: 100%; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
  transform-origin: center;
}
/* Burger scuro sulle sezioni chiare */
body.burger--dark .burger__line { background: var(--navy); }

.burger.is-open .burger__line:nth-child(1) { transform: translateY(9.25px) rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-9.25px) rotate(-45deg); }

/* ================================================
   PANNELLO LATERALE
   ================================================ */
.side-panel {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
}
.side-panel.is-open { display: block; }

.side-panel__overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,24,44,.5);
  animation: fadeIn .3s ease forwards;
}

.side-panel__nav {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 88vw;
  background: rgba(10,24,44,.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 2rem 2.5rem;
  display: flex; flex-direction: column; gap: 2rem;
  overflow-y: auto;
  animation: slideIn .35s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.side-panel__close {
  align-self: flex-end; background: none; border: none;
  font-size: 1.25rem; cursor: pointer;
  color: rgba(255,255,255,.5); padding: .25rem;
  transition: color var(--transition);
}
.side-panel__close:hover { color: var(--white); }

.side-panel__links { display: flex; flex-direction: column; gap: .25rem; flex: 1; }

.panel__link {
  display: block; padding: .875rem 0;
  font-size: 1.1rem; font-weight: 300;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color var(--transition), padding-left var(--transition);
  letter-spacing: .04em;
}
.panel__link:hover { color: var(--white); padding-left: .5rem; }

.side-panel__cta-row {
  display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem;
}
.panel__link--cta,
.panel__link--crm {
  display: block; width: 100%;
  padding: .75rem 1.25rem;
  background: rgba(255,255,255,.12);
  color: var(--white); border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.25);
  font-size: .9rem; font-weight: 500; text-align: center;
  transition: background var(--transition);
}
.panel__link--cta:hover,
.panel__link--crm:hover { background: rgba(255,255,255,.22); }

.side-panel__contacts {
  font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.9;
}
.side-panel__contacts a { color: rgba(255,255,255,.65); text-decoration: none; white-space: nowrap; }

/* ================================================
   OVERLAY LO STUDIO
   ================================================ */
.studio-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0; z-index: 300;
}
.studio-overlay.is-open { display: block; }

.studio-overlay__bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,24,44,.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .3s ease forwards;
}

.studio-overlay__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 680px; max-width: 95vw;
  background: var(--white); overflow-y: auto;
  animation: slideIn .35s cubic-bezier(.4,0,.2,1) forwards;
}

.studio-overlay__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; font-size: 1.25rem;
  cursor: pointer; color: var(--grey); padding: .5rem;
  transition: color var(--transition); z-index: 1;
}
.studio-overlay__close:hover { color: var(--navy); }

.studio-overlay__content { padding: 4rem 3rem 3rem; }
.studio-overlay__header { margin-bottom: 2.5rem; }
.studio-overlay__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400; color: var(--navy); margin-top: .5rem;
}

/* ================================================
   SEZIONI COMUNI
   ================================================ */
.section { padding: 6rem 0; }
.section--alt { background: var(--bg); }

.section__header { text-align: center; margin-bottom: 3.5rem; }

.section__eyebrow {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); margin-bottom: .75rem;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400; color: var(--navy); line-height: 1.2; margin-bottom: 1rem;
}
.section__subtitle { font-size: 1rem; color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease calc(var(--i, 0) * 80ms),
              transform .5s ease calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end; justify-content: flex-start; overflow: hidden;
}
.hero__bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('img/hero-angera.png');
  background-size: cover;
  background-position: center center;
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(145deg, rgba(15,36,56,.92) 0%, rgba(26,58,92,.82) 55%, rgba(35,78,120,.75) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vh, 5rem);
  max-width: var(--container); width: 100%; margin: 0 auto;
}

@media (max-width: 600px) {
  .hero {
    align-items: flex-end;
    justify-content: center;
  }
  .hero__content {
    text-align: center;
    padding-bottom: 4rem;
    display: flex;
    justify-content: center;
  }
  .hero__identity {
    gap: 1rem;
  }
  .hero__logo-mark {
    width: 56px;
  }
  .hero__scroll {
    display: none;
  }
  .hero__name--first,
  .hero__name--last {
    font-size: 1rem;
  }
  .hero__name--role {
    font-size: .6rem;
  }
}

.hero__identity {
  display: flex; align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.hero__logo-mark {
  width: clamp(70px, 10vw, 120px); height: auto;
  filter: brightness(0) invert(1); opacity: .85;
  flex-shrink: 0;
}

.hero__vline {
  width: 1px;
  height: clamp(60px, 8vw, 100px);
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

.hero__name {
  display: flex; flex-direction: column;
  gap: .1em;
}
.hero__name--role {
  font-family: var(--font-sans); font-weight: 300;
  font-size: clamp(.65rem, 1.5vw, .9rem);
  color: rgba(255,255,255,.5);
  letter-spacing: .22em; text-transform: uppercase;
}
.hero__name--first,
.hero__name--last {
  font-family: var(--font-sans); font-weight: 300;
  font-size: clamp(1.1rem, 3vw, 2rem);
  color: rgba(255,255,255,.9);
  letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.2;
}

.hero__scroll {
  display: none;
}
.hero__scroll-line {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), rgba(255,255,255,0));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .4; }
  50%      { opacity: 1; }
}

/* ================================================
   HERO — ANIMAZIONE ENTRATA
   ================================================ */
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroLineGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero--animated .hero__logo-mark {
  opacity: 0;
  animation: heroFadeIn .7s cubic-bezier(.4,0,.2,1) .1s forwards;
}
.hero--animated .hero__vline {
  transform-origin: top;
  transform: scaleY(0);
  animation: heroLineGrow .5s cubic-bezier(.4,0,.2,1) .5s forwards;
}
.hero--animated .hero__name--role {
  opacity: 0;
  animation: heroSlideRight .5s cubic-bezier(.4,0,.2,1) .85s forwards;
}
.hero--animated .hero__name--first {
  opacity: 0;
  animation: heroFadeUp .55s cubic-bezier(.4,0,.2,1) 1.05s forwards;
}
.hero--animated .hero__name--last {
  opacity: 0;
  animation: heroFadeUp .55s cubic-bezier(.4,0,.2,1) 1.25s forwards;
}

/* ================================================
   SETTORI
   ================================================ */
.settori__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px; background: var(--border);
  border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
}

.settore-card {
  background: var(--white);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 3px solid var(--navy);
  display: flex; flex-direction: column; gap: 1rem;
  transition: background .25s ease;
}
.settore-card:hover,
.settore-card.is-previewed { background: var(--navy); }
.settore-card:hover .settore-card__title,
.settore-card:hover .settore-card__text,
.settore-card:hover .settore-card__link,
.settore-card.is-previewed .settore-card__title,
.settore-card.is-previewed .settore-card__text,
.settore-card.is-previewed .settore-card__link { color: rgba(255,255,255,.85); }
.settore-card:hover .settore-card__icon,
.settore-card.is-previewed .settore-card__icon { color: rgba(255,255,255,.9); }

.settore-card__icon {
  width: 28px; height: 28px;
  color: var(--navy);
  flex-shrink: 0;
  transition: color .25s ease;
}
.settore-card__icon svg { width: 100%; height: 100%; }

.settore-card__num { display: none; }
.settore-card__title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 400; color: var(--navy); line-height: 1.3; transition: color .25s ease; }
.settore-card__text { font-size: .875rem; color: var(--text-muted); line-height: 1.6; flex: 1; transition: color .25s ease; }
.settore-card__link { font-size: .82rem; font-weight: 500; color: var(--navy); transition: color .25s ease; margin-top: auto; }

/* ================================================
   SERVIZI ONLINE – card picker + form panels
   ================================================ */

/* fix: hidden attribute must always win over display */
[hidden] { display: none !important; }

/* Card picker grid */
.svc__picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: 2rem;
}

.svc__pick-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem .875rem;
  display: flex; flex-direction: column; gap: .6rem;
  cursor: pointer; text-align: left;
  font-family: var(--font-sans);
  transition: border-color .2s ease, background .2s ease;
}
@media (hover: hover) {
  .svc__pick-card:hover { border-color: var(--navy); }
}
.svc__pick-card.is-active { background: var(--navy); border-color: var(--navy); }
.svc__pick-card.is-active .svc__pick-title,
.svc__pick-card.is-active .svc__pick-desc,
.svc__pick-card.is-active .svc__pick-arrow { color: rgba(255,255,255,.85); }
.svc__pick-card.is-active .svc__pick-icon { color: rgba(255,255,255,.9); }

.svc__pick-icon {
  width: 28px; height: 28px;
  color: var(--navy);
  flex-shrink: 0;
  transition: color .2s ease;
}
.svc__pick-icon svg { width: 100%; height: 100%; }

.svc__pick-num { display: none; }
.svc__pick-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 400; color: var(--navy); transition: color .2s ease; line-height: 1.3; }
.svc__pick-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.5; transition: color .2s ease; }
.svc__pick-arrow { font-size: .82rem; font-weight: 500; color: var(--navy); margin-top: auto; transition: color .2s ease; }

/* Form panel (appears below picker when card selected) */
.svc__form-panel {
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 2.5rem; margin-bottom: 4rem; max-width: 760px;
  animation: svcIn .25s ease;
}
@keyframes svcIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.svc__form-title {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400;
  color: var(--navy); margin-bottom: 1.5rem;
}

/* Tipologia atto – griglia 2 colonne */
.form__fieldset { border: none; padding: 0; margin: 1.5rem 0 0; }
.form__legend { font-size: .85rem; font-weight: 500; color: var(--text); margin-bottom: .75rem; display: block; }

.prev__options { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.prev__option {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; font-size: .875rem; color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.prev__option:hover { border-color: var(--navy); }
.prev__option:has(input:checked) { border-color: var(--navy); background: rgba(26,58,92,.04); }
.prev__option input[type="radio"] { accent-color: var(--navy); width: 14px; height: 14px; flex-shrink: 0; }

/* Sezione condizionale */
.prev__detail { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* Radio inline */
.prev__radio-group { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.prev__radio-label { display: flex; align-items: center; gap: .4rem; font-size: .875rem; color: var(--text-muted); cursor: pointer; }
.prev__radio-label input[type="radio"] { accent-color: var(--navy); width: 14px; height: 14px; }

/* Checkbox group */
.prev__check-group { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: .4rem; }
.prev__check-label { display: flex; align-items: center; gap: .4rem; font-size: .875rem; color: var(--text-muted); cursor: pointer; }
.prev__check-label input[type="checkbox"] { accent-color: var(--navy); width: 14px; height: 14px; }

/* ================================================
   DOCUMENTI NECESSARI
   ================================================ */
.documenti { margin-top: 1rem; }
.documenti__title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; color: var(--navy); margin-bottom: .5rem; }
.documenti__intro { font-size: .875rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }

.doc__item { border-top: 1px solid var(--border); }
.doc__item:last-child { border-bottom: 1px solid var(--border); }

.doc__summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; font-size: .95rem; font-weight: 500;
  color: var(--navy); cursor: pointer; list-style: none; gap: 1rem;
  transition: color var(--transition);
}
.doc__summary::-webkit-details-marker { display: none; }
.doc__summary::after { content: '+'; font-size: 1.25rem; font-weight: 300; color: var(--grey); flex-shrink: 0; transition: transform var(--transition); }
details[open] .doc__summary::after { transform: rotate(45deg); }
.doc__summary:hover { color: var(--navy-mid); }

.doc__content { padding-bottom: 1.5rem; }
.doc__list { display: flex; flex-direction: column; gap: .5rem; padding-left: 1rem; }
.doc__list li { font-size: .875rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.doc__list li::before { content: '—'; position: absolute; left: 0; color: var(--grey-light); }

/* ================================================
   GUIDE NOTARILI
   ================================================ */
.guide__tabs {
  display: flex; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  margin-bottom: 2.5rem; width: fit-content;
}
.guide__tab {
  padding: .75rem 1.5rem; background: var(--white);
  border: none; font-family: var(--font-sans); font-size: .875rem;
  color: var(--text-muted); cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.guide__tab + .guide__tab { border-left: 1px solid var(--border); }
.guide__tab--active, .guide__tab:hover { background: var(--navy); color: var(--white); }

.guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.guide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.guide-card__img {
  width: 100%; height: 160px; object-fit: cover;
  display: block; flex-shrink: 0;
}
.guide-card__body {
  padding: 1rem 1.75rem 1.75rem;
  display: flex; flex-direction: column; gap: .75rem; flex: 1;
}
.guide-card__cat {
  display: inline-block; font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: none;
  padding: 0; border-radius: 0; width: fit-content;
}
.guide-card__cat--cnn { color: var(--white); background: var(--navy); padding: .2rem .5rem; border-radius: 2px; }
.guide-card__title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; color: var(--navy); line-height: 1.3; }
.guide-card__text { font-size: .875rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.guide-card__footer {
  display: flex; justify-content: flex-end; align-items: center;
  margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
.guide-card__time { display: none; }
.guide-card__link { font-size: .85rem; font-weight: 500; color: var(--navy); transition: opacity var(--transition); }
.guide-card__link:hover { opacity: .7; }

.guide__cnn-note {
  font-size: .875rem; color: var(--text-muted);
  background: var(--grey-pale); border-left: 3px solid var(--navy);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2rem; line-height: 1.6;
}
.guide__cnn-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* ================================================
   DOCUMENTI NECESSARI
   ================================================ */
.doc__accordion { display: flex; flex-direction: column; gap: 0; max-width: 860px; margin: 0 auto; }

.doc__item {
  border-bottom: 1px solid var(--border);
}
.doc__item:first-child { border-top: 1px solid var(--border); }

.doc__summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
  font-size: .95rem; font-weight: 500; color: var(--navy);
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}
.doc__summary::-webkit-details-marker { display: none; }
.doc__summary::after {
  content: '+';
  font-size: 1.25rem; font-weight: 300; color: var(--grey);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.doc__item[open] > .doc__summary::after { content: '−'; }

.doc__item--immobiliare,
.doc__item--societario,
.doc__item--famiglia    { border-left: 3px solid var(--navy); padding-left: 1rem; }

.doc__content {
  padding: .25rem 0 1.25rem;
}
.doc__list {
  list-style: none;
  display: flex; flex-direction: column; gap: .6rem;
}
.doc__list li {
  font-size: .9rem; color: var(--text-muted); line-height: 1.6;
  padding-left: 1.25rem; position: relative;
}
.doc__list li::before {
  content: '–';
  position: absolute; left: 0; color: var(--navy);
}

.doc__edit-btn {
  padding: .5rem 1.5rem;
  background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  font-size: .85rem; cursor: pointer;
  transition: background var(--transition);
}
.doc__edit-btn:hover { background: var(--navy-dark); }

/* ================================================
   NOTIZIE
   ================================================ */
.news__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.news__filter {
  padding: .4rem 1rem; background: var(--white);
  border: 1px solid var(--border); border-radius: 100px;
  font-family: var(--font-sans); font-size: .8rem;
  color: var(--text-muted); cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.news__filter--active, .news__filter:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.news__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.news__loading { font-size: .9rem; color: var(--text-muted); grid-column: 1/-1; text-align: center; padding: 3rem; }

.news-card {
  background: var(--white);
  border: none;
  border-left: 3px solid var(--navy);
  border-radius: 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: .65rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease, box-shadow .2s ease;
  cursor: pointer; position: relative;
}
.news-card.is-visible { opacity: 1; transform: none; }
.news-card:hover { box-shadow: 0 4px 20px rgba(26,58,92,.12); }


.news-card__overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.news-card__header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.news-card__cat {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  background: none; padding: 0; border-radius: 0; color: var(--navy);
}
.news-card__cat--normativa      { color: #1a3a5c; }
.news-card__cat--notariato      { color: #276749; }
.news-card__cat--giurisprudenza { color: #6b46c1; }
.news-card__cat--fiscale        { color: #c05621; }
.news-card__cat--adempimenti    { color: #b7791f; }

.news-card__sep { width: 3px; height: 3px; border-radius: 50%; background: #9ca3af; flex-shrink: 0; }
.news-card__date { font-size: .72rem; color: var(--grey-light); }
.news-card__title { font-family: var(--font-serif); font-size: 1rem; font-weight: 400; color: var(--navy); line-height: 1.4; flex: 1; }
.news-card__summary { font-size: .875rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.news-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .65rem; border-top: 1px solid var(--border); gap: .5rem; margin-top: auto;
}
.news-card__source { font-size: .75rem; color: var(--grey-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-card__link { font-size: .8rem; font-weight: 500; color: var(--navy); white-space: nowrap; position: relative; z-index: 2; text-decoration: none; }

/* ================================================
   LO STUDIO (sezione inline)
   ================================================ */

/* Team + Sedi in unico grid allineato */
.studio__lower {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.25rem 2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e0e3e8;
}
.studio__members-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 1.1rem 16rem;
  width: fit-content;
  margin: 0 auto .5rem;
}
.studio__lower-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: .25rem;
}
.studio__sala-op { grid-column: 1 / -1; margin-top: 2rem; }
.studio__sala-op img { width: 100%; height: 250px; object-fit: cover; border-radius: var(--radius-md); display: block; }
.studio__lower-sep {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}
.studio__member-name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
}
.studio__member-title {
  font-size: .78rem;
  color: var(--grey);
  margin-top: .15rem;
}

/* ================================================
   CHI SIAMO (usato nell'overlay)
   ================================================ */
.chisiamo__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.chisiamo__text { display: flex; flex-direction: column; gap: 1.25rem; font-size: .95rem; color: var(--text-muted); line-height: 1.8; }
.chisiamo__text strong, .chisiamo__bio strong { color: var(--navy); font-weight: 500; }
.chisiamo__bio div:empty, .chisiamo__bio br { display: none; }
.chisiamo__bio div + div { margin-top: .3rem; }
.chisiamo__sedi { display: flex; flex-direction: column; gap: 2rem; }

/* Layout B: immagine (piccola) | testo + sedi sotto */
.chisiamo__layout-b { display: grid; grid-template-columns: 2fr 3fr; gap: 3.5rem; align-items: center; margin-bottom: 3rem; }
.chisiamo__img img { width: 100%; border-radius: var(--radius-md); display: block; }
.chisiamo__sedi-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.sede__title { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-bottom: .5rem; }
.sede__address { font-size: .9rem; color: var(--text-muted); line-height: 1.8; }
.sede__address a { color: var(--navy); font-weight: 500; }

/* ================================================
   CONTATTI
   ================================================ */
.contatti__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__group { display: flex; flex-direction: column; gap: .4rem; }
.form__label { font-size: .85rem; font-weight: 500; color: var(--text); }
.form__input {
  padding: .75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-sans);
  font-size: .9rem; color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none; width: 100%;
}
.form__input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,.08); }
.form__input.is-invalid { border-color: #c0392b; }
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23808285' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem; cursor: pointer;
}
.form__textarea { resize: vertical; min-height: 130px; }
.form__error { font-size: .78rem; color: #c0392b; min-height: 1rem; }
.form__group--check { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: .5rem; }
.form__check-label { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.form__check-label input[type="checkbox"] { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--navy); }
.form__link { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.form__success { padding: 1rem 1.25rem; background: #f0faf4; border: 1px solid #276749; border-radius: var(--radius-sm); font-size: .9rem; color: #276749; }

.contatti__info { display: flex; flex-direction: column; gap: 2.5rem; }
.contatti__block-title { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-bottom: .5rem; }
.contatti__block address, .contatti__block > a { font-size: .95rem; color: var(--text-muted); line-height: 1.8; }
.contatti__block a { color: var(--navy); font-weight: 500; }

/* ================================================
   PULSANTI
   ================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.75rem; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: .9rem; font-weight: 500;
  cursor: pointer; border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn--primary:disabled { opacity: .45; cursor: not-allowed; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn--ghost:hover { color: var(--navy); border-color: var(--navy); }
.btn--full { width: 100%; }
.btn--sm { padding: .5rem 1.25rem; font-size: .82rem; }
.btn--loading { opacity: .6; cursor: not-allowed; }

/* ================================================
   FOOTER
   ================================================ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.45); padding: 3rem 0; font-family: var(--font-sans); text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.footer__sedi { display: flex; gap: 4rem; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.footer__logo-link { display: block; flex-shrink: 0; align-self: flex-start; opacity: .65; transition: opacity var(--transition); }
.footer__logo-link:hover { opacity: 1; }
.footer__logo { width: 120px; height: 36px; object-fit: contain; object-position: left center; display: block; filter: brightness(0) invert(1); pointer-events: none; }
.footer__sede-title { font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: .4rem; }
.footer__sede { font-size: .82rem; line-height: 1.85; color: rgba(255,255,255,.45); }
.footer__sede a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer__sede a:hover { color: var(--white); }
.footer__copy { font-size: .8rem; color: rgba(255,255,255,.35); line-height: 1.7; }
.footer__copy a { color: rgba(255,255,255,.45); text-decoration: underline; text-underline-offset: 2px; transition: color var(--transition); }
.footer__copy a:hover { color: rgba(255,255,255,.75); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .settori__grid { grid-template-columns: 1fr; }
  .studio__lower { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .studio__lower .sede:last-child { grid-column: 1 / -1; }
  .studio__members-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 1rem 1.5rem; width: 100%; margin: 0; }
  .chisiamo__layout { grid-template-columns: 1fr; gap: 2rem; }
  .chisiamo__layout-b { grid-template-columns: 1fr; gap: 2rem; }
  .chisiamo__sedi-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .contatti__layout { grid-template-columns: 1fr; gap: 3rem; }
  .form__row { grid-template-columns: 1fr; }
  .guide__tabs { flex-direction: column; width: 100%; }
  .guide__tab + .guide__tab { border-left: none; border-top: 1px solid var(--border); }
  .guide__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .svc__picker { grid-template-columns: 1fr 1fr; }
  .svc__form-panel { padding: 1.5rem; margin-bottom: 2rem; }
  .prev__options { grid-template-columns: 1fr; }
  .studio-overlay__content { padding: 3rem 1.5rem 2rem; }
  .hero__identity { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .side-panel__nav { padding: 2rem 1.25rem; }
  .side-panel__contacts { font-size: .76rem; }
  .container { padding: 0 1rem; }
  .settore-card { padding: 2rem 1.25rem; }
  .hero__name--first, .hero__name--last { font-size: 1.1rem; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; }
  .svc__picker { grid-template-columns: 1fr; }
  .footer__sedi { flex-direction: column; align-items: center; gap: 2rem; }
  .footer__logo-link { align-self: center; }
  .studio__sala-op img { height: auto; object-fit: unset; }
}
