/* ============ Architetto Priscilla Curci ============ */
:root {
  --bg: #faf8f5;
  --bg-alt: #f1ede7;
  --ink: #23211e;
  --ink-soft: #5c574f;
  --accent: #a0522d;
  --accent-dark: #7d3f21;
  --line: #e0d9cf;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.2rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-mark { height: 40px; width: auto; display: block; }
@media (max-width: 480px) {
  .logo { font-size: 1rem; gap: 0.45rem; }
  .logo-mark { height: 32px; }
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 1.25rem; }
.nav a {
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo { white-space: nowrap; }
.nav a:hover { color: var(--accent); }

/* mobile nav */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; font-size: 1.6rem; color: var(--ink); }
@media (max-width: 1024px) {
  .nav-toggle-label { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 4.2rem;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
  }
  .nav a { padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero .container { max-width: 850px; text-align: center; }
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1.4rem; }
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--accent-dark);
  margin-bottom: 1.6rem;
}
.hero p.lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 46rem; margin: 0 auto 2.2rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.btn-outline { background: transparent; color: var(--ink); }
.btn.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--ink-soft); }

/* ---------- Portfolio grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: 0 12px 32px rgba(35, 33, 30, 0.12); transform: translateY(-3px); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.card .thumb.thumb-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  font-size: 3.2rem;
  border-bottom: 1px solid var(--line);
}
.card .thumb.thumb-text:hover { background: #ece6dd; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .card-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card .meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card p { font-size: 0.92rem; color: var(--ink-soft); }
.card .more { margin-top: auto; padding-top: 0.9rem; font-size: 0.85rem; letter-spacing: 0.05em; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img { border: 1px solid var(--line); }
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 1.6rem; }
.badge {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}

/* ---------- Reviews ---------- */
.reviews { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.review {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.review .stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}
.review h3 { font-size: 1.15rem; margin-bottom: 0.8rem; line-height: 1.3; }
.review > p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
.review .review-author {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.review .review-author span {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  margin-top: 0.2rem;
}

/* ---------- Partners (logo wall) ---------- */
.partners { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.1rem; }
.partner {
  background: var(--bg);
  border: 1px solid var(--line);
  height: 128px;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.partner:hover {
  box-shadow: 0 12px 32px rgba(35, 33, 30, 0.12);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.partner img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }
/* il logo CEV è un box blu quadrato: lo teniamo più compatto */
.partner img[src*="cev"] { max-height: 76px; }

/* ---------- Section dots (side nav) ---------- */
.section-dots {
  position: fixed;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(28,26,23,0.55);
  backdrop-filter: blur(3px);
  border-radius: 999px;
  padding: 0.9rem 0.55rem;
}
.section-dots a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.section-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  background: transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.section-dots a:hover span,
.section-dots a.active span {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}
.section-dots em {
  position: absolute;
  right: 1.4rem;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.section-dots a:hover em { opacity: 1; transform: translateX(0); }
/* on the dark chi-sono section the dots need to stay visible against a light page below, so keep neutral style; but improve contrast while chi-sono is active */
.section-dots a.active span { box-shadow: 0 0 0 3px rgba(160,82,45,0.15); }
@media (max-width: 900px) {
  .section-dots { display: none; }
}

/* ---------- Chi sono (dark editorial hero) ---------- */
.chi-sono-hero {
  --gold: #caa568;
  position: relative;
  background: #1c1a17;
  color: #fff;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: stretch;
}
.chi-sono-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
}
.chi-sono-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}
.chi-sono-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1c1a17 0%, rgba(28,26,23,0) 26%);
}
.chi-sono-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
}
.chi-sono-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  max-width: 28rem;
  padding: 5rem 1.5rem;
}
.chi-sono-italy {
  width: 15px;
  height: auto;
  color: var(--gold);
  vertical-align: -2px;
  margin-right: 0.4rem;
}
.chi-sono-script {
  font-family: "Sacramento", cursive;
  font-size: 3.6rem;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.3rem;
}
.chi-sono-rule { width: 90px; height: 2px; background: var(--gold); margin: 0.3rem 0 1.3rem; }
.chi-sono-rule.small { width: 60px; margin: 1.6rem 0 1rem; }
.chi-sono-title {
  font-size: 1.8rem;
  color: #fff;
}
.chi-sono-title span { color: var(--gold); }
.chi-sono-lead {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  max-width: 30rem;
  margin-bottom: 0.7rem;
}
.chi-sono-badges { margin-top: 0.6rem; }
.chi-sono-badges .badge { border-color: var(--gold); color: var(--gold); }
.chi-sono-area { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,0.9); margin-bottom: 1.6rem; }
.chi-sono-area span { color: var(--gold); font-style: normal; font-weight: 500; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  align-self: flex-start;
}
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.chi-sono-scroll {
  position: absolute;
  left: 1.5rem;
  bottom: 1.6rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: chiSonoBounce 2.2s ease-in-out infinite;
}
.chi-sono-scroll:hover { border-color: var(--gold); color: var(--gold); }
.chi-sono-scroll svg { width: 18px; height: 18px; }
@keyframes chiSonoBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 780px) {
  .chi-sono-hero { flex-direction: column; min-height: 0; }
  .chi-sono-photo {
    position: relative;
    top: auto; right: auto; bottom: auto;
    width: 100%;
    height: 360px;
    order: -1;
  }
  .chi-sono-photo img { object-position: center 15%; }
  .chi-sono-photo::before {
    background: linear-gradient(0deg, #1c1a17 0%, rgba(28,26,23,0) 30%);
  }
  .chi-sono-content { padding: 3rem 1.5rem; max-width: none; }
  .chi-sono-script { font-size: 3rem; }
  .chi-sono-scroll { display: none; }
}

/* ---------- Chi sei? (accordion + role tiles) ---------- */
.chi-sei { max-width: 920px; }
.chi-sei > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s;
}
.chi-sei > summary::-webkit-details-marker { display: none; }
.chi-sei > summary::after {
  content: "▾";
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.25s;
}
.chi-sei[open] > summary::after { transform: rotate(180deg); }
.chi-sei > summary:hover { border-color: var(--accent); }
.roles {
  margin-top: 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.role {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.1rem 1.3rem;
  color: var(--ink);
  font-weight: 500;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s, color 0.25s;
}
.role:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(35, 33, 30, 0.12);
  color: var(--accent-dark);
}
.role .role-emoji { font-size: 1.7rem; line-height: 1; }

/* ---------- Service pages (role) ---------- */
.service-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.service-item {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem;
}
.service-item .s-emoji { font-size: 1.6rem; line-height: 1; }
.service-item h3 { font-size: 1.12rem; margin: 0.6rem 0 0.5rem; }
.service-item p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Services (old cards) ---------- */
.service-card .price {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.service-card .duration { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.8rem; }

/* ---------- Project / article page ---------- */
.page-hero { padding: 4rem 0 2.5rem; background: var(--bg-alt); }
.page-hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 50rem; }
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.page-meta strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.article-body { max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.article-body > * + * { margin-top: 1.1rem; }
.article-body h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li + li { margin-top: 0.4rem; }
.article-body img { margin: 2rem 0; border: 1px solid var(--line); }
.article-body .figure-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: -1.4rem;
  text-align: center;
}
.project-figure { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 0; }
.project-figure img { border: 1px solid var(--line); width: 100%; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  font-size: 0.9rem;
}

/* ---------- Contact / footer ---------- */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}
.btn-call { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-call:hover { background: transparent; color: var(--accent-dark); }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: transparent; color: #1da851; border-color: #1da851; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.contact-grid h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.contact-grid p { color: var(--ink-soft); font-size: 0.95rem; }

.site-footer {
  background: var(--ink);
  color: #b8b2a8;
  padding: 3rem 0;
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer-about p { line-height: 1.7; color: #c9c3b9; max-width: 44rem; }
.footer-meta p { margin-bottom: 0.35rem; }
.footer-meta .footer-copy { margin-top: 0.9rem; color: #8f897f; }
.site-footer a { color: #e8e2d8; }
.site-footer a:hover { color: #fff; }

/* External projects list */
.external-projects {
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.external-projects h3 {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.external-projects ul { list-style: none; }
.external-projects li + li { margin-top: 0.5rem; }
.external-projects a {
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.external-projects a:hover { color: var(--accent); border-color: var(--accent); }
.external-projects .ext { color: var(--accent); font-size: 0.8rem; }
