/* =========================================================
   Vittoria Vineis — sito personale v2
   Palette e font in :root. Il resto non va toccato per
   cambiare i colori.
   ========================================================= */

/* Font ospitati sul sito (niente richieste a Google: meglio per privacy/GDPR e velocità).
   Fraunces e Source Serif 4 sono rilasciati con licenza SIL Open Font License 1.1. */
/* Fraunces italic — latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces italic — latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-italic-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;
}
/* Fraunces normal — latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces normal — latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-normal-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;
}
/* Source Serif 4 italic — latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Serif 4 italic — latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic-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;
}
/* Source Serif 4 normal — latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Serif 4 normal — latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-normal-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 {
  --bg:          #FBF8F2;   /* crema chiaro       */
  --bg-tint:     #F2EFE6;   /* fascia servizi     */
  --surface:     #FFFFFF;
  --ink:         #2E3235;   /* testo              */
  --ink-soft:    #5C6166;   /* testo secondario   */
  --line:        #E2DDD2;   /* filetti            */
  --accent:      #B5694D;   /* terracotta         */
  --accent-deep: #97533A;
  --sage:        #6F8060;   /* salvia             */
  --dark:        #2E3235;   /* fascia contatti    */
  --accent-soft: #F6E8E1;   /* retro schede       */
  --sage-soft:   #E7EDE1;
  --ochre:       #BF9448;   /* ocra, terzo colore */
  --ochre-soft:  #F5ECDA;
  --ochre-deep:  #8C6A2A;
  --sage-deep:   #56654A;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Source Serif 4", Georgia, "Times New Roman", serif;

  --h2-size: clamp(1.3rem, 2.1vw, 1.6rem);   /* titoli di sezione e frase "Cosa mi muove" */
  --maxw: 1240px;
  --label-w: 170px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, calc(9vw - 12px), 8rem);
}

/* testo solo per gli screen reader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
}
.brand__mark { width: 30px; }

.nav__right { display: flex; align-items: center; gap: 1.2rem; }
.nav__contact {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.45rem 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}
.nav__contact:hover { background: var(--accent); color: #fff; }

.lang { display: flex; gap: 0.2rem; border-left: 1px solid var(--line); padding-left: 0.9rem; }
.lang button {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 0.3rem 0.4rem;
  cursor: pointer;
}
.lang button:hover { color: var(--accent); }
.lang button.is-active { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}

.hero__role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.social { display: flex; gap: 0.5rem; margin-bottom: 1.3rem; }
.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.social svg { width: 15px; height: 15px; fill: currentColor; }

.hero__lead {
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44em;
  margin-bottom: 1.8rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__photo {
  width: 100%;
  max-width: 170px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 50%, var(--sage) 50%);
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  border: 4px solid var(--bg);
}

/* ---------- Sezioni ---------- */
.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}
.section--tint { background: var(--bg-tint); }

/* riga: etichetta a sinistra, contenuto a destra */
.row {
  display: grid;
  grid-template-columns: var(--label-w) 1fr;
  gap: 2rem;
}
.row__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.45rem;
}
.row__label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: var(--accent);
}

.mission {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  line-height: 1.35;
  max-width: 44em;
}

/* chi sono: tre pallini con titolo a sinistra, testo che si apre a destra */
.about-tabs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.2rem;
  align-items: start;
}
.about-tab--1, .about-panel--1 { --c: var(--accent); --c-text: var(--accent-deep); }
.about-tab--2, .about-panel--2 { --c: var(--ochre);  --c-text: var(--ochre-deep); }
.about-tab--3, .about-panel--3 { --c: var(--sage);   --c-text: var(--sage-deep); }

.about-tabs__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-tabs__list::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--ochre) 50%, var(--sage));
}
.about-tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 0;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  color: var(--ink-soft);
  cursor: pointer;
}
.about-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.about-tab__dot {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px var(--bg);
  transition: transform 0.25s, box-shadow 0.25s;
}
.about-tab.is-active .about-tab__dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--c);
}
.about-tab__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  transition: color 0.2s;
}
.about-tab:hover .about-tab__title,
.about-tab.is-active .about-tab__title { color: var(--c-text); }

.about-tabs__panels { display: grid; }
.about-panel {
  padding-top: 0.1rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.65;
  outline: none;
}
.about-panel + .about-panel { margin-top: 1.6rem; }
.about-list { list-style: none; display: grid; gap: 0.85rem; }
.about-list li { position: relative; padding-left: 1.5rem; }
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
}
.about-panel strong { font-weight: 600; color: var(--c-text); }

/* con JavaScript: un solo pannello visibile, che scorre dentro di lato */
.js .about-panel {
  grid-area: 1 / 1;
  align-self: start;
  margin-top: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}
.js .about-panel.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
@keyframes about-in {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .about-panel { transform: none; transition: none; animation: none !important; }
}

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--h2-size);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.intro { color: var(--ink-soft); font-size: 1.12rem; }

/* titolo dei servizi: IA e dati ⇄ impatto sociale */
.title--duo { margin-bottom: 1rem; }
.duo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
.duo__a { color: var(--accent-deep); }
.duo__b { color: var(--sage-deep); }
.duo__arrows { flex: none; width: 64px; height: 26px; }
.duo__arrows path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.duo__to { stroke: var(--accent); }
.duo__from { stroke: var(--sage); }

/* ---------- Servizi: due lati della stessa medaglia ---------- */
.soul-tabs {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-areas: "subs subs" "side panels";
  gap: 2rem 3rem;
  align-items: start;
  margin-top: 2.4rem;
  margin-left: calc(var(--label-w) + 2rem);
}
.soul-tab--1, .soul-panel--1, .soul-sub--1 { --c: var(--accent); --cd: var(--accent-deep); --cs: var(--accent-soft); }
.soul-tab--2, .soul-panel--2, .soul-sub--2 { --c: var(--sage);   --cd: var(--sage-deep);   --cs: var(--sage-soft); }

/* la moneta: da un lato "Tecnologia e impatto sociale", dall'altro "Digitale per l'impatto sociale" */
.soul-coin { width: 180px; height: 180px; perspective: 900px; cursor: pointer; }
.soul-coin__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.soul-tabs[data-side="2"] .soul-coin__inner { transform: rotateY(180deg); }
.soul-coin__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  padding: 1.4rem;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.28);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.soul-coin__face--1 { background: var(--accent); }
.soul-coin__face--2 { background: var(--sage); transform: rotateY(180deg); }

.soul-tabs__side { grid-area: side; }
.soul-tabs__list { display: flex; justify-content: center; gap: 0.6rem; width: 180px; margin-top: 1rem; }
.soul-tab {
  width: 24px;
  height: 24px;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  background-clip: content-box;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.25s, box-shadow 0.25s;
}
.soul-tab:hover { opacity: 0.75; }
.soul-tab.is-active { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--c); }
.soul-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.soul-tabs__panels { grid-area: panels; display: grid; }
.soul-panel { outline: none; }
.soul-panel + .soul-panel { margin-top: 2rem; }
.soul-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2.4rem;
}
.soul-list li { position: relative; padding-left: 1.4rem; }
.soul-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
}
.soul-list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--cd);
  margin-bottom: 0.35rem;
}
.soul-list p { font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }
/* secondo lato: tre servizi, quello a destra (MEL) centrato in altezza tra i due a sinistra */
.soul-panel--2 .soul-list li:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }


/* a chi si rivolge il lato scelto: testo nel colore del lato, sopra moneta ed elenco */
.soul-subs { grid-area: subs; display: grid; }
.soul-sub {
  padding-left: calc(180px + 3rem);
  color: var(--cd);
  font-size: 1.06rem;
  line-height: 1.55;
}
.js .soul-sub {
  grid-area: 1 / 1;
  align-self: start;
  margin-top: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}
.js .soul-tabs[data-side="1"] .soul-sub--1,
.js .soul-tabs[data-side="2"] .soul-sub--2 {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* i pannelli a schede seguono l'altezza del testo visibile, con una transizione morbida */
.js .about-tabs__panels,
.js .soul-tabs__panels,
.js .soul-subs { overflow-y: clip; transition: height 0.35s ease; }

/* con JavaScript: un lato alla volta, che scorre dentro di lato */
.js .soul-panel {
  grid-area: 1 / 1;
  align-self: start;
  margin-top: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}
.js .soul-panel.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .soul-coin__inner, .js .soul-panel, .js .soul-sub { transition: none; transform: none; }
  .soul-tabs[data-side="2"] .soul-coin__inner { transform: none; }
  .soul-coin__face--2 { transform: none; opacity: 0; }
  .soul-tabs[data-side="2"] .soul-coin__face--2 { opacity: 1; }
}

/* trasversale: una riga che vale per entrambi i lati */
.cross {
  margin: 2.6rem 0 0 calc(var(--label-w) + 2rem);
  padding: 1.1rem 1.5rem 1.2rem;
  background: var(--ochre-soft);
  border-left: 3px solid var(--ochre);
  border-radius: 0 6px 6px 0;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--ochre-deep);
}
.cross__label {
  margin-right: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}

/* link alle pubblicazioni */
.more { margin: 1.4rem 0 0 calc(var(--label-w) + 2rem); }
.more--inline { margin: 2rem 0 0; }
.more__link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1rem;
  transition: color 0.2s;
}
.more__link::after { content: " \2192"; }
.more__link:hover { color: var(--accent); }

/* ---------- Pagina pubblicazioni ---------- */
.pub-back {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.pub-back::before { content: "\2190  "; }
.pub-back:hover { color: var(--accent); }
.pub-actions { margin-top: 1.6rem; }
.pub-group { --c: var(--accent); --c-text: var(--accent-deep); --c-soft: var(--accent-soft); margin-top: 3.2rem; }
.pub-group--2 { --c: var(--sage); --c-text: var(--sage-deep); --c-soft: var(--sage-soft); }
.pub-group--3 { --c: var(--ochre); --c-text: var(--ochre-deep); }
.pub-group__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--c);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--c-text);
}
.pub-group__title::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
}
.pub-list { list-style: none; }
.pub-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.pub-title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.35; }
.pub-authors { margin-top: 0.3rem; font-size: 0.95rem; color: var(--ink-soft); }
.pub-authors strong { font-weight: 600; color: var(--ink); }
.pub-venue { margin-top: 0.2rem; font-size: 0.95rem; font-style: italic; color: var(--c-text); }
.pub-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.pub-tags li {
  padding: 0.12rem 0.65rem;
  border-radius: 999px;
  background: var(--c-soft);
  color: var(--c-text);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

/* ---------- Con chi lavoro: pillole ---------- */
#per-chi { padding-block: clamp(2.5rem, 5vw, 3.8rem); }
.clients { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.clients li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.clients li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.clients li:nth-child(3n+2)::before { background: var(--ochre); }
.clients li:nth-child(3n)::before { background: var(--sage); }

/* ---------- Contatti ---------- */
.section--dark {
  background: var(--dark);
  color: #F4F1EA;
  border-top: 0;
}
.section--dark .row__label,
.section--dark .intro { color: #B9BCB8; }

.contact__email {
  display: inline-block;
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.15rem;
  word-break: break-all;
  transition: color 0.2s;
}
.contact__email:hover { color: #E8B8A4; }

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 1.8rem;
  font-size: 0.95rem;
}
.contact__links a { text-decoration: none; color: #F4F1EA; }
.contact__links a::after { content: " \2197"; color: #E8B8A4; }
.contact__links a:hover { color: #E8B8A4; }


/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: #8F9491;
  font-size: 0.85rem;
  border-top: 1px solid #454a4d;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}
.footer__id { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; }
.footer__nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.4rem; }
.footer__nav a { color: #C9CCC8; text-decoration: none; transition: color 0.2s; }
.footer__nav a:hover { color: #E8B8A4; }
.footer__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #555b5e;
  border-radius: 50%;
}
.footer__icon:hover { border-color: #E8B8A4; }
.footer__icon svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- Biglietto da visita digitale (card.html) ---------- */
.vcard-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 2rem 1rem;
}
.vcard {
  position: relative;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px -30px rgba(46, 50, 53, 0.4);
  text-align: center;
}
.vcard__stripe { height: 6px; background: linear-gradient(90deg, var(--accent) 50%, var(--sage) 50%); }
.vcard__lang { position: absolute; top: 18px; right: 16px; border-left: 0; padding-left: 0; }
.vcard__body { padding: 2.2rem 1.8rem 1.6rem; }

.vcard__photo {
  width: 124px;
  margin: 0 auto 1.1rem;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 50%, var(--sage) 50%);
}
.vcard__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  border: 4px solid var(--surface);
}
.vcard__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
}
.vcard__role {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--accent);
}
.vcard__souls { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 1.1rem; }
.vcard__soul {
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.86rem;
}
.vcard__soul--1 { background: var(--accent-soft); color: var(--accent-deep); }
.vcard__soul--2 { background: var(--sage-soft); color: var(--sage-deep); }

.vcard__actions { display: grid; gap: 0.6rem; margin-top: 1.6rem; }
.vcard__save { display: block; text-align: center; padding-block: 0.9rem; font-size: 1rem; }
.vcard__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.vcard__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.vcard__btn:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.vcard__btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vcard__btn svg.is-solid { fill: currentColor; stroke: none; }
.vcard__site {
  justify-self: center;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.vcard__site::after { content: " \2192"; }
.vcard__site:hover { color: var(--accent); }

.vcard__qr { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.vcard__qr img { width: 180px; height: 180px; margin: 0 auto 0.6rem; image-rendering: pixelated; }
.vcard__qr p { font-size: 0.88rem; color: var(--ink-soft); max-width: 18em; margin-inline: auto; }
.vcard__foot { padding: 0 1rem 1.3rem; font-size: 0.78rem; color: var(--ink-soft); }

/* comparsa morbida delle sezioni allo scorrimento */
.js .reveal > .container { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in > .container { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal > .container { opacity: 1; transform: none; transition: none; }
  .js .about-tabs__panels, .js .soul-tabs__panels, .js .soul-subs { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-tabs { grid-template-columns: 1fr; gap: 1.8rem; margin-left: 0; }
  .soul-tabs { grid-template-columns: 1fr; grid-template-areas: "subs" "side" "panels"; gap: 1.8rem; margin-left: 0; }
  .soul-tabs__list { margin-inline: auto; width: 150px; }
  .soul-sub { padding-left: 0; }
  .soul-coin { width: 150px; height: 150px; margin-inline: auto; }
  .soul-coin__face { font-size: 1rem; padding: 1.2rem; }
  .soul-list { grid-template-columns: 1fr; gap: 1.4rem; }
  .soul-panel--2 .soul-list li:nth-child(2) { grid-column: auto; grid-row: auto; }
  .js .soul-panel { display: none; }
  .js .soul-panel.is-active { display: block; animation: about-in 0.35s ease; }
  .cross { margin-left: 0; }
  .more { margin-left: 0; }
  /* su telefono niente spazio riservato: si vede solo il testo scelto */
  .js .about-panel { display: none; }
  .js .about-panel.is-active { display: block; animation: about-in 0.35s ease; }
}

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero__photo { max-width: 110px; }
  .hero__photo img { aspect-ratio: 1; border-radius: 50%; }

  .row { grid-template-columns: 1fr; gap: 0.9rem; }
  .row__label { padding-top: 0; }
}

@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 auto; text-align: center; }
  .brand { font-size: 1.05rem; }
  .nav__right { gap: 0.7rem; }
  .nav__contact { padding: 0.4rem 0.7rem; }
  .lang { padding-left: 0.5rem; }
}
