/* Anghiari Centro Studi — page chrome, animations, ambient color */

:root {
  --acs-cream: #faf4ea;
  --acs-sand: #f0e5cf;
  --acs-bone: #fffbf3;
  --acs-clay: #c89b3c;
  --acs-terra: #7a3e1f;
  --acs-terra-deep: #4f2914;
  --acs-ink: #2a1f15;
  --acs-sky: #6b8aa6;
}

body { background-color: var(--acs-bone); color: var(--acs-ink); }

/* alternate section bands */
.acs-band-cream { background-color: var(--acs-cream); }
.acs-band-sand  { background-color: var(--acs-sand);  }
.acs-band-bone  { background-color: var(--acs-bone);  }
.acs-band-terra { background: linear-gradient(135deg, var(--acs-terra) 0%, var(--acs-terra-deep) 100%); color: #fff5e1; }
.acs-band-terra h2, .acs-band-terra h3 { color: #fff; }

/* Texture overlay (subtle paper grain via SVG) */
.acs-paper {
  position: relative;
}
.acs-paper::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none; opacity: .6; mix-blend-mode: multiply;
}

/* Full bleed hero */
.acs-hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  color: #fff7e8;
  overflow: hidden;
}
.acs-hero__bg { position: absolute; inset: 0; z-index: 0; }
.acs-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: acsHeroZoom 18s ease-out forwards; }
.acs-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(122,62,31,0.30) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(15,10,5,0.35) 0%, rgba(15,10,5,0.55) 55%, rgba(15,10,5,0.85) 100%);
}
.acs-hero__inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  width: 100%;
}
.acs-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 247, 232, 0.12);
  border: 1px solid rgba(255, 247, 232, 0.35);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.acs-hero__title {
  margin-top: 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05; letter-spacing: -0.01em;
  max-width: 22ch;
}
.acs-hero__title em { color: var(--acs-clay); font-style: italic; }
.acs-hero__lede {
  margin-top: 1.5rem;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255, 247, 232, 0.92);
  line-height: 1.65;
}
.acs-hero__ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.acs-btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--acs-clay); color: var(--acs-terra-deep);
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 10px 24px -8px rgba(200,155,60,0.55);
}
.acs-btn-primary:hover { transform: translateY(-2px); background: #d8ac4f; }
.acs-btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,247,232,0.08); color: #fff7e8;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1px solid rgba(255,247,232,0.4);
  font-weight: 500;
  transition: background .25s ease, transform .25s ease;
}
.acs-btn-ghost:hover { background: rgba(255,247,232,0.18); transform: translateY(-2px); }

.acs-hero__scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,247,232,0.65); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.acs-hero__scroll::after {
  content: ""; width: 1px; height: 38px; background: rgba(255,247,232,0.55); animation: acsScrollLine 2.2s ease-in-out infinite;
}

@keyframes acsHeroZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes acsScrollLine { 0%, 100% { transform: scaleY(1); transform-origin: top; } 50% { transform: scaleY(0.35); } }

/* Pillars (6-card) */
.acs-pillars { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.acs-pillar {
  position: relative;
  background: #fff; border-radius: 22px;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(122, 62, 31, 0.08);
  box-shadow: 0 1px 0 rgba(122,62,31,0.04), 0 18px 36px -22px rgba(122,62,31,0.18);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  display: flex; flex-direction: column; gap: .75rem;
}
.acs-pillar:hover { transform: translateY(-6px); border-color: rgba(200,155,60,0.5); box-shadow: 0 1px 0 rgba(122,62,31,0.04), 0 28px 48px -22px rgba(122,62,31,0.32); }
.acs-pillar__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; line-height: 1;
  color: var(--acs-clay); font-style: italic; font-weight: 500;
}
.acs-pillar__title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--acs-terra-deep); }
.acs-pillar__body { color: #5a4a3a; font-size: .95rem; line-height: 1.55; }
.acs-pillar__link { margin-top: auto; font-weight: 600; color: var(--acs-terra); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.acs-pillar__link::after { content: " →"; transition: transform .25s ease; display: inline-block; }
.acs-pillar:hover .acs-pillar__link::after { transform: translateX(4px); }

/* Manifesto quote */
.acs-manifesto {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-style: italic; font-weight: 400;
  line-height: 1.35;
  color: var(--acs-terra-deep);
  max-width: 32ch;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.acs-manifesto::before {
  content: "“"; position: absolute; top: -2.5rem; left: 50%; transform: translateX(-50%);
  font-size: 6rem; color: var(--acs-clay); opacity: .35; line-height: 1;
}
.acs-manifesto__sign { display: block; margin-top: 1.5rem; font-style: normal; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--acs-terra); }

/* Stats */
.acs-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.acs-stat {
  background: rgba(255, 247, 232, 0.08);
  border: 1px solid rgba(255, 247, 232, 0.15);
  border-radius: 18px;
  padding: 1.75rem 1.25rem;
  text-align: left;
}
.acs-stat__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1;
  color: var(--acs-clay); font-weight: 600;
}
.acs-stat__label { margin-top: .75rem; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

/* People */
.acs-people { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.acs-person {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(122, 62, 31, 0.08);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.acs-person:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -20px rgba(122,62,31,0.28); }
.acs-person__cover { aspect-ratio: 16/10; overflow: hidden; }
.acs-person__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.acs-person:hover .acs-person__cover img { transform: scale(1.06); }
.acs-person__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.acs-person__kicker { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--acs-clay); font-weight: 600; }
.acs-person__name { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 600; color: var(--acs-terra-deep); }
.acs-person__role { color: #6b5a45; font-size: .95rem; }
.acs-person__body p { color: #5a4a3a; font-size: .95rem; line-height: 1.55; margin-top: .5rem; }

/* Event teaser */
.acs-events-teaser { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.acs-event-card {
  background: #fff; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(122,62,31,0.08);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.acs-event-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -20px rgba(122,62,31,0.28); }
.acs-event-card__cover { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.acs-event-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.acs-event-card:hover .acs-event-card__cover img { transform: scale(1.05); }
.acs-event-card__date {
  position: absolute; top: .75rem; left: .75rem;
  background: rgba(74, 41, 20, 0.9); color: #f0e5cf;
  border-radius: 14px; padding: .5rem .75rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
}
.acs-event-card__date strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; line-height: 1; }
.acs-event-card__body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.acs-event-card__title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--acs-terra-deep); }
.acs-event-card__desc { color: #5a4a3a; font-size: .9rem; line-height: 1.55; }
.acs-event-card__meta { font-size: .8rem; color: var(--acs-clay); margin-top: .25rem; letter-spacing: .04em; }

/* Gallery refined */
.acs-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.acs-gallery > * { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 20px; }
.acs-gallery > *:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; }
@media (max-width: 720px) { .acs-gallery > *:nth-child(1) { grid-column: span 1; aspect-ratio: 4/3; } }
.acs-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.acs-gallery > *:hover img { transform: scale(1.06); }
.acs-gallery figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: .85rem 1rem;
  background: linear-gradient(to top, rgba(15,10,5,0.85), rgba(15,10,5,0));
  color: #fff7e8; font-size: .85rem;
}

/* Section heading */
.acs-section-eyebrow {
  display: inline-block;
  font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--acs-clay); font-weight: 600;
  margin-bottom: .75rem;
}
.acs-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--acs-terra-deep);
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.acs-section-lede { margin-top: 1rem; color: #5a4a3a; font-size: 1.05rem; line-height: 1.65; max-width: 56ch; }

/* CTA banner */
.acs-cta-banner {
  background: linear-gradient(135deg, var(--acs-terra) 0%, var(--acs-terra-deep) 100%);
  color: #fff7e8;
  border-radius: 28px;
  padding: 3rem 2rem;
  position: relative; overflow: hidden;
}
.acs-cta-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,155,60,0.5), transparent 70%);
}
.acs-cta-banner h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15;
  max-width: 20ch;
}
.acs-cta-banner p { margin-top: 1rem; opacity: .9; max-width: 50ch; font-size: 1.05rem; line-height: 1.6; }
.acs-cta-banner .acs-btn-primary { margin-top: 2rem; }

/* Reveal animations (data-reveal attribute) */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--acs-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .acs-hero__bg img { animation: none; transform: none; }
}

/* Counter for stats */
.acs-counter-target { display: inline-block; min-width: 1ch; }

/* Decorative divider */
.acs-rule { width: 64px; height: 3px; background: var(--acs-clay); border-radius: 2px; margin: 1.5rem 0 0; }
.acs-rule--center { margin-inline: auto; }

/* Anchor links polish */
a { transition: color .2s ease, opacity .2s ease; }

/* ================================================================
   INNER PAGE HERO (smaller than home, used on all inner pages)
   ================================================================ */
.acs-page-hero {
  position: relative;
  min-height: 52vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--acs-terra-deep);
  color: #fff7e8;
}
.acs-page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.acs-page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.acs-page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(74,41,20,0.55) 0%, rgba(15,10,5,0.85) 100%);
}
.acs-page-hero__inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  width: 100%;
}
.acs-page-hero__credit {
  position: absolute; bottom: .75rem; right: 1rem; z-index: 2;
  background: rgba(0,0,0,0.50); color: rgba(255,255,255,0.82);
  font-size: 11px; padding: 2px 12px; border-radius: 999px;
}
.acs-page-hero__title {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05; letter-spacing: -0.01em;
  max-width: 24ch; color: #fff7e8;
  margin-top: .75rem;
}
.acs-page-hero__desc {
  margin-top: 1.25rem; max-width: 56ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255,247,232,0.85); line-height: 1.65;
}

/* ================================================================
   PROSE (styled markdown output)
   ================================================================ */
.acs-prose { color: var(--acs-ink); line-height: 1.75; font-size: 1.05rem; }
.acs-prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.65rem, 2.5vw, 2.1rem); font-weight: 500; line-height: 1.15;
  color: var(--acs-terra-deep);
  margin-top: 2.5rem; margin-bottom: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(122,62,31,0.13);
}
.acs-prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600; color: var(--acs-terra);
  margin-top: 1.75rem; margin-bottom: .5rem;
}
.acs-prose p { margin-bottom: 1.1rem; }
.acs-prose strong { color: var(--acs-terra-deep); font-weight: 600; }
.acs-prose em { color: var(--acs-terra); }
.acs-prose a { color: var(--acs-terra); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.acs-prose a:hover { color: var(--acs-clay); }
.acs-prose ul { margin-left: 0; padding-left: 0; list-style: none; margin-bottom: 1.25rem; }
.acs-prose ul li {
  padding: .5rem 0 .5rem 1.75rem; position: relative;
  border-bottom: 1px solid rgba(122,62,31,0.07);
}
.acs-prose ul li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--acs-clay); font-weight: 700; font-size: .9rem;
}
.acs-prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.acs-prose ol li { margin-bottom: .5rem; }
.acs-prose blockquote {
  border-left: 3px solid var(--acs-clay);
  padding: .75rem 1.25rem;
  background: rgba(200,155,60,0.07);
  border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--acs-terra-deep);
  margin: 1.5rem 0;
}
.acs-prose hr { border: none; border-top: 1px solid rgba(122,62,31,0.15); margin: 2rem 0; }
.acs-prose :first-child { margin-top: 0; }

/* ================================================================
   FEATURE CARDS (courses, programmes)
   ================================================================ */
.acs-features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.acs-feature-card {
  background: #fff; border-radius: 22px;
  border: 1px solid rgba(122,62,31,0.08);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: .75rem;
  box-shadow: 0 2px 0 rgba(122,62,31,0.04), 0 16px 32px -18px rgba(122,62,31,0.14);
  transition: transform .35s ease, box-shadow .35s ease;
}
.acs-feature-card:hover { transform: translateY(-4px); box-shadow: 0 2px 0 rgba(122,62,31,0.04), 0 28px 44px -18px rgba(122,62,31,0.24); }
.acs-feature-card__icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--acs-sand);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; color: var(--acs-terra); font-style: italic; font-weight: 500;
}
.acs-feature-card__title { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 600; color: var(--acs-terra-deep); line-height: 1.2; }
.acs-feature-card__body { color: #5a4a3a; font-size: .95rem; line-height: 1.6; }
.acs-feature-card__tag {
  margin-top: auto;
  display: inline-block; align-self: flex-start;
  background: var(--acs-sand); color: var(--acs-terra);
  border-radius: 999px; padding: .25rem .9rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

/* ================================================================
   HIGHLIGHT / CONSULTATION BOX
   ================================================================ */
.acs-highlight-box {
  background: linear-gradient(135deg, var(--acs-sand), var(--acs-cream));
  border: 1px solid rgba(200,155,60,0.30);
  border-radius: 20px; padding: 1.75rem 1.5rem; margin-top: 2.5rem;
}
.acs-highlight-box__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600; color: var(--acs-terra-deep); margin-bottom: .6rem;
}
.acs-highlight-box p { color: #5a4a3a; font-size: .95rem; line-height: 1.6; margin: 0; }
.acs-highlight-box a { color: var(--acs-terra); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================
   BACK / NAV LINK
   ================================================================ */
.acs-back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--acs-terra); font-weight: 600; font-size: .9rem;
  letter-spacing: .04em;
  transition: transform .2s ease;
}
.acs-back-link:hover { transform: translateX(-3px); }

/* ================================================================
   CONTACT PAGE SPECIFICS
   ================================================================ */
.acs-contact-card {
  background: #fff; border-radius: 20px;
  border: 1px solid rgba(122,62,31,0.10);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 0 rgba(122,62,31,0.03), 0 12px 28px -16px rgba(122,62,31,0.12);
}
.acs-contact-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600; color: var(--acs-terra-deep);
  margin-bottom: 1rem;
}
.acs-contact-info-row {
  background: var(--acs-bone); border-radius: 14px; padding: .85rem 1rem;
}
.acs-contact-info-row dt { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acs-clay); }
.acs-contact-info-row dd { margin-top: .2rem; font-size: .95rem; color: var(--acs-ink); }
.acs-contact-info-row a { color: var(--acs-terra); font-weight: 500; }
.acs-form-label { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--acs-terra-deep); margin-bottom: .35rem; }
.acs-form-input, .acs-form-textarea {
  width: 100%; border: 1px solid rgba(122,62,31,0.20);
  border-radius: 12px; padding: .7rem 1rem; font-size: .95rem;
  background: var(--acs-bone); color: var(--acs-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.acs-form-input:focus, .acs-form-textarea:focus {
  outline: none; border-color: var(--acs-clay);
  box-shadow: 0 0 0 3px rgba(200,155,60,0.18);
}
.acs-form-submit {
  display: inline-flex; width: 100%; justify-content: center;
  background: var(--acs-terra); color: #fff7e8;
  padding: .9rem 1.5rem; border-radius: 12px; border: none; cursor: pointer;
  font-weight: 600; font-size: 1rem; letter-spacing: .02em;
  transition: background .25s ease, transform .25s ease;
}
.acs-form-submit:hover { background: var(--acs-terra-deep); transform: translateY(-1px); }
