/*
Theme Name: Elisabetta Guidali
Theme URI: https://elisabettaguidali.it
Author: Elisabetta Guidali
Description: tema portfolio su misura per Elisabetta Guidali, marketing manager, consulente e formatrice. Nessun page builder richiesto: i progetti si gestiscono dal menu "Progetti", testi e contatti da Aspetto → Personalizza.
Version: 1.4
Requires at least: 6.2
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: guidali
*/

:root {
  --ink: #16182B;
  --ink-2: #2A2D45;
  --paper: #F6F1E9;
  --paper-2: #EDE5D8;
  --coral: #E4572E;
  --coral-dark: #C2431E;
  --sage: #8FA998;
  --gold: #E9B44C;
  --muted: #6B6A78;
  --line: rgba(22, 24, 43, .12);
  --radius: 22px;
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-title { font-size: clamp(34px, 5vw, 58px); max-width: 16ch; }
.section-title em { font-style: italic; color: var(--coral); font-weight: 500; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { border: 1.5px solid currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 233, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--display); font-size: 24px; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--coral); }
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 600; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--coral); transition: width .25s; }
.main-nav a:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s; }

/* ---------- HERO ---------- */
.hero { padding: clamp(50px, 8vw, 100px) 0 clamp(70px, 9vw, 120px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); font-weight: 600; letter-spacing: -.03em; margin-bottom: 28px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--coral); }
.hero h1 .underline { background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 88%, transparent 88%); }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; }
.hero-photo {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); overflow: hidden; position: relative; z-index: 1;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--coral); transform: translate(18px, 18px);
}
.hero-visual::after {
  content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: var(--gold); left: -4%; top: 2%; z-index: 0;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-photo .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 120px; font-style: italic; color: var(--coral);
  background: radial-gradient(circle at 30% 20%, var(--ink-2), var(--ink));
}
.hero-badge {
  position: absolute; z-index: 2; background: #fff; border-radius: 18px; padding: 16px 20px;
  box-shadow: 0 20px 50px -20px rgba(22,24,43,.35); font-size: 14px; line-height: 1.35;
}
.hero-badge strong { display: block; font-family: var(--display); font-size: 30px; color: var(--coral); }
.hero-badge.b1 { left: -30px; bottom: 30px; }
.hero-badge.b2 { right: -24px; top: 40px; background: var(--ink); color: var(--paper); }
.hero-badge.b2 strong { color: var(--gold); }

.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 20px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: scroll 38s linear infinite; font-family: var(--display); font-size: 26px; font-style: italic; }
.marquee-track span::after { content: "✦"; color: var(--coral); margin-left: 48px; font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- CHI SONO ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.about-quote {
  font-family: var(--display); font-size: clamp(26px, 3vw, 36px); font-style: italic; line-height: 1.3;
  border-left: 3px solid var(--coral); padding-left: 28px; margin: 30px 0 0;
}
.about-text p { font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat strong { font-family: var(--display); font-size: 46px; display: block; line-height: 1; color: var(--ink); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- COMPETENZE ---------- */
.skills { background: var(--ink); color: var(--paper); border-radius: 40px; margin: 0 16px; }
.skills .lead { color: rgba(246,241,233,.75); }
.skills-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 60px; }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-card {
  background: var(--ink-2); border-radius: var(--radius); padding: 34px 28px;
  transition: transform .3s, background .3s; position: relative; overflow: hidden;
}
.skill-card:hover { transform: translateY(-6px); background: var(--coral); }
.skill-card:hover .skill-num, .skill-card:hover li { color: #fff; }
.skill-num { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--gold); margin-bottom: 40px; display: block; }
.skill-card h3 { font-size: 28px; color: #fff; }
.skill-card p { font-size: 15px; color: rgba(246,241,233,.78); }
.skill-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skill-card li { font-size: 12px; font-weight: 600; padding: 5px 11px; border: 1px solid rgba(246,241,233,.25); border-radius: 99px; color: rgba(246,241,233,.85); }

/* ---------- PORTFOLIO ---------- */
.portfolio-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  font: 600 14px var(--body); padding: 10px 18px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink); transition: .2s;
}
.filters button.active, .filters button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s; text-decoration: none;
}
.project:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(22,24,43,.35); }
.project.hidden { display: none; }
.project-img { aspect-ratio: 16/11; overflow: hidden; position: relative; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .project-img img { transform: scale(1.05); }
.project-img .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 64px; font-style: italic; color: rgba(255,255,255,.9); }
.ph-1 { background: linear-gradient(135deg, var(--coral), var(--gold)); }
.ph-2 { background: linear-gradient(135deg, var(--ink), var(--ink-2)); }
.ph-3 { background: linear-gradient(135deg, var(--sage), #5E7F6B); }
.project-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.project-cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }
.project h3 { font-size: 24px; margin-bottom: 10px; }
.project p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- PERCORSO ---------- */
.timeline { margin-top: 50px; border-top: 1px solid var(--line); }
.tl-item { display: grid; grid-template-columns: 180px 1fr 1.3fr; gap: 40px; padding: 34px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.tl-item:hover { background: var(--paper-2); }
.tl-years { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--coral); }
.tl-role h3 { font-size: 26px; margin-bottom: 4px; }
.tl-role span { font-size: 15px; color: var(--muted); font-weight: 600; }
.tl-desc p { font-size: 15.5px; margin-bottom: 10px; }
.tl-train { font-size: 14px; background: #fff; border-radius: 12px; padding: 10px 14px; border-left: 3px solid var(--sage); }
.tl-train b { color: #5E7F6B; }

/* ---------- FORMAZIONE & CONSULENZA ---------- */
.services { background: var(--paper-2); }
.services-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 60px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer {
  background: var(--paper); border-radius: var(--radius); padding: 38px 32px; display: flex; flex-direction: column;
  border: 1.5px solid transparent; transition: border-color .3s, transform .3s;
}
.offer:hover { border-color: var(--ink); transform: translateY(-4px); }
.offer.featured { background: var(--ink); color: var(--paper); }
.offer.featured p, .offer.featured li { color: rgba(246,241,233,.8); }
.offer-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; background: var(--gold); color: var(--ink); margin-bottom: 26px; }
.offer h3 { font-size: 30px; }
.offer p { color: var(--muted); font-size: 15.5px; }
.offer ul { list-style: none; padding: 0; margin: 10px 0 30px; flex: 1; }
.offer li { font-size: 15px; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line); position: relative; }
.offer.featured li { border-color: rgba(246,241,233,.15); }
.offer li::before { content: "→"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.offer .btn { align-self: flex-start; }

.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 80px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--display); font-size: 54px; font-style: italic; color: var(--coral); display: block; line-height: 1; margin-bottom: 14px; }
.step h4 { font-size: 22px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- CONTATTI ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(42px, 7vw, 90px); max-width: 14ch; margin-inline: auto; letter-spacing: -.03em; }
.contact h2 em { color: var(--coral); font-weight: 400; }
.contact .lead { margin: 0 auto 40px; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.contact-form { max-width: 640px; margin: 50px auto 0; text-align: left; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: rgba(246,241,233,.7); padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--paper); text-decoration: none; }

/* ---------- PAGINE INTERNE ---------- */
.page-content { padding: 80px 0; }
.page-content .entry { max-width: 760px; margin-inline: auto; }
.page-content h1 { font-size: clamp(38px, 5vw, 60px); }
.single-hero-img { border-radius: var(--radius); overflow: hidden; margin: 30px 0 40px; }

/* ---------- ANIMAZIONI ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects, .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .method { grid-template-columns: repeat(2, 1fr); }
  .tl-item { grid-template-columns: 140px 1fr; }
  .tl-desc { grid-column: 2; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 76px 0 auto 0; background: var(--paper); padding: 20px; display: none; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 18px; }
  .nav-cta { display: none; }
  .hero-grid, .about-grid, .services-intro { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 330px; margin-inline: auto; }
  .hero-badge.b1 { left: -10px; }
  .hero-badge.b2 { right: -10px; }
  .skills { margin: 0; border-radius: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .skills-grid, .projects, .offer-grid, .method { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat strong { font-size: 34px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .tl-desc { grid-column: 1; }
}

/* Testi dei casi studio */
.entry h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
.entry ul { padding-left: 1.2em; }
.entry li { margin-bottom: .5em; }
.entry li::marker { color: var(--coral); }
