/* ==========================================================================
   avotech.it — design system "editoriale caldo"
   Display: Fraunces · Testo: Hanken Grotesk · Palette: inchiostro caldo / avorio / bronzo
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-italic-400.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../assets/fonts/hanken-grotesk-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #211c15;
  --ink-2: #2a241b;
  --ink-3: #332c21;
  --line-dark: #423a2d;
  --cream: #f7f1e4;
  --cream-2: #efe6d2;
  --cream-3: #e7dcc3;
  --line-light: #d9cdb2;
  --accent: #b06a32;
  --accent-deep: #8d5226;
  --text: #2a241b;
  --muted: #6f6655;
  --text-inv: #f3ecdc;
  --muted-inv: #a89d86;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Segoe UI', sans-serif;
  --w: min(1140px, calc(100vw - 3rem));
  --ease: cubic-bezier(.22, .8, .26, .99);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: .6rem 1.2rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: var(--w); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(33, 28, 21, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  color: var(--text-inv); text-decoration: none;
}
.brand img { width: 44px; height: 44px; }
.brand b {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  letter-spacing: .02em;
}
.brand b::after { content: '.'; color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a {
  color: var(--muted-inv); text-decoration: none; font-size: .92rem;
  font-weight: 500; letter-spacing: .04em;
  transition: color .25s;
}
.site-nav a:hover { color: var(--text-inv); }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta).is-active { color: var(--text-inv); }
.site-nav a:not(.nav-cta).is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.45rem;
  height: 2px; background: var(--accent);
}
.site-nav a.nav-cta {
  color: var(--ink); background: var(--cream);
  padding: .55rem 1.25rem; border-radius: 999px; font-weight: 700;
  transition: background .25s, color .25s;
}
.site-nav a.nav-cta:hover, .site-nav a.nav-cta.is-active { background: var(--accent); color: #fff; }

/* Navigazione delle pagine secondarie (legali, 404): sempre visibile, anche su mobile */
.legal-nav { display: flex; align-items: center; }
.legal-nav a {
  color: var(--muted-inv); text-decoration: none; font-size: .92rem;
  font-weight: 500; letter-spacing: .04em; transition: color .25s;
}
.legal-nav a:hover { color: var(--text-inv); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; position: absolute; left: 10px;
  width: 24px; height: 2px; background: var(--text-inv);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; gap: 2.2rem;
    background: rgba(33, 28, 21, .97);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav a { font-size: 1.35rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--ink); color: var(--text-inv);
  padding: clamp(8rem, 16vh, 11rem) 0 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(176, 106, 50, .14), transparent 65%),
    radial-gradient(ellipse 55% 45% at 12% 85%, rgba(176, 106, 50, .07), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-grid {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding-bottom: clamp(3rem, 7vh, 5rem);
}

.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: .8rem;
}
.kicker::before { content: ''; width: 2.4rem; height: 1px; background: var(--accent); }

.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.06; letter-spacing: -.015em;
  margin: 1.4rem 0 1.6rem;
}
.hero h1 em {
  font-style: italic; font-weight: 400; color: var(--accent);
  letter-spacing: 0;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.75;
  color: var(--muted-inv); max-width: 34em; margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  padding: .95rem 1.9rem; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateY(3px); }
.btn-ghost {
  background: transparent; color: var(--text-inv);
  border: 1px solid var(--line-dark);
}
.btn-ghost:hover { background: var(--ink-3); color: var(--text-inv); border-color: var(--muted-inv); }

.hero-figure { position: relative; justify-self: end; }
.hero-figure .portrait {
  width: clamp(260px, 32vw, 420px); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  padding: clamp(.9rem, 1.4vw, 1.3rem);
  position: relative; z-index: 1;
}
.hero-figure .portrait img { border-radius: 50%; }
.hero-figure::after {
  content: ''; position: absolute; inset: -9% -9% auto auto;
  width: 56%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed var(--line-dark);
  animation: spin 60s linear infinite;
  z-index: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-badge {
  position: absolute; left: -6%; bottom: 6%; z-index: 2;
  background: var(--cream); color: var(--ink);
  font-size: .8rem; font-weight: 700; line-height: 1.35;
  padding: .8rem 1.1rem; border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
  max-width: 200px;
}
.hero-badge i { font-style: normal; color: var(--accent-deep); display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .15rem; }

.hero-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(42, 36, 27, .88); backdrop-filter: blur(4px);
  border: 1px solid var(--line-dark); border-radius: 999px;
  color: var(--text-inv); font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; padding: .5rem 1rem; white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.hero-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.chip-1 { top: 4%; left: -14%; animation-delay: 0s; }
.chip-2 { top: 38%; right: -12%; animation-delay: 2.3s; }
.chip-3 { bottom: -4%; right: 4%; animation-delay: 4.1s; }
.chip-4 { top: 60%; left: -15%; animation-delay: 5.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-stats {
  border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(1.6rem, 3.5vh, 2.4rem) 0 clamp(2.2rem, 5vh, 3.2rem);
  gap: 1.5rem;
}
.stat { text-align: left; }
.stat b {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.3rem, 3.8vw, 3.2rem); line-height: 1;
  display: block; color: var(--text-inv);
}
.stat b sup { font-size: .6em; color: var(--accent); top: -.35em; position: relative; margin-left: .06em; }
.stat > span {
  display: block; margin-top: .55rem;
  font-size: .88rem; letter-spacing: .03em; color: var(--muted-inv);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { justify-self: center; order: -1; }
  .hero-figure .portrait { width: clamp(220px, 56vw, 300px); margin-inline: auto; }
  /* su mobile niente chip flottanti (coprivano il viso); il badge resta flottante (copre solo l'angolo) */
  .hero-chip { display: none; }
  .hero-badge { left: auto; right: -4%; bottom: -3%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Sezioni editoriali
   -------------------------------------------------------------------------- */
.section { padding: clamp(4.5rem, 11vh, 7.5rem) 0; }
.section-head { margin-bottom: clamp(2.6rem, 6vh, 4rem); max-width: 46em; }
.eyebrow {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 1.1rem;
}
.eyebrow .num {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  letter-spacing: 0; color: var(--text);
}
.dark .eyebrow { color: var(--accent); }
.dark .eyebrow .num { color: var(--text-inv); }
.section h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.12;
  letter-spacing: -.01em;
}
.section-head p { margin-top: 1.2rem; color: var(--muted); font-size: 1.05rem; }
.dark .section-head p { color: var(--muted-inv); }

.rule { border: 0; border-top: 1px solid var(--line-light); }

/* ---- 01 Chi sono ---- */
.about-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.about-copy p + p { margin-top: 1.15rem; }
.about-copy .lead-quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45;
  color: var(--ink); border-left: 2px solid var(--accent);
  padding-left: 1.4rem; margin: 0 0 1.6rem;
}
.pillars { margin-top: 2.4rem; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.pillar {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line-light);
}
.pillar .n {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  color: var(--accent-deep);
}
.pillar h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.pillar p { font-size: .97rem; color: var(--muted); }

.about-aside { display: flex; flex-direction: column; gap: 1.6rem; }
.about-card {
  background: var(--cream-2); border: 1px solid var(--line-light);
  border-radius: 16px; padding: 1.8rem;
}
.about-card h3 {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 1rem;
}
.about-card ul { list-style: none; }
.about-card li {
  padding: .5rem 0 .5rem 1.5rem; position: relative;
  font-size: .95rem; border-bottom: 1px solid var(--line-light);
}
.about-card li:last-child { border-bottom: 0; }
.about-card li::before {
  content: ''; position: absolute; left: 0; top: 1.05rem;
  width: .55rem; height: 1px; background: var(--accent);
}
.about-note { font-size: .95rem; }
.about-meta { font-size: .92rem; color: var(--muted); display: grid; gap: .4rem; margin-top: 1rem; }
.about-meta a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.about-meta a:hover { text-decoration: underline; }

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---- 02 Percorso (timeline) ---- */
.band { background: var(--cream-2); }
.timeline {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-light);
  border: 1px solid var(--line-light); border-radius: 18px; overflow: hidden;
}
.milestone { background: var(--cream); padding: 1.6rem 1.5rem 1.8rem; transition: background .3s; }
.milestone:hover { background: #fffdf6; }
.milestone .year {
  font-family: var(--serif); font-weight: 600; font-size: 1.7rem;
  color: var(--accent-deep); display: block; margin-bottom: .5rem;
}
.milestone p { font-size: .93rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

/* ---- 03 Competenze (dark) ---- */
.dark { background: var(--ink); color: var(--text-inv); }
.dark h2 { color: var(--text-inv); }
.skills-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem;
}
.skill-card {
  border: 1px solid var(--line-dark); border-radius: 18px;
  padding: 2rem 1.9rem; background: var(--ink-2);
  transition: border-color .3s, transform .3s var(--ease);
  position: relative; overflow: hidden;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.skill-card .n {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 2.6rem; color: var(--accent); opacity: .55;
  position: absolute; top: .9rem; right: 1.4rem; line-height: 1;
}
.skill-card h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  margin-bottom: .7rem; padding-right: 3rem;
}
.skill-card p { font-size: .96rem; color: var(--muted-inv); }

.tech-list {
  margin-top: 3rem; padding-top: 2.2rem; border-top: 1px solid var(--line-dark);
}
.tech-list h3 {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.3rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; }
.tags li {
  font-size: .87rem; font-weight: 500; color: var(--text-inv);
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: .42rem 1rem; transition: border-color .25s, background .25s;
}
.tags li:hover { border-color: var(--accent); background: var(--ink-3); }
@media (max-width: 720px) { .skills-grid { grid-template-columns: 1fr; } }

/* ---- 04 Progetti ---- */
.project {
  display: grid; grid-template-columns: .92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(2.6rem, 6vh, 4rem) 0;
  border-top: 1px solid var(--line-light);
}
.project:last-of-type { border-bottom: 1px solid var(--line-light); }
.project:nth-child(even) .project-media { order: 2; }
.project-media { position: relative; }
.project-media img {
  border-radius: 18px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: saturate(.88) sepia(.06);
}
.project .idx {
  display: block; margin-bottom: .6rem;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 2.1rem; color: var(--accent); line-height: 1;
}
.project h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2;
  margin-bottom: .9rem;
}
.project p { font-size: .98rem; color: var(--muted); }
.project-outcome {
  margin-top: 1.2rem; padding-top: .95rem;
  border-top: 1px solid var(--line-light);
  font-size: .96rem; color: var(--text);
}
.project-outcome b {
  display: inline-block; margin-right: .55rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-deep);
}
.project .tags { margin-top: 1.3rem; }
.project .tags li { color: var(--text); border-color: var(--line-light); }
.project .tags li:hover { background: var(--cream-2); border-color: var(--accent-deep); }
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
}

.context-quote {
  margin: clamp(2.6rem, 6vh, 4rem) auto 0; max-width: 46em; text-align: center;
}
.context-quote blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; color: var(--ink);
}
.context-quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .88rem; color: var(--muted); letter-spacing: .04em; }

.mid-cta {
  margin-top: clamp(2.8rem, 7vh, 4.5rem); text-align: center;
}
.mid-cta a {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem;
  color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.mid-cta a:hover { border-bottom-color: var(--accent-deep); }

/* ---- Blocco bandiera "Fronte 2026" (AI) ---- */
.flagship {
  margin-top: clamp(2.8rem, 7vh, 4.5rem);
  background: var(--ink); color: var(--text-inv);
  border-radius: 20px; overflow: hidden; position: relative;
}
.flagship::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 85% 12%, rgba(176, 106, 50, .16), transparent 62%);
}
.flagship-inner { position: relative; padding: clamp(2rem, 5vw, 3.6rem); }
.flagship-eyebrow {
  display: flex; align-items: center; gap: .8rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem;
}
.flagship-eyebrow::before { content: ''; width: 2.4rem; height: 1px; background: var(--accent); }
.flagship-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12;
  letter-spacing: -.01em; color: var(--text-inv); margin-bottom: 1.2rem;
}
.flagship-lead {
  font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.75;
  color: var(--muted-inv); max-width: 62ch; margin-bottom: 2.2rem;
}
.flagship-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  border-top: 1px solid var(--line-dark); padding-top: 1.9rem;
}
.fstat b {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.05; color: var(--text-inv);
}
.fstat b i { font-style: normal; color: var(--accent); }
.fstat > span {
  display: block; margin-top: .5rem; font-size: .85rem;
  letter-spacing: .03em; color: var(--muted-inv);
}
@media (max-width: 640px) { .flagship-stats { grid-template-columns: 1fr; gap: 1.1rem; } }

/* ---- 05 Dal mio LinkedIn ---- */
.lk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.lk-card {
  background: var(--cream-2); border: 1px solid var(--line-light);
  border-radius: 18px; overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.lk-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.lk-card-link {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
}
.lk-img {
  aspect-ratio: 16 / 9; background: var(--cream-3);
  border-bottom: 1px solid var(--line-light); overflow: hidden;
}
.lk-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) sepia(.05); }
.lk-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.lk-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .65rem; }
.lk-pill {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-deep);
  background: var(--cream-3); border: 1px solid var(--line-light);
  border-radius: 999px; padding: .25rem .7rem;
}
.lk-date { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.lk-title {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  line-height: 1.2; margin-bottom: .5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lk-excerpt {
  font-size: .92rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lk-read {
  font-size: .85rem; font-weight: 700; color: var(--accent-deep);
  border-top: 1px solid var(--line-light); padding-top: .75rem;
  transition: color .25s;
}
.lk-card:hover .lk-read { color: var(--accent); }
.lk-cta { margin-top: clamp(2rem, 5vh, 3rem); text-align: center; }
.btn-linkedin {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  padding: .9rem 1.8rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  transition: background .25s, transform .25s var(--ease);
}
.btn-linkedin:hover { background: var(--accent-deep); transform: translateY(-2px); }
@media (max-width: 860px) { .lk-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lk-grid { grid-template-columns: 1fr; } }

/* ---- 06 Contatti ---- */
.contact-grid {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.contact-info { display: grid; gap: 1.5rem; align-content: start; }
.contact-item { border-top: 1px solid var(--line-dark); padding-top: 1.2rem; }
.contact-item h3 {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .4rem;
}
.contact-item a { color: var(--text-inv); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.contact-item a:hover { color: var(--accent); }
.contact-item p { color: var(--muted-inv); font-size: .92rem; }
.socials { display: flex; gap: .8rem; margin-top: .4rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%;
  color: var(--text-inv); transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.socials a:hover { border-color: var(--accent); background: var(--ink-3); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }

.contact-form {
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: 20px; padding: clamp(1.6rem, 3vw, 2.4rem);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-inv); margin-bottom: .45rem;
}
.field input, .field textarea {
  width: 100%; background: var(--ink); color: var(--text-inv);
  border: 1px solid var(--line-dark); border-radius: 10px;
  padding: .85rem 1rem; font: inherit; font-size: 1rem;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.consent { display: flex; gap: .7rem; align-items: flex-start; margin: 1.2rem 0 1.5rem; }
.consent input { width: 18px; height: 18px; margin-top: .25rem; accent-color: var(--accent); flex: none; }
.consent label { font-size: .85rem; color: var(--muted-inv); line-height: 1.55; }
.consent a { color: var(--text-inv); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.btn-submit {
  width: 100%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 700; font-size: 1.02rem;
  padding: 1rem; border-radius: 999px;
  transition: background .25s, transform .2s var(--ease);
}
.btn-submit:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-submit[disabled] { opacity: .6; cursor: wait; transform: none; }

.form-status { margin-top: 1rem; font-size: .95rem; display: none; padding: .9rem 1.1rem; border-radius: 10px; }
.form-status.ok { display: block; background: #233322; color: #b9d8a8; border: 1px solid #3c5a36; }
.form-status.err { display: block; background: #3a2421; color: #e8b1a5; border: 1px solid #6a3c33; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: var(--muted-inv);
  border-top: 1px solid var(--line-dark);
  padding: 2.4rem 0;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.2rem;
}
.site-footer .brand b { font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; }
.footer-links a { color: var(--muted-inv); text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: var(--text-inv); }
.site-footer small { font-size: .82rem; }

/* --------------------------------------------------------------------------
   Pagine legali
   -------------------------------------------------------------------------- */
.legal-page { background: var(--cream); }
.legal-hero { background: var(--ink); color: var(--text-inv); padding: 9rem 0 3.5rem; }
.legal-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem); }
.legal-body { padding: 3.5rem 0 5rem; max-width: 760px; }
.legal-body h2 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 2.2rem 0 .8rem; }
.legal-body p, .legal-body li { color: var(--muted); font-size: .98rem; }
.legal-body ul { padding-left: 1.3rem; margin: .6rem 0; }
.legal-body a { color: var(--accent-deep); }
.legal-body .updated { font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; }

/* --------------------------------------------------------------------------
   Animazioni reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
