/* Scuola del Lago — pagina del Dott. Stefano Albano.
   Usa i token e i componenti di landing.css / sezioni.css (e acque.css per il tema scuro). */

/* Presentazione: ritratto e dati principali */
.profile-hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(55% 60% at 18% 30%, rgba(1, 161, 194, 0.14), transparent 70%),
    linear-gradient(180deg, #eef7f8 0%, var(--bg) 90%);
}
[data-theme="acque"] .profile-hero {
  background:
    radial-gradient(45% 55% at 22% 35%, rgba(193, 170, 114, 0.12), transparent 70%),
    linear-gradient(180deg, var(--deep-1) 0%, var(--deep-2) 100%);
}
.profile-hero__inner {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.profile-hero__photo { margin: 0 14px 14px 0; position: relative; isolation: isolate; justify-self: center; width: min(100%, 360px); }
.profile-hero__photo img {
  display: block; width: 100%; height: auto; border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 48, 94, 0.22);
}
/* cornice sottile sfalsata, nel colore del tema */
.profile-hero__photo::before {
  content: ''; position: absolute; inset: 0; border-radius: 22px;
  border: 1.5px solid var(--cyan); transform: translate(14px, 14px); z-index: -1;
}
[data-theme="acque"] .profile-hero__photo img { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
[data-theme="acque"] .profile-hero__photo::before { border-color: var(--gold); }

.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.6rem;
  font-family: var(--sans); font-size: 0.86rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.back-link:hover { color: var(--blue); }
.back-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.back-link:hover .icon { transform: translateX(-3px); }

.profile-hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.02; margin-bottom: 1rem; }
.profile-hero__role { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; color: var(--ink-soft); max-width: 30em; }

.profile-facts { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.profile-facts li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 0.88rem; color: var(--ink); }
.profile-facts .icon { width: 18px; height: 18px; color: var(--cyan); }
[data-theme="acque"] .profile-facts .icon { color: var(--gold); }

.profile-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.profile-contacts a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--blue); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.profile-contacts a:hover { border-color: var(--blue); transform: translateY(-2px); }
.profile-contacts .icon { width: 18px; height: 18px; }
[data-theme="acque"] .profile-contacts a { color: var(--cream); border-color: rgba(193, 170, 114, 0.55); background: rgba(193, 170, 114, 0.1); }
[data-theme="acque"] .profile-contacts .icon { color: var(--gold-light); }

/* Profilo: una frase guida e due paragrafi */
.profile-intro .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.profile-quote { margin: 0; padding-left: clamp(20px, 3vw, 32px); border-left: 2px solid var(--cyan); }
[data-theme="acque"] .profile-quote { border-left-color: var(--gold); }
.profile-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.25; color: var(--ink); text-wrap: balance; }
.profile-intro__text .lead + .lead { margin-top: 1rem; }

/* Approccio: undici schede in tre colonne, senza scheda in evidenza */
.offer.approach { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.approach h3 { font-size: 1.45rem; line-height: 1.2; }
.approach p { font-size: 1rem; }
.approach li:nth-child(5) { --tone: var(--cyan); --tone-soft: var(--cyan-soft); }
.approach li:nth-child(6) { --tone: var(--blue); --tone-soft: var(--blue-soft); }
.approach li:nth-child(7) { --tone: var(--teal); --tone-soft: var(--teal-soft); }
.approach li:nth-child(8) { --tone: var(--sand); --tone-soft: var(--sand-soft); }
.approach li:nth-child(9) { --tone: var(--cyan); --tone-soft: var(--cyan-soft); }
.approach li:nth-child(10) { --tone: var(--blue); --tone-soft: var(--blue-soft); }
.approach li:nth-child(11) { --tone: var(--teal); --tone-soft: var(--teal-soft); }
[lang="zh"] { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; font-style: normal; }

/* Competenze */
.competences__list { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.competences__list li { position: relative; padding: 1.1rem 0 1.1rem 2rem; border-top: 1px solid var(--line); color: var(--ink-soft); }
.competences__list li:last-child { border-bottom: 1px solid var(--line); }
.competences__list li::before {
  content: ''; position: absolute; left: 0.3rem; top: 1.75rem; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
}
[data-theme="acque"] .competences__list li::before { background: var(--gold); }
.competences__list strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--blue); }
[data-theme="acque"] .competences__list strong { color: var(--gold-light); }

/* Curriculum: gruppi in due colonne, voci con ruolo, luogo e nota */
.cv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.cv__group h3 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.6rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line);
}
[data-theme="acque"] .cv__group h3 { color: var(--gold); font-weight: 500; }
.cv__list { list-style: none; margin: 0; padding: 0; }
.cv__list li { position: relative; padding: 0.9rem 0 0.9rem 1.4rem; }
.cv__list li + li { border-top: 1px dashed var(--line); }
.cv__list li::before {
  content: ''; position: absolute; left: 0; top: 1.45rem; width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--cyan);
}
[data-theme="acque"] .cv__list li::before { border-color: var(--gold); }
.cv__what { display: block; font-family: var(--serif); font-size: 1.22rem; line-height: 1.3; color: var(--ink); }
.cv__where { display: block; margin-top: 0.2rem; font-family: var(--sans); font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }
.cv__note { display: block; margin-top: 0.4rem; font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }

/* Invito finale */
.profile-cta__inner { text-align: center; }
.profile-cta .lead { margin: 1rem auto 2rem; }
.profile-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 960px) {
  .profile-hero__inner, .profile-intro .wrap, .cv { grid-template-columns: 1fr; }
  .offer.approach { grid-template-columns: 1fr; }
  .profile-hero__photo { width: min(70%, 300px); }
}
@media (max-width: 760px) {
  .profile-hero__text { text-align: center; }
  .profile-facts, .profile-contacts { justify-content: center; }
  .profile-hero__role { margin: 0 auto; }
}
