/* =============================================
   Profilo professionale di Isabella Ducros, versione «sole»
   Foglio a sé: la pagina ha una struttura propria (testata fissa,
   cambio IT/EN, sezioni lunghe) e prende dal sito solo i caratteri
   e la palette. Bianco, carbone, grigio-lilla; la vaniglia soltanto
   per la selezione del testo. Nessuna ombra, nessun angolo
   arrotondato, nessuna fascia colorata: le sezioni si separano con
   un filetto. Le animazioni di ingresso (.reveal) restano quelle
   del profilo, sobrie, e si fermano con «riduci movimento».
   ============================================= */

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

:root {
  --bg:           #FFFFFF;
  --text:         #1C1D21;
  --text-muted:   #716A76;
  --accent:       #716A76;
  --accent-dark:  #716A76;
  --accent-light: #F4EEA9;
  --border:       rgba(28, 29, 33, 0.22);
  --radius:       0;
  --max-w:        900px;
  --ff-serif:     "Source Serif 4", Georgia, "Times New Roman", serif;
  --ff-sans:      "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

::selection {
  background: var(--accent-light);
  color: var(--text);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  /* Dissolvenza all'arrivo: la pagina ha una veste diversa dal resto di
     tuttiprompti.it, l'ingresso morbido ammortizza il cambio di stile. */
  animation: pagina-fade 0.8s ease-out both;
}

@keyframes pagina-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Tipografia --- */
h1, h2, h3 {
  font-family: var(--ff-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

h3 { font-weight: 500; }

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2.5rem;
}

p {
  color: var(--text);
  margin-bottom: 1.2rem;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--text); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

strong { font-weight: 600; }

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

section {
  padding: 5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

/* Le sezioni «alt» non hanno più un fondo diverso: le separa lo stesso filetto */
section.alt {
  max-width: var(--max-w);
  background: var(--bg);
  padding: 5rem 2rem;
}

section.alt > .inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* --- Ingresso allo scorrimento --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(.2, .7, .2, 1), transform 0.6s cubic-bezier(.2, .7, .2, 1);
}

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

/* --- Etichetta di sezione --- */
.section-label {
  display: block;
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* =============================================
   TESTATA
   ============================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.3s, border-bottom 0.3s;
}

header.scrolled {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-name {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s;
}

.header-name:hover { color: var(--accent-dark); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
}

.lang-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.1rem 0.25rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.lang-toggle button:hover,
.lang-toggle button.active {
  color: var(--text);
}

.lang-sep { color: var(--border); }

/* =============================================
   APERTURA
   ============================================= */
#hero {
  position: relative;
  overflow: hidden;
  /* Alta quanto la finestra, ma non più del 70% della larghezza: su uno schermo
     stretto e alto (un telefono che mostra la versione da computer) altrimenti
     restano grandi vuoti sopra e sotto il nome (19 ottobre 2026). */
  min-height: 100vh;
  min-height: min(100vh, 70vw);
  display: flex;
  align-items: center;
  padding: 8rem 2rem 6rem;
  max-width: 100%;
  background: var(--bg);
  border-top: 0;
}

.hero-img {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: block;
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: var(--ff-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}

.hero-name::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--text);
  margin-top: 1.5rem;
}

.hero-sub {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s, color 0.2s;
}

.hero-cta:hover {
  color: var(--accent-dark);
  border-color: var(--text);
}

.hero-guide {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-top: 1.5rem;
}

.hero-guide em {
  font-style: italic;
  color: var(--text);
}

/* =============================================
   CHI SONO
   ============================================= */
.chi-sono-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

.chi-sono-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.chi-sono-text p strong {
  color: var(--text);
}

.chi-sono-photo {
  position: sticky;
  top: 6rem;
}

.chi-sono-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

/* =============================================
   COSA POSSO FARE
   ============================================= */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.offer-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 1.5rem 2rem 0;
  border-bottom: 1px solid var(--border);
}

.offer-item:nth-child(odd) {
  padding-right: 2.5rem;
  border-right: 1px solid var(--border);
}

.offer-item:nth-child(even) {
  padding-left: 2.5rem;
  padding-right: 0;
}

/* gli ultimi due senza filetto sotto */
.offer-item:nth-last-child(-n+2) {
  border-bottom: none;
  padding-bottom: 0;
}

.offer-num {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1;
}

.offer-title {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.offer-altro {
  margin: 2.5rem 0 0;
  font-size: 0.98rem;
  color: var(--text);
}

.offer-text {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* =============================================
   ESPERIENZE
   ============================================= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--border);
}

.tl-item {
  position: relative;
  padding: 0 0 3rem 2rem;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: '';
  position: absolute;
  left: -0.35rem;
  top: 0.5rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
}

.tl-year {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.tl-title {
  font-family: var(--ff-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tl-desc {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.tl-desc ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.tl-desc ul li {
  margin-bottom: 0.45rem;
}

.tl-desc ul li:last-child {
  margin-bottom: 0;
}

/* =============================================
   FORMAZIONE
   ============================================= */
.edu-item {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.edu-title {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.edu-meta {
  font-family: var(--ff-sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.edu-thesis {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.edu-focus {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.75;
  margin: 0;
}

/* --- Lingue --- */
.lang-heading {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 3rem;
  margin-bottom: 1.8rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 3rem;
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lang-name {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.lang-detail {
  font-family: var(--ff-sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
}

.lang-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  margin-top: 0.35rem;
}

.lang-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

/* =============================================
   RICERCA
   ============================================= */
.ricerca-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

/* Keep the research columns aligned while allowing content to reflow. */
.ricerca-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ricerca-current,
.ricerca-framework {
  margin-top: auto;
  padding-top: 1.5rem;
}

.ricerca-title {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.ricerca-desc {
  font-family: var(--ff-sans);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.75;
}

.ricerca-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ricerca-list li {
  font-family: var(--ff-sans);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.75;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.ricerca-list li strong {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.ricerca-video {
  display: block;
  margin-top: 1.2rem;
  max-width: 360px;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.ricerca-video:hover {
  border-color: var(--text);
}

.ricerca-video img {
  width: 100%;
  display: block;
}

.ricerca-video-label {
  display: block;
  padding: 0.65rem 0.8rem;
  font-family: var(--ff-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.01em;
}

.ricerca-video-hint {
  font-family: var(--ff-sans);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* =============================================
   CONTATTI (piè di pagina)
   ============================================= */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 5rem 2rem 3rem;
}

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

footer h2 { margin-bottom: 2rem; }

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}

.contatti-photo {
  position: sticky;
  top: 5rem;
}

.contatti-photo img {
  width: 100%;
  display: block;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 6rem;
}

.contact-value {
  font-size: 0.98rem;
  color: var(--text);
}

.contact-value a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.05rem;
  transition: border-color 0.2s, color 0.2s;
}

.contact-value a:hover {
  color: var(--accent-dark);
  border-color: var(--text);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer-copy a { text-decoration: underline; text-underline-offset: 0.18em; }

/* =============================================
   SCHERMI STRETTI (680px)
   ============================================= */
@media (max-width: 680px) {
  section { padding: 4rem 1.25rem; }
  section.alt { padding: 4rem 1.25rem; }

  /* Sul telefono la foto dell'apertura non c'è: l'apertura non occupa più
     tutto lo schermo e non centra il testo in verticale, altrimenti restano
     grandi vuoti sopra il nome e sotto la guida (19 ottobre 2026). */
  header { padding: 1rem 1.25rem; }
  #hero {
    min-height: 0;
    align-items: flex-start;
    padding: 5.5rem 1.25rem 2.5rem;
  }
  .hero-img { display: none; }
  .hero-name { font-size: clamp(2.8rem, 12vw, 4rem); }
  .hero-sub { font-size: 1rem; }

  .chi-sono-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .chi-sono-photo {
    position: static;
    max-width: 280px;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .offer-item {
    padding: 1.5rem 0;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .offer-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
  }

  .ricerca-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .lang-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .timeline { padding-left: 1.5rem; }

  footer { padding: 4rem 1.25rem 2.5rem; }

  .contatti-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contatti-photo {
    position: static;
    max-width: 280px;
  }

  .contact-item { flex-direction: column; gap: 0.15rem; }
  .contact-label { min-width: unset; }
}

/* =============================================
   VERSIONE SCURA (24 settembre 2026)
   Come nel resto del sito (css/scuro.css): vale quando <html> ha
   data-aspetto="scuro", che lo script in testa alla pagina mette
   seguendo il telefono o il computer (o ?aspetto=scuro). Cambiano
   solo le variabili: fondo carbone, testo bianco caldo, grigio-lilla
   schiarito, filetti chiari al 22%. La vaniglia resta per la
   selezione, con il testo in carbone. Le foto sono ritagliate su
   fondo trasparente e stanno bene anche sul carbone. In stampa resta
   la versione chiara.
   Contrasti su #1C1D21: testo #F2F0EC 15,6:1; grigio-lilla #BDB4C2 8,4:1.
   ============================================= */
@media screen {
  html[data-aspetto="scuro"] {
    color-scheme: dark;
    --bg:           #1C1D21;
    --text:         #F2F0EC;
    --text-muted:   #BDB4C2;
    --accent:       #BDB4C2;
    --accent-dark:  #D8D2DC;
    --border:       rgba(242, 240, 236, 0.22);
    background: var(--bg);
  }
  html[data-aspetto="scuro"] ::selection { background: var(--accent-light); color: #1C1D21; }
}

/* Il bottone chiaro/scuro accanto a IT | EN (lo aggiunge ../js/aspetto.js):
   stesso corpo e stesso colore delle lingue, con la sua icona. */
.lang-toggle .aspetto { display: inline-flex; align-items: center; gap: 0.3rem; }
.lang-toggle .aspetto svg { width: 15px; height: 15px; }
