:root {
  --gold: #b88a4a;
  --gold-dark: #8e6733;
  --sage: #afc7b1;
  --blue: #cfe8ee;
  --ivory: #faf8f2;
  --paper: #fffdf8;
  --ink: #333333;
  --muted: #6f6a61;
  --line: rgba(51, 51, 51, 0.14);
  --shadow: 0 22px 55px rgba(65, 55, 38, 0.12);
  --shadow-strong: 0 30px 80px rgba(65, 55, 38, 0.18);
  --radius: 8px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Open Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--ink);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(250, 248, 242, 0.88);
  border-bottom: 1px solid rgba(184, 138, 74, 0.18);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(250, 248, 242, 0.96);
  box-shadow: 0 10px 28px rgba(65, 55, 38, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.brand__copy {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
  line-height: 1;
}

.brand__name {
  color: #34312c;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__payoff {
  color: var(--gold-dark);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-toggle {
  display: inline-grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.menu-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.main-nav {
  position: absolute;
  top: 100%;
  right: 1rem;
  left: 1rem;
  display: none;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.main-nav.is-open {
  display: grid;
}

.main-nav a {
  position: relative;
  padding: 0.8rem 0;
  text-decoration: none;
  font-weight: 600;
  color: #4a463f;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.55rem;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2rem;
  min-height: calc(100vh - 74px);
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem) 2rem;
  background:
    linear-gradient(130deg, rgba(250, 248, 242, 0.97), rgba(207, 232, 238, 0.32)),
    linear-gradient(90deg, rgba(184, 138, 74, 0.08), transparent 28%),
    radial-gradient(circle at 12% 4%, rgba(175, 199, 177, 0.48), transparent 33%);
}

.hero::before {
  position: absolute;
  inset: 1.5rem clamp(1rem, 5vw, 5rem) auto auto;
  width: min(34vw, 360px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 74, 0.52));
  content: "";
}

.hero__content {
  max-width: 760px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: #282724;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 16vw, 6.7rem);
}

h2 {
  font-size: clamp(2.2rem, 9vw, 4.25rem);
}

h3 {
  font-size: clamp(1.35rem, 5vw, 1.9rem);
}

p {
  margin: 1rem 0 0;
}

.hero__lead {
  max-width: 680px;
  color: #4f4a43;
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  line-height: 1.45;
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.hero__meta span {
  padding: 0.45rem 0.7rem;
  background: rgba(255, 253, 248, 0.66);
  border: 1px solid rgba(184, 138, 74, 0.2);
  border-radius: 999px;
  color: #5e594f;
  font-size: 0.86rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--gold), #a9793a);
  color: white;
  box-shadow: 0 14px 30px rgba(184, 138, 74, 0.22);
}

.button--primary:hover,
.button--primary:focus-visible {
  box-shadow: 0 18px 38px rgba(184, 138, 74, 0.3);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(184, 138, 74, 0.34);
  color: #6e5028;
}

.hero__media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(184, 138, 74, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  isolation: isolate;
}

.hero__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(48, 51, 43, 0.18));
  content: "";
  pointer-events: none;
}

.hero__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hero__seal {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 0.9rem;
  background: rgba(250, 248, 242, 0.92);
  border: 1px solid rgba(184, 138, 74, 0.28);
  border-radius: 999px;
  color: #5f4728;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(65, 55, 38, 0.12);
}

.hero__seal img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.trust-band {
  display: grid;
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.trust-band div {
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--paper), rgba(250, 248, 242, 0.86));
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band span {
  margin-top: 0.25rem;
  color: var(--muted);
}

.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.quiet {
  background: linear-gradient(180deg, #f4f1e9, #f8f5ec);
}

.section__header {
  max-width: 850px;
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
}

.section__header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro__grid {
  display: grid;
  gap: 1rem;
  max-width: 1080px;
  margin-top: 1.5rem;
  color: #504b43;
  font-size: 1.08rem;
}

.editorial-featured-image {
  max-width: 1080px;
  margin: 1.5rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(184, 138, 74, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.editorial-featured-image img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.split {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split__media {
  overflow: hidden;
  border: 1px solid rgba(184, 138, 74, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split__media img {
  width: 100%;
  height: min(82vh, 680px);
  object-fit: cover;
}

.split__media--portrait img {
  height: auto;
  object-position: center 42%;
}

.split--profile .split__media {
  width: 50%;
  max-width: 340px;
  margin-inline: auto;
}

.split__media--wide img {
  height: min(68vh, 560px);
}

.split__content {
  max-width: 660px;
}

.text-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--gold-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.text-link:hover,
.text-link:focus-visible {
  color: #6f4d22;
}

.feature-grid,
.course-grid,
.article-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.article-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
}

.article-card-link article {
  height: 100%;
}

.article-card-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.feature-card,
.course-grid article,
.article-grid article {
  padding: 1.35rem;
  background: linear-gradient(180deg, var(--paper), rgba(255, 253, 248, 0.72));
  border: 1px solid rgba(184, 138, 74, 0.16);
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.course-grid article:hover,
.article-grid article:hover {
  border-color: rgba(184, 138, 74, 0.32);
  box-shadow: 0 16px 42px rgba(65, 55, 38, 0.09);
  transform: translateY(-3px);
}

.feature-card span {
  color: var(--gold);
  font-weight: 800;
}

.feature-card p,
.course-grid p,
.article-grid p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "✓";
  font-weight: 800;
}

.check-list li::before {
  top: 0.45rem;
  width: 0.48rem;
  height: 0.82rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  color: transparent;
  content: "";
  transform: rotate(42deg);
}

.cta-panel {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(135deg, rgba(175, 199, 177, 0.42), rgba(207, 232, 238, 0.58));
  border: 1px solid rgba(184, 138, 74, 0.16);
  border-radius: var(--radius);
}

.gallery {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid rgba(184, 138, 74, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-kicker {
  margin-top: 0;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact {
  display: grid;
  gap: 2rem;
  background:
    linear-gradient(rgba(250, 248, 242, 0.92), rgba(250, 248, 242, 0.92)),
    url("assets/web/studio-trattamento-scrivania.webp") center / cover;
}

address {
  margin-top: 1.4rem;
  font-style: normal;
}

address a {
  color: var(--gold-dark);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(184, 138, 74, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: #4b463f;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(51, 51, 51, 0.2);
  border-radius: 6px;
  background: white;
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: grid;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  background: #2f342e;
  color: rgba(255, 255, 255, 0.84);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.footer-brand__copy {
  display: grid;
  gap: 0.15rem;
}

.footer-brand__name {
  color: white;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.footer-brand__payoff {
  color: rgba(225, 196, 151, 0.88);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.fineprint {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
}

.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links button:hover,
.footer-links button:focus-visible {
  color: white;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 100;
  display: grid;
  max-width: 1080px;
  gap: 1.25rem;
  margin: 0 auto;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  background: var(--paper);
  border: 1px solid rgba(184, 138, 74, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

.cookie-banner h2 {
  font-size: clamp(1.65rem, 5vw, 2.2rem);
}

.cookie-banner p {
  max-width: 760px;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.cookie-banner__content > a {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-banner__actions .button {
  min-width: 8rem;
}

.cookie-banner-visible .floating-whatsapp {
  opacity: 0;
  pointer-events: none;
}

.legal-page {
  min-height: 100vh;
}

.legal-header .brand {
  margin-right: auto;
}

.legal-back-link {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
}

.legal-main {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.legal-main h1 {
  font-size: clamp(2.8rem, 10vw, 5rem);
}

.legal-main h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.75rem, 6vw, 2.55rem);
}

.legal-main h3 {
  margin-top: 1.5rem;
  font-size: 1.4rem;
}

.legal-main ul {
  padding-left: 1.25rem;
}

.legal-main li + li {
  margin-top: 0.4rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  background: #2f7d48;
  color: white;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(47, 125, 72, 0.26);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  box-shadow: 0 20px 44px rgba(47, 125, 72, 0.32);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .cookie-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .cookie-banner__actions {
    flex-wrap: nowrap;
  }

  .trust-band,
  .intro__grid,
  .feature-grid,
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .intro__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-panel {
    grid-template-columns: 1fr auto;
  }

  .contact {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  }
}

@media (min-width: 980px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    gap: 1.1rem;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .main-nav a {
    padding: 0.35rem 0;
    font-size: 0.95rem;
  }

  .hero,
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
  }

  .split--reverse {
    grid-template-columns: minmax(380px, 0.86fr) minmax(0, 1fr);
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split--profile {
    grid-template-columns: minmax(280px, 340px) minmax(0, 660px);
    justify-content: center;
  }

  .split--profile .split__media {
    width: 100%;
  }

  .course-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand__copy {
    max-width: 9.5rem;
  }

  .brand__name {
    overflow: hidden;
    font-size: 0.88rem;
    text-overflow: ellipsis;
  }

  .brand__payoff {
    overflow: visible;
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .legal-back-link {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }

  .button {
    width: 100%;
  }

  .split__media--portrait img {
    height: auto;
  }

  .split--profile .split__media {
    width: 65%;
  }

  .hero__seal {
    left: 1rem;
    right: 1rem;
    justify-content: center;
  }

  .floating-whatsapp {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
