/* ============================================
   STUDIO LEGALE COCCOLO — v2 Redesign
   "Charcoal & Bronze" — Editorial Minimal
   Mobile-first, CSS Custom Properties
   ============================================ */

:root {
  /* Palette — Ruby & Gold */
  --dark: #7B1A2C;
  --dark-soft: #8E2236;
  --dark-deep: #5E1522;
  --ink: #1A1A1A;
  --accent: #C49A42;
  --accent-hover: #A88236;
  --accent-light: #D4AF60;
  --accent-glow: rgba(196,154,66,0.12);
  --bg: #FFFFFF;
  --bg-warm: #FBF8F5;
  --bg-muted: #F0EBE6;
  --text: #1A1A1A;
  --text-soft: #5C5C5C;
  --text-muted: #919191;
  --line: #E6E0DA;
  --line-light: #F2EEEA;
  --white: #FFFFFF;
  --error: #B33025;
  --success: #2E7D4F;

  /* Type */
  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Layout */
  --max-w: 1220px;
  --header-h: 76px;
  --gutter: 20px;

  /* Fx */
  --shadow-soft: 0 2px 20px rgba(0,0,0,0.05);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lift: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.35s;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }

::selection { background: rgba(123,26,44,0.18); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }

/* Bold text in soft-colored paragraphs should pop */
.about-preview__content p strong,
.area-detail__content p strong,
.content-split__text p strong,
.strength-item__text strong,
.value-card__text strong,
.probono-banner p strong { color: var(--ink); }

.section--dark strong,
.strength-item__text strong { color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 72px 0; }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}

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

.section-header__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header__title {
  margin-bottom: 16px;
}

.section-header__line {
  width: 48px;
  height: 2px;
  background: var(--dark);
  border: none;
  margin-top: 20px;
}

.section-header--center .section-header__line {
  margin-left: auto;
  margin-right: auto;
}

.section-header__text {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-top: 16px;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 36px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,154,66,0.3);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

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

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

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

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

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

.btn--sm {
  padding: 11px 28px;
  font-size: 0.85rem;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header--solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}

/* On internal pages, start solid */
.header--always-solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo-img {
  height: 40px;
  width: auto;
  transition: filter var(--duration) var(--ease);
}

/* Transparent header on hero pages */
.header--transparent .header__logo-img { filter: brightness(0) invert(1); }
.header--transparent .nav__link { color: rgba(255,255,255,0.85); }
.header--transparent .nav__link:hover,
.header--transparent .nav__link--active { color: var(--white); }
.header--transparent .hamburger__line { background: var(--white); }

.header--transparent.header--solid .header__logo-img { filter: none; }
.header--transparent.header--solid .nav__link { color: var(--text); }
.header--transparent.header--solid .nav__link:hover,
.header--transparent.header--solid .nav__link--active { color: var(--accent); }
.header--transparent.header--solid .hamburger__line { background: var(--ink); }

/* Nav */
.nav { display: none; }

.nav--open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  padding: 32px var(--gutter);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: navSlideIn 0.3s var(--ease);
}

@keyframes navSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav__link {
  display: block;
  padding: 18px 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line-light);
  transition: color var(--duration);
}

.nav__link:hover,
.nav__link--active {
  color: var(--accent);
}

/* Nav CTA — "Contatti" highlighted */
.nav--open .nav__link--cta {
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 50px;
  padding: 14px 28px;
  text-align: center;
  margin-top: 12px;
  border-bottom: none;
  font-weight: 600;
}

.nav--open .nav__link--cta:hover {
  background: var(--accent-hover);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--duration) var(--ease);
  border-radius: 1px;
}

.hamburger--active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}
.hamburger--active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger--active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* When nav is open, remove backdrop-filter (it traps fixed children on WebKit)
   and force solid opaque background + dark colors */
.header--nav-open,
.header--nav-open.header--solid,
.header--nav-open.header--always-solid,
.header--nav-open.header--transparent,
.header--nav-open.header--transparent.header--solid {
  background: var(--white) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: var(--line);
}

.header--nav-open .header__logo-img { filter: none !important; }
.header--nav-open .hamburger__line { background: var(--ink) !important; }
.header--nav-open .nav--open .nav__link { color: var(--text); }
.header--nav-open .nav--open .nav__link:hover,
.header--nav-open .nav--open .nav__link--active { color: var(--accent); }

/* ================================================
   HERO — Split layout
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--dark);
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 56px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 24px;
}

.hero__title {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 580px;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__media::after {
  display: none;
}

/* ================================================
   PAGE HERO (internal pages) — Minimal
   ================================================ */
.page-hero {
  padding: 140px 0 64px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(196,154,66,0.1);
  pointer-events: none;
}

.page-hero__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
  display: block;
}

.page-hero__title {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 600px;
}

.page-hero__subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-top: 16px;
  max-width: 500px;
}

.page-hero__line {
  width: 48px;
  height: 2px;
  background: var(--accent-light);
  border: none;
  margin-top: 28px;
}

/* ================================================
   ABOUT PREVIEW (Home)
   ================================================ */
.about-preview {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.about-preview__image {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.about-preview__image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  transition: transform 0.5s var(--ease);
}

.about-preview__image:hover img {
  transform: scale(1.02);
}

.about-preview__image::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 1.5px solid var(--dark);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.15;
}

.about-preview__content h2 { margin-bottom: 20px; }

.about-preview__content p {
  color: var(--text-soft);
  margin-bottom: 20px;
}

.about-preview__content p:last-of-type { margin-bottom: 32px; }

/* ================================================
   CAROUSEL — Studio photo slideshow
   ================================================ */
.carousel {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.carousel__slide--active {
  opacity: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px var(--gutter);
  z-index: 3;
  background: linear-gradient(to top, rgba(94,21,34,0.6), transparent);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: all var(--duration) var(--ease);
}

.carousel__btn:hover {
  background: rgba(255,255,255,0.3);
}

.carousel__btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }

.carousel__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all var(--duration) var(--ease);
}

.carousel__dot--active {
  background: var(--white);
  border-color: var(--white);
}

/* ================================================
   STUDIO GALLERY — Contact page grid
   ================================================ */
.studio-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.studio-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.studio-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lift);
}

/* ================================================
   PHOTO BANNER — Full-width image break
   ================================================ */
.photo-banner {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-banner--tall { height: 420px; }
.photo-banner--short { height: 260px; }

.photo-banner--overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(94,21,34,0.2), rgba(94,21,34,0.55));
  pointer-events: none;
}

.photo-banner__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px var(--gutter);
  z-index: 2;
}

.photo-banner__caption .container {
  max-width: var(--max-w);
}

.photo-banner__quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--white);
  max-width: 600px;
  line-height: 1.4;
  margin-left: auto;
  text-align: right;
}

.photo-banner__attr {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  font-weight: 500;
}

/* ================================================
   PULL QUOTE — Inline text callout
   ================================================ */
.pull-quote {
  border-left: 3px solid var(--dark);
  padding: 24px 0 24px 28px;
  margin: 40px 0;
}

.pull-quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink);
  line-height: 1.5;
}

.pull-quote__attr {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-weight: 500;
}

/* ================================================
   STAT ROW — Key numbers strip
   ================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 48px 0;
}

.stat-item { text-align: center; }

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ================================================
   CONTENT SPLIT — Text + image side by side
   ================================================ */
.content-split {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.content-split--reverse { flex-direction: column; }

.content-split__text {
  flex: 1;
}

.content-split__text p {
  color: var(--text-soft);
  margin-bottom: 18px;
  line-height: 1.8;
}

.content-split__text h3 {
  margin-bottom: 16px;
}

.content-split__image {
  width: 100%;
  max-width: 480px;
  position: relative;
}

.content-split__image::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 1.5px solid var(--dark);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.content-split__image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.12),
    0 20px 60px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
  transition: transform 0.5s var(--ease);
}

.content-split__image:hover img {
  transform: scale(1.02);
}

/* ================================================
   REVEAL STAGGER (delay classes)
   ================================================ */
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }
.reveal--d4 { transition-delay: 0.4s; }
.reveal--d5 { transition-delay: 0.5s; }

/* ================================================
   AREAS GRID (Home)
   ================================================ */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.area-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
  transition: all var(--duration) var(--ease);
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.area-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}

.area-card:hover::before {
  transform: scaleX(1);
}

.area-card:hover .area-card__icon {
  background: var(--dark);
  color: var(--white);
}

.area-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  background: rgba(123,26,44,0.07);
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.area-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-card__title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.area-card__text {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ================================================
   STRENGTHS (Home)
   ================================================ */
.strengths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.strength-item { position: relative; padding-left: 28px; }

.strength-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent-light);
  border-radius: 50%;
}

.strength-item__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--white);
}

.strength-item__text {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  text-align: center;
  padding: 64px 28px;
  background: var(--dark);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}

.cta-banner h2 { margin-bottom: 16px; color: var(--white); }

.cta-banner p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.02rem;
}

/* ================================================
   CHI SONO PAGE
   ================================================ */
.chi-sono-content { display: flex; flex-direction: column; gap: 56px; }

.chi-sono-main { display: flex; flex-direction: column; gap: 36px; }

.chi-sono-main__image {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.chi-sono-main__image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.chi-sono-main__text h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.chi-sono-main__text p {
  margin-bottom: 18px;
  color: var(--text-soft);
  line-height: 1.8;
}

.chi-sono-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.value-card {
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--duration);
}

.value-card:hover { box-shadow: var(--shadow-card); }

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--dark);
}

.value-card__title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.value-card__text {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.association-banner {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--line);
}

.association-banner h3 { margin-bottom: 14px; }
.association-banner p { color: var(--text-soft); margin-bottom: 24px; }

/* ================================================
   AREE DI ATTIVITÀ PAGE
   ================================================ */
.area-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-light);
}

.area-detail:last-child { border-bottom: none; }

.area-detail__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  flex-shrink: 0;
  background: rgba(123,26,44,0.08);
  border-radius: var(--radius-sm);
}

.area-detail__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-detail__content h3 { margin-bottom: 14px; }

.area-detail__content p {
  color: var(--text-soft);
  margin-bottom: 14px;
  line-height: 1.8;
}

.area-detail__content ul { padding: 0; }

.area-detail__content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.area-detail__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
}

/* ================================================
   CONTACTS PAGE
   ================================================ */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-info__item { display: flex; gap: 18px; align-items: flex-start; }

.contact-info__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  background: rgba(123,26,44,0.08);
  border-radius: var(--radius-sm);
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.contact-info__details h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.contact-info__details p,
.contact-info__details a {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.contact-info__details a:hover { color: var(--accent); }

/* Form */
.contact-form {
  background: var(--bg-warm);
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.contact-form h3 { margin-bottom: 28px; }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.3px;
}

.form-group label .required { color: var(--error); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--duration), box-shadow var(--duration);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--error); }

.form-group .error-message {
  font-size: 0.78rem;
  color: var(--error);
  display: none;
}

.form-group .error-message.visible { display: block; }

.form-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 28px;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.form-checkbox label a { color: var(--accent); text-decoration: underline; }

.form-success {
  display: none;
  padding: 24px;
  background: #edf7f0;
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  color: var(--success);
  text-align: center;
  font-weight: 500;
}

.form-success.visible { display: block; }

/* Map */
.map-container {
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-container iframe { width: 100%; height: 320px; border: none; }

/* Pro Bono */
.probono-banner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}

.probono-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--dark);
}

.probono-banner h3 { font-size: 1.15rem; margin-bottom: 12px; }
.probono-banner p { color: var(--text-soft); margin-bottom: 24px; font-size: 0.95rem; }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer__col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__col p, .footer__col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.85;
}

.footer__col a:hover { color: var(--accent-light); }

.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--duration), border-color var(--duration);
}

.footer__col ul li a:hover {
  border-bottom-color: var(--accent-light);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.4);
}

.footer__legal { font-size: 0.76rem; line-height: 1.9; }

/* ================================================
   COOKIE BANNER
   ================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 30px rgba(0,0,0,0.12);
  border-top: 3px solid var(--dark);
  z-index: 9999;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner--visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner__text {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.cookie-banner__text a { color: var(--accent); text-decoration: underline; }

.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-banner__btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 50px;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: all var(--duration) var(--ease);
}

.cookie-banner__btn--accept {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.cookie-banner__btn--accept:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.cookie-banner__btn--necessary {
  background: var(--white);
  color: var(--text);
}

.cookie-banner__btn--necessary:hover { background: var(--bg-warm); }

/* ================================================
   LEGAL PAGES
   ================================================ */
.legal-content { max-width: 780px; margin: 0 auto; }

.legal-content h2 {
  font-size: 1.35rem;
  margin: 44px 0 16px;
}

.legal-content h3 {
  font-size: 1.12rem;
  margin: 36px 0 12px;
}

.legal-content p { color: var(--text-soft); margin-bottom: 16px; line-height: 1.8; }

.legal-content ul { padding-left: 20px; margin-bottom: 16px; }

.legal-content ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 2px;
  background: var(--dark);
}

.legal-content strong { color: var(--text); }

/* ================================================
   SCROLL TO TOP
   ================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
  z-index: 100;
}

.scroll-top--visible { opacity: 1; visibility: visible; }

.scroll-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ================================================
   MOBILE OPTIMIZATIONS — max 639px
   ================================================ */
@media (max-width: 639px) {
  /* Tighter section padding on small screens */
  .section { padding: 56px 0; }

  /* Carousel: shorter on mobile */
  .carousel { height: 280px; }
  .carousel__btn { width: 36px; height: 36px; }
  .carousel__btn svg { width: 16px; height: 16px; }
  .carousel__caption { padding: 24px var(--gutter); }

  /* Studio gallery: hide on contacts mobile */
  .studio-gallery-section { display: none; }
  .studio-gallery img { height: 200px; }

  /* Hero: reduce vertical space, improve readability */
  .hero__content { padding: 40px var(--gutter) 32px; }
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.4rem); margin-bottom: 18px; }
  .hero__subtitle { font-size: 0.95rem; margin-bottom: 32px; line-height: 1.7; }
  .hero__eyebrow { margin-bottom: 18px; font-size: 0.65rem; }
  .hero__media { min-height: 280px; }
  .hero__actions .btn { width: 100%; text-align: center; padding: 16px 24px; }

  /* Page hero: tighter on mobile */
  .page-hero { padding: 120px 0 48px; }
  .page-hero__title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .page-hero__subtitle { font-size: 0.95rem; }

  /* About preview: hide portrait on mobile */
  .about-preview { gap: 36px; }
  .about-preview__image { display: none; }

  /* Content split: smaller offset on small screens */
  .content-split__image::before { top: 8px; left: 8px; right: -8px; bottom: -8px; }
  .content-split__image { max-width: 100%; }
  .content-split { gap: 32px; }

  /* Photo banners: less height on mobile */
  .photo-banner { height: 240px; }
  .photo-banner--tall { height: 320px; }
  .photo-banner--short { height: 200px; }
  .photo-banner__quote { font-size: clamp(1rem, 3.5vw, 1.3rem); }

  /* Pull quote: tighter */
  .pull-quote { padding: 20px 0 20px 20px; margin: 28px 0; }
  .pull-quote__text { font-size: 1.05rem; }

  /* Area cards: better touch and readability */
  .area-card { padding: 28px 24px; }
  .area-card__title { font-size: 1.1rem; }

  /* Strength items */
  .strengths-grid { gap: 32px; }

  /* CTA banner: tighter padding */
  .cta-banner { padding: 48px 24px; }
  .cta-banner h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .cta-banner p { font-size: 0.95rem; }

  /* Contact form: full-width button with better touch target */
  .contact-form { padding: 28px 20px; }
  .contact-form h3 { font-size: 1.15rem; margin-bottom: 24px; }
  .form-group input, .form-group select, .form-group textarea { padding: 14px 16px; font-size: 16px; }
  .form-checkbox { gap: 10px; margin: 16px 0 24px; }
  .form-checkbox input[type="checkbox"] { width: 22px; height: 22px; margin-top: 1px; }
  .form-checkbox label { font-size: 0.8rem; line-height: 1.5; }

  /* Contact info: icons larger touch area */
  .contact-info__item { gap: 14px; }
  .contact-info__details a { font-size: 0.88rem; display: inline-block; padding: 2px 0; }

  /* Map shorter on mobile */
  .map-container iframe { height: 260px; }
  .map-container { margin-top: 40px; }

  /* Pro bono banner */
  .probono-banner { padding: 28px 24px; margin-top: 40px; }

  /* Section headers: tighter spacing */
  .section-header { margin-bottom: 40px; }

  /* Value cards */
  .value-card { padding: 28px 24px; }

  /* Area detail page */
  .area-detail { padding: 28px 0; gap: 18px; }

  /* Cookie banner: full-width buttons for easy tapping */
  .cookie-banner { padding: 16px; }
  .cookie-banner__btn { width: 100%; text-align: center; padding: 14px 20px; font-size: 0.9rem; }

  /* Footer: tighter */
  .footer { padding: 48px 0 0; }
  .footer__grid { gap: 32px; padding-bottom: 36px; }
  .footer__col p, .footer__col a { font-size: 0.85rem; }
  .footer__bottom { padding: 20px 0; }
  .footer__legal { font-size: 0.72rem; }

  /* Scroll top: larger touch target */
  .scroll-top { width: 48px; height: 48px; bottom: 20px; right: 16px; }

  /* Legal content: better mobile reading */
  .legal-content h2 { font-size: 1.2rem; margin: 36px 0 14px; }
  .legal-content h3 { font-size: 1.05rem; margin: 28px 0 10px; }
  .legal-content p { font-size: 0.9rem; }

  /* Association banner */
  .association-banner { padding: 28px 20px; }
}

/* ================================================
   TABLET — 640px
   ================================================ */
@media (min-width: 640px) {
  :root { --gutter: 32px; }

  .hero__content { padding: 64px var(--gutter) 48px; }
  .hero__actions { flex-direction: row; }
  .hero__media { min-height: 420px; }

  .page-hero__title { font-size: clamp(2.2rem, 4.5vw, 3rem); }

  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .chi-sono-values { grid-template-columns: repeat(2, 1fr); }

  .form-row { flex-direction: row; }
  .form-row > .form-group { flex: 1; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .map-container iframe { height: 400px; }
  .photo-banner { height: 380px; }
  .photo-banner--tall { height: 480px; }
  .photo-banner--short { height: 260px; }
  .carousel { height: 380px; }
  .studio-gallery-section { display: block; }
  .studio-gallery { grid-template-columns: repeat(3, 1fr); }
  .studio-gallery img { height: 280px; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .content-split { flex-direction: row; gap: 48px; }
  .content-split--reverse { flex-direction: row-reverse; }
  .content-split__image { max-width: 360px; min-width: 280px; }
}

/* ================================================
   DESKTOP — 1024px
   ================================================ */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }

  .section { padding: 96px 0; }

  /* Nav */
  .hamburger { display: none; }

  .nav {
    display: flex;
    flex-direction: row;
    gap: 36px;
    align-items: center;
  }

  .nav__link {
    padding: 0;
    font-size: 0.88rem;
    font-weight: 500;
    border-bottom: none;
    position: relative;
  }

  .nav__link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dark);
    transition: width var(--duration) var(--ease);
  }

  .nav__link:hover::after,
  .nav__link--active::after { width: 100%; }

  /* Nav CTA desktop */
  .nav__link--cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 9px 24px;
    border-radius: 50px;
    font-weight: 600;
  }

  .nav__link--cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(196,154,66,0.3);
  }

  .nav__link--cta::after { display: none !important; }

  .header--transparent .nav__link--cta {
    background: var(--accent);
    color: var(--white) !important;
  }

  .header--transparent.header--solid .nav__link--cta {
    background: var(--accent);
    color: var(--white) !important;
  }

  /* Hero split */
  .hero__inner {
    flex-direction: row;
    min-height: calc(100vh - var(--header-h));
  }

  .hero__content {
    flex: 1;
    padding: 80px 60px 80px var(--gutter);
    max-width: 55%;
  }

  .hero__media {
    flex: 1;
    min-height: auto;
  }

  .hero__media::after {
    display: none;
  }

  .hero__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Layouts */
  .about-preview {
    flex-direction: row;
    gap: 64px;
    align-items: center;
  }

  .about-preview__image { min-width: 380px; max-width: 420px; }

  .carousel { height: 480px; }
  .studio-gallery img { height: 320px; }

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

  .chi-sono-main {
    flex-direction: row;
    gap: 56px;
    align-items: flex-start;
  }

  .chi-sono-main__image { min-width: 380px; max-width: 400px; margin: 0; }

  .area-detail {
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
  }

  .contact-grid { flex-direction: row; gap: 64px; }
  .contact-grid > * { flex: 1; }
  .contact-form { padding: 44px 36px; }

  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .photo-banner { height: 440px; }
  .photo-banner--tall { height: 540px; }
  .content-split { gap: 64px; }
  .content-split__image { max-width: 420px; min-width: 340px; }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__actions { flex-shrink: 0; }
}

/* ================================================
   LARGE DESKTOP — 1280px
   ================================================ */
@media (min-width: 1280px) {
  .hero__content { padding-left: 0; padding-right: 80px; }

  .hero__inner {
    max-width: var(--max-w);
    margin: 0 auto;
  }

  .hero__media {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
  }
}

/* ================================================
   ACCESSIBILITY — Reduced motion
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .carousel__slide { transition: none; }
}
