/* ============================================
   TÈRAMADRE — Global Stylesheet
   ============================================ */

/* --- Fonts (fallback se offline: serif/sans/mono di sistema) --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* --- Design Tokens --- */
:root {
  --rosa:          #E8185A;
  --coral:         #E87A4A;
  --teal:          #2ABFAA;
  --antracite:     #2D2D2D;
  --antracite-dark:#1F1F1F;
  --bianco:        #FFFFFF;
  --grigio-chiaro: #F5F5F5;
  --grigio-medio:  #E8E8E8;
  --testo:         #2D2D2D;
  --testo-chiaro:  #666666;
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'DM Sans', system-ui, sans-serif;
  --font-mono:     'Space Mono', monospace;
  --max-w:         1200px;
  --radius:        4px;
  --radius-lg:     12px;
  --transition:    0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--testo);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }
strong { font-weight: 600; }

.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 1rem;
}

.label--light { color: rgba(255,255,255,0.7); }

/* --- Layout Helpers --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt { background: var(--grigio-chiaro); }
.section--dark { background: var(--antracite); color: var(--bianco); }
.section--teal { background: var(--teal); color: var(--bianco); }

.text-center { text-align: center; }
.text-rosa { color: var(--rosa); }
.text-teal { color: var(--teal); }
.text-coral { color: var(--coral); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal);
  color: var(--bianco);
  border-color: var(--teal);
}
.btn--primary:hover {
  background: #22a896;
  border-color: #22a896;
}

.btn--secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--secondary:hover {
  background: var(--teal);
  color: var(--bianco);
}

.btn--dark {
  background: var(--antracite);
  color: var(--bianco);
  border-color: var(--antracite);
}
.btn--dark:hover { background: var(--antracite-dark); }

.btn--white {
  background: var(--bianco);
  color: var(--antracite);
  border-color: var(--bianco);
}
.btn--white:hover { background: var(--grigio-chiaro); }

.btn--outline-white {
  background: transparent;
  color: var(--bianco);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover { border-color: var(--bianco); }

.btn--rosa {
  background: var(--rosa);
  color: var(--bianco);
  border-color: var(--rosa);
}
.btn--rosa:hover { background: #c4144d; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ============================================
   TICKER
   ============================================ */
.ticker {
  background: var(--antracite-dark);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker__inner {
  display: inline-flex;
  animation: ticker-scroll 35s linear infinite;
}
.ticker__track {
  display: flex;
  gap: 2.5rem;
  padding-right: 2.5rem;
}
.ticker__item {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
}
.ticker__sep {
  color: var(--teal);
  opacity: 0.6;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--antracite);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Header pattern — repeating brain+heart tile (white/transparent) */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/logo-tile.png');
  background-size: 44px 44px;
  background-repeat: repeat;
  opacity: 0.15;
  pointer-events: none;
}

/* Colored gradient overlay on navbar */
.navbar::after {
  content: '';
  position: absolute;
  top: -30px;
  right: 0;
  width: 400px;
  height: 160px;
  background: radial-gradient(ellipse at top right, rgba(232,24,90,0.30) 0%, transparent 70%);
  pointer-events: none;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: relative;
  z-index: 1;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}
.navbar__logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bianco);
  letter-spacing: 0.01em;
}

/* Nav Links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.navbar__link {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.navbar__link:hover {
  color: var(--bianco);
  background: rgba(255,255,255,0.07);
}
.navbar__cta {
  background: var(--teal);
  color: var(--bianco) !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: 0.4rem;
  transition: background var(--transition);
}
.navbar__cta:hover { background: #22a896 !important; }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bianco);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.navbar__mobile {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--antracite);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
}
.navbar__mobile.open { display: flex; }
.navbar__mobile .navbar__link {
  display: block;
  padding: 0.7rem 0.5rem;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar__mobile .navbar__cta {
  margin: 0.5rem 0 0;
  text-align: center;
  display: block;
  padding: 0.8rem;
}

/* Space for fixed navbar + ticker */
.page-offset { padding-top: calc(68px + 34px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--antracite);
  color: var(--bianco);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Repeating pattern in hero bg */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/logo-tile.png');
  background-size: 64px 64px;
  background-repeat: repeat;
  opacity: 0.09;
  pointer-events: none;
}

/* Colored accent blobs */
.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(232,24,90,0.45) 0%, transparent 60%);
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 650px;
  height: 650px;
  background: radial-gradient(ellipse at center, rgba(42,191,170,0.38) 0%, transparent 60%);
  pointer-events: none;
}

/* Coral blob center */
.hero__blob-coral {
  position: absolute;
  top: 40%;
  left: 40%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(232,122,74,0.15) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}

.hero h1 {
  color: var(--bianco);
  margin-bottom: 1.2rem;
}
.hero h1 em {
  color: var(--teal);
  font-style: italic;
}

.hero__sub {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero__body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo-wrap {
  width: clamp(220px, 40vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 60px rgba(42,191,170,0.15), 0 0 120px rgba(232,24,90,0.10);
}

.hero__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stats strip */
.hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__stat {
  display: flex;
  flex-direction: column;
}
.hero__stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.2rem;
}

/* Trust strip */
.trust-strip {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1rem 0;
}
.trust-strip__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.trust-strip__dot { color: var(--teal); opacity: 0.5; }

/* ============================================
   SECTION — Nodo Reale
   ============================================ */
.blocchi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.blocco-card {
  background: var(--bianco);
  border: 1px solid var(--grigio-medio);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.blocco-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.blocco-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.blocco-card:nth-child(1)::before { background: var(--rosa); }
.blocco-card:nth-child(2)::before { background: var(--coral); }
.blocco-card:nth-child(3)::before { background: var(--teal); }
.blocco-card:nth-child(4)::before { background: var(--antracite); }

.blocco-card__num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--testo-chiaro);
  margin-bottom: 0.8rem;
}
.blocco-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--testo);
}
.blocco-card p {
  font-size: 0.88rem;
  color: var(--testo-chiaro);
  line-height: 1.6;
}

/* ============================================
   SECTION — La realtà / Cosa cerchi
   ============================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-section__text h2 {
  margin-bottom: 1.5rem;
}
.split-section__text p {
  color: var(--testo-chiaro);
  font-size: 0.95rem;
}
.split-section__text .highlight {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--testo);
  border-left: 3px solid var(--teal);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
}

.split-section__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.split-section__img-wrap {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grigio-chiaro);
}
.split-section__img-wrap img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* ============================================
   SECTION — Chi sono (homepage)
   ============================================ */
.bio-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.bio-photo {
  position: sticky;
  top: 100px;
}
.bio-photo__circle {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  background: var(--grigio-chiaro);
  box-shadow: 0 4px 40px rgba(0,0,0,0.08);
}
.bio-photo__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-credentials {
  margin-top: 1.5rem;
  text-align: center;
}
.bio-credentials p {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--testo-chiaro);
  line-height: 1.8;
}

.bio-content h2 { margin-bottom: 1.5rem; }
.bio-content p { color: var(--testo-chiaro); }
.bio-content strong { color: var(--testo); }
.bio-istituzionale {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--testo-chiaro);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grigio-medio);
}

/* ============================================
   TESTIMONIANZE
   ============================================ */
.testimonials { background: var(--grigio-chiaro); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--bianco);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  border: 1px solid var(--grigio-medio);
  transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: 0 6px 30px rgba(0,0,0,0.07); }
.testimonial-card__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.testimonial-card__stars {
  color: var(--coral);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.testimonial-card blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--testo);
  margin-bottom: 1.2rem;
}
.testimonial-card blockquote::before {
  content: '"';
  font-size: 2rem;
  color: var(--teal);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.1em;
  font-family: var(--font-serif);
}
.testimonial-card__author {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--testo);
}
.testimonial-card__role {
  font-size: 0.78rem;
  color: var(--testo-chiaro);
  margin-top: 0.1rem;
}

/* ============================================
   COME LAVORIAMO INSIEME — Cards
   ============================================ */
.percorsi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.percorso-card {
  background: var(--bianco);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  border: 1px solid var(--grigio-medio);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.percorso-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 24px rgba(42,191,170,0.1);
}
.percorso-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
}
.percorso-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.percorso-card p {
  font-size: 0.88rem;
  color: var(--testo-chiaro);
  flex: 1;
  margin-bottom: 1.5rem;
}
.percorso-card .btn { margin-top: auto; align-self: flex-start; }

/* Full-width card variant */
.percorso-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}
.percorso-card--wide .percorso-card__content { flex: 1; }

/* ============================================
   SECTION — Money Noise
   ============================================ */
.money-noise-section {
  background: var(--antracite);
  color: var(--bianco);
  position: relative;
  overflow: hidden;
}
.money-noise-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(232,24,90,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.money-noise-section .label { color: var(--coral); }
.money-noise-section h2 { color: var(--bianco); }
.money-noise-section p { color: rgba(255,255,255,0.7); }
.money-noise-section strong { color: var(--bianco); }

/* ============================================
   ECOSISTEMA
   ============================================ */
.ecosistema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.ecosistema-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bianco);
  border: 1px solid var(--grigio-medio);
  transition: border-color var(--transition);
}
.ecosistema-card:hover { border-color: var(--teal); }
.ecosistema-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.ecosistema-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.ecosistema-card p {
  font-size: 0.88rem;
  color: var(--testo-chiaro);
  margin-bottom: 1.2rem;
}

/* ============================================
   CTA FINALE (homepage)
   ============================================ */
.cta-finale {
  background: var(--antracite);
  color: var(--bianco);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-finale::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/logo-tile.png');
  background-size: 50px 50px;
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
}
.cta-finale h2 { color: var(--bianco); margin-bottom: 1rem; }
.cta-finale h2 em { color: var(--teal); }
.cta-finale p { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 2rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--antracite-dark);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 2rem;
  font-size: 0.85rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__brand { }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.footer__logo-img { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }
.footer__logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bianco);
}
.footer__tagline {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer__social { display: flex; gap: 0.8rem; margin-top: 0.5rem; }
.footer__social a {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer__social a:hover { color: var(--teal); }

.footer__col h5 {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.84rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--bianco); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}
.footer__legal a:hover { color: rgba(255,255,255,0.6); }

/* ============================================
   INNER PAGE HERO
   ============================================ */
.page-hero {
  background: var(--antracite);
  color: var(--bianco);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/logo-tile.png');
  background-size: 50px 50px;
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -40px;
  width: 450px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(232,24,90,0.40) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .page-blob-teal {
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 350px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(42,191,170,0.32) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 800px; }
.page-hero h1 { color: var(--bianco); margin-bottom: 1rem; }
.page-hero h1 em { color: var(--teal); }
.page-hero__sub {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  font-style: italic;
  margin-bottom: 1rem;
}
.page-hero__body {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

/* ============================================
   CONTENT SECTIONS (inner pages)
   ============================================ */
.content-block {
  max-width: 780px;
  margin: 0 auto;
}
.content-block p {
  font-size: 1rem;
  color: var(--testo-chiaro);
  margin-bottom: 1.2rem;
}
.content-block h2 {
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
}
.content-block h3 { margin-bottom: 0.8rem; }
.content-block strong { color: var(--testo); }

/* Pillars — 3 columns */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.pillar {
  background: var(--bianco);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--teal);
  border-left: 1px solid var(--grigio-medio);
  border-right: 1px solid var(--grigio-medio);
  border-bottom: 1px solid var(--grigio-medio);
}
.pillar:nth-child(2) { border-top-color: var(--rosa); }
.pillar:nth-child(3) { border-top-color: var(--coral); }
.pillar__letter {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.pillar:nth-child(2) .pillar__letter { color: var(--rosa); }
.pillar:nth-child(3) .pillar__letter { color: var(--coral); }
.pillar h3 { font-size: 1rem; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pillar p { font-size: 0.88rem; color: var(--testo-chiaro); }

/* Quote pull */
.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--testo);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}
.pull-quote::before {
  content: '"';
  font-size: 5rem;
  color: var(--teal);
  opacity: 0.2;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
  font-family: var(--font-serif);
}

/* Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--testo-chiaro);
}
.checklist li::before {
  content: '—';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  background: var(--grigio-chiaro);
  border: 1px solid var(--grigio-medio);
  color: var(--testo-chiaro);
}

/* Two-col compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.compare-col {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
}
.compare-col--left {
  background: var(--grigio-chiaro);
  border: 1px solid var(--grigio-medio);
}
.compare-col--right {
  background: rgba(42,191,170,0.06);
  border: 1px solid rgba(42,191,170,0.25);
}
.compare-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--testo-chiaro);
}
.compare-col--right h4 { color: var(--teal); }

/* Stats/data strip */
.data-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.data-item { text-align: center; padding: 1.5rem; }
.data-item__num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--rosa);
  line-height: 1;
}
.data-item__label {
  font-size: 0.85rem;
  color: var(--testo-chiaro);
  margin-top: 0.4rem;
}

/* Format box */
.format-box {
  background: rgba(42,191,170,0.06);
  border: 1px solid rgba(42,191,170,0.2);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin: 2rem 0;
}
.format-box h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
}
.format-box p { font-size: 0.9rem; color: var(--testo-chiaro); }

/* CTA Block */
.cta-block {
  background: var(--antracite);
  color: var(--bianco);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/logo-tile.png');
  background-size: 40px 40px;
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
}
.cta-block h2, .cta-block h3 { color: var(--bianco); margin-bottom: 0.8rem; position: relative; z-index: 1; }
.cta-block p { color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto 1.5rem; position: relative; z-index: 1; }
.cta-block .btn-group { justify-content: center; position: relative; z-index: 1; }

/* Bio page photo */
.bio-page {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}
.bio-page__photo {
  position: sticky;
  top: 100px;
}
.bio-page__photo-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grigio-chiaro);
  box-shadow: 0 4px 40px rgba(0,0,0,0.08);
}
.bio-page__photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-page__photo-name {
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}
.bio-page__photo-role {
  text-align: center;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--testo-chiaro);
  margin-top: 0.2rem;
}

/* Form container */
.form-cta {
  background: var(--grigio-chiaro);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--grigio-medio);
}
.form-cta h3 { margin-bottom: 0.5rem; }
.form-cta p { font-size: 0.9rem; color: var(--testo-chiaro); margin-bottom: 1.5rem; }

/* Newsletter form */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--grigio-medio);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--teal); }
.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--teal);
  color: var(--bianco);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: #22a896; }

/* Blog */
.blog-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--testo-chiaro);
  margin-bottom: 0.5rem;
}
.blog-content h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.6rem; }
.blog-content h3 { margin-top: 1.5rem; margin-bottom: 0.8rem; }
.blog-content p { font-size: 1rem; line-height: 1.8; color: var(--testo-chiaro); margin-bottom: 1.2rem; }
.blog-content strong { color: var(--testo); }
.blog-content em { font-style: italic; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .blocchi-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }
  .page-offset { padding-top: calc(68px + 34px); }

  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__image { display: none; }
  .hero__stats { gap: 1.5rem; }

  .blocchi-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .split-section__visual { display: none; }

  .bio-section { grid-template-columns: 1fr; }
  .bio-photo { position: static; }
  .bio-photo__circle { max-width: 200px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .percorsi-grid { grid-template-columns: 1fr; }
  .percorso-card--wide { grid-template-columns: 1fr; }

  .ecosistema-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .data-strip { grid-template-columns: 1fr; }
  .bio-page { grid-template-columns: 1fr; }
  .bio-page__photo { position: static; }
  .bio-page__photo-circle { max-width: 200px; margin: 0 auto; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0 2.5rem; }
  .btn { padding: 0.75rem 1.3rem; font-size: 0.84rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: 100%; }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--antracite);
  color: rgba(255,255,255,0.8);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner a { color: var(--teal); text-decoration: underline; }
.cookie-banner__btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-banner__btns button {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
}
.cookie-btn-accept { background: var(--teal); color: var(--bianco); }
.cookie-btn-decline { background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.2) !important; }
