:root {
  --bg: #ffffff;
  --bg-warm: #fdf6f2;
  --bg-strong: #f5ede6;
  --surface: #ffffff;
  --surface-strong: #fdfefe;
  --ink: #1e2d5c;
  --muted: #5a6a88;
  --line: rgba(30, 45, 92, 0.1);
  --accent: #2a7ab8;
  --accent-dark: #1a5c8f;
  --orange: #f5924e;
  --forest: #1e2d5c;
  --shadow: 0 20px 48px rgba(30, 45, 92, 0.08);
  --shadow-soft: 0 8px 24px rgba(30, 45, 92, 0.05);
  --radius: 20px;
  --radius-sm: 14px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.page-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 10px 20px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(-10px);
}

.topbar a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.topbar a:hover,
.topbar a:focus-visible {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(-14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(22, 48, 71, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.brand-text strong,
h1,
h2,
h3,
.metric {
  font-family: 'Nunito', "Avenir Next", sans-serif;
  font-weight: 800;
}

.brand-text strong {
  color: var(--ink);
}

.brand-text span:last-child {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: 32px;
  padding: 42px 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1e2d5c 0%, #2a5fa8 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 146, 78, 0.18), rgba(245, 146, 78, 0));
  pointer-events: none;
  animation: float-orb 9s ease-in-out infinite;
}

/* Titolo hero: occupa tutta la larghezza */
.hero-title {
  grid-column: 1 / -1;
  padding-bottom: 4px;
}

/* Text on dark hero background */
.hero-title h1 {
  color: #ffffff;
  max-width: 22ch;
}

.hero-title .eyebrow {
  color: var(--orange);
}

.hero-copy .lead,
.hero-copy .hero-note {
  color: rgba(255, 255, 255, 0.8);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.75);
}

.hero .template-figure {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  line-height: 1.05;
  max-width: 12ch;
  margin-bottom: 18px;
  font-weight: 900;
}

h2 {
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
}

.lead {
  max-width: 58ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-note {
  max-width: 54ch;
  margin-bottom: 0;
}

.template-figure {
  margin: 28px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(22, 48, 71, 0.08);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.template-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-figure {
  max-width: 720px;
}

.section-figure,
.contact-figure {
  margin-top: 20px;
  margin-bottom: 20px;
}

.hero-title,
.hero-copy,
.hero-sidebar {
  opacity: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--orange), #e8733e);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(245, 146, 78, 0.3);
}

.button-secondary {
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(31, 111, 139, 0.28);
  color: var(--accent-dark);
}

.hero-facts,
.service-mini-list,
.contact-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-facts {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.hero-facts li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.hero-facts strong {
  color: var(--ink);
}

.hero-card,
.service-card,
.feature-card,
.contact-card,
.schedule-card,
.trust-band article,
.split-card,
.cta-card,
.info-panel {
  border: 1px solid rgba(22, 48, 71, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero-sidebar {
  display: grid;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.hero-card {
  padding: 24px;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.hero-card h2 {
  margin-bottom: 12px;
}

.hero-card-copy {
  margin-bottom: 0;
}

.info-panel {
  display: grid;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.info-block {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.info-block:last-child {
  border-bottom: 0;
}

.info-block h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.info-block p {
  margin-bottom: 0;
}

.info-block a {
  color: var(--accent-dark);
  text-decoration: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(31, 111, 139, 0.08);
  border: 1px solid rgba(31, 111, 139, 0.1);
}

.status p {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2bb3b1;
  box-shadow: 0 0 0 6px rgba(43, 179, 177, 0.12);
}

.service-mini-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.service-mini-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.service-mini-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.directions-link,
.accent-card a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.directions-link:hover,
.accent-card a:hover,
.contact-list a:hover {
  text-decoration: underline;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
}

.trust-band article {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: #fff;
  border-left: 4px solid var(--accent) !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.metric {
  margin-bottom: 8px;
  font-size: 1.7rem;
  color: var(--ink);
}

.metric-label {
  color: var(--muted);
  margin-bottom: 0;
}

.section {
  margin: 56px 0;
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 24px;
}

/* Card icons for service cards */
.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #daeef9, #c8e5f5);
  border: 1.5px solid rgba(42, 122, 184, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(42, 122, 184, 0.12);
}

/* Image placeholders */
.img-placeholder {
  background: linear-gradient(135deg, #e8f3fb 0%, #ddeef8 100%) !important;
  border: 1.5px dashed rgba(42, 122, 184, 0.35) !important;
  box-shadow: none !important;
}

.placeholder-inner {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  text-align: center;
}

.placeholder-icon-img {
  font-size: 2.8rem;
  opacity: 0.55;
}

.placeholder-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0;
  border: 1px solid rgba(42, 122, 184, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(42, 122, 184, 0.06);
}

.placeholder-prompt {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0;
  font-style: italic;
}

/* Placeholder on dark hero background */
.hero .img-placeholder {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.hero .placeholder-label {
  color: var(--orange);
  border-color: rgba(245, 146, 78, 0.35);
  background: rgba(245, 146, 78, 0.1);
}

.hero .placeholder-prompt {
  color: rgba(255, 255, 255, 0.55);
}

/* Warm background sections */
.section.warm-bg {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 48px 40px;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin: 56px 0;
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 48px 40px;
}

.intro-copy {
  margin-bottom: 0;
}

.section-heading h2,
.split-card h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin-bottom: 0;
}

.studio-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin-bottom: 28px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.feature-card,
.split-card {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: #fff;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.service-card:hover,
.feature-card:hover,
.split-card:hover,
.trust-band article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  border-color: rgba(31, 111, 139, 0.16);
}

.service-card p,
.feature-card p,
.studio-panel p,
.contact-card li {
  color: var(--muted);
  line-height: 1.65;
}

.accent-card {
  background: linear-gradient(135deg, #1e2d5c 0%, #2a5fa8 100%);
  color: #fff;
  border-color: transparent;
}

.accent-card h3 {
  color: #ffffff;
}

.accent-card p {
  color: rgba(255, 255, 255, 0.8);
}

.accent-card a {
  color: #ffffff !important;
}

.accent-card .card-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.schedule-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius);
  background: #fff;
}

.contact-figure {
  margin: 0;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-intro {
  max-width: 52ch;
  margin: 0 0 20px;
}

.diagnostic-card {
  background: linear-gradient(180deg, var(--bg-warm) 0%, #faeee6 100%);
}

.feature-list {
  padding: 0;
  margin: 20px 0 24px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

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

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.cta-section {
  margin-top: 56px;
}

.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1e2d5c, #2a5fa8);
}

.cta-card .eyebrow,
.cta-card h2,
.cta-card p {
  color: #f5fbfd;
}

.cta-card .hero-actions {
  margin-bottom: 0;
}

.cta-card .button-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(245, 146, 78, 0.3);
}

.cta-card .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.schedule-row span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-row.is-today {
  color: var(--accent-dark);
  font-weight: 700;
}

.schedule-row.is-today span {
  color: var(--accent-dark);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.contact-list strong {
  color: var(--ink);
}

.contact-list a {
  color: var(--accent-dark);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

body.is-ready .topbar {
  animation: slide-down-fade 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.is-ready .site-header {
  animation: slide-down-fade 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.is-ready .hero-title {
  animation: fade-up 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.is-ready .hero-copy {
  animation: fade-up 0.9s 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.is-ready .hero-sidebar {
  animation: fade-up 0.9s 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.is-ready .hero-card {
  animation: soft-rise 1.1s 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slide-down-fade {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-rise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-18px, 14px, 0);
  }
}

@media (max-width: 940px) {
  .site-header,
  .hero,
  .trust-band,
  .cards-grid,
  .split-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 24px;
  }

  .section.warm-bg,
  .intro-section {
    padding: 32px 24px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content));
    padding-top: 12px;
  }

  .site-header {
    position: static;
    border-radius: 20px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section.warm-bg,
  .intro-section {
    padding: 24px 16px;
  }

  .site-nav {
    gap: 12px;
  }

  h1 {
    max-width: 100%;
  }

  .hero,
  .split-section,
  .schedule-card,
  .cta-card {
    padding: 20px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .schedule-row {
    flex-direction: column;
    gap: 4px;
  }
}

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

  .topbar,
  .site-header,
  .hero-title,
  .hero-copy,
  .hero-sidebar {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero::after,
  .hero-card {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
