/* Studio Dentistico Foglietta — design system */
:root {
  --azzurro: #3a8fbf;
  --azzurro-deep: #1e5a7a;
  --azzurro-soft: #a8d4e8;
  --azzurro-mist: #d6ebf5;
  --bianco: #ffffff;
  --bianco-caldo: #f7fbfd;
  --testo: #2c2c2c;
  --testo-soft: #5a6570;
  --linea: rgba(30, 90, 122, 0.12);
  --ombra: 0 24px 60px rgba(30, 90, 122, 0.1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --nav-h: 5.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--testo);
  background: var(--bianco-caldo);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Atmosphere —— */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(168, 212, 232, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(58, 143, 191, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bianco) 0%, var(--bianco-caldo) 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site main {
  flex: 1;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  background: rgba(247, 251, 253, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--linea);
}

.site-header.is-home:not(.is-scrolled) {
  background: linear-gradient(
    180deg,
    rgba(247, 251, 253, 0.97) 0%,
    rgba(247, 251, 253, 0.85) 70%,
    rgba(247, 251, 253, 0.5) 100%
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linea);
}

.header-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand img {
  height: 3.85rem;
  width: auto;
  transition: filter 0.35s var(--ease);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--testo);
  transition: color 0.35s var(--ease);
}

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--testo-soft);
  transition: color 0.35s var(--ease);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 450;
  padding: 0.55rem 0.9rem;
  color: var(--testo-soft);
  position: relative;
  transition: color 0.25s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--azzurro-deep);
}

.nav-desktop a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 1.5px;
  background: var(--azzurro);
  border-radius: 2px;
}

.nav-cta {
  display: none;
  margin-left: 0.5rem;
  padding: 0.7rem 1.25rem !important;
  background: var(--azzurro-deep);
  color: var(--bianco) !important;
  border-radius: 999px;
  font-size: 0.85rem !important;
  letter-spacing: 0.02em;
  transition: background 0.25s, transform 0.25s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--azzurro) !important;
  color: var(--bianco) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--testo);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(247, 251, 253, 0.97);
  backdrop-filter: blur(20px);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  z-index: 99;
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--linea);
  color: var(--testo);
}

.nav-mobile a[aria-current="page"] {
  color: var(--azzurro);
}

@media (min-width: 900px) {
  .nav-desktop,
  .nav-cta {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--azzurro-deep);
  color: var(--bianco);
  box-shadow: 0 12px 32px rgba(30, 90, 122, 0.25);
}

.btn-primary:hover {
  background: var(--azzurro);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--bianco);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  border-color: var(--azzurro);
  color: var(--azzurro-deep);
}

.btn-outline:hover {
  background: var(--azzurro-mist);
}

/* —— Typography helpers —— */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azzurro);
  margin-bottom: 1rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--testo);
}

.display-xl {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.display-lg {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.display-md {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--testo-soft);
  max-width: 34rem;
  line-height: 1.7;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  position: relative;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.6s; }
.reveal-delay-6 { transition-delay: 0.72s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-content {
    animation: none !important;
  }
}

/* ========== HOME ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: hero-ken 18s var(--ease) forwards;
}

@keyframes hero-ken {
  to { transform: scale(1); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 45, 62, 0.4) 0%, rgba(15, 45, 62, 0.22) 30%, rgba(15, 45, 62, 0.3) 70%, rgba(15, 45, 62, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 26, 36, 0.78) 0%, rgba(8, 26, 36, 0.42) 32%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
  color: var(--bianco);
  animation: hero-in 1.1s var(--ease) 0.15s both;
  text-align: left;
}

.hero-content .eyebrow,
.hero-content .display,
.hero-content .lede {
  margin-right: auto;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .eyebrow {
  color: var(--azzurro-soft);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero .display {
  color: var(--bianco);
  max-width: 14ch;
  margin-bottom: 1.25rem;
  margin-right: auto;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 14px 46px rgba(0, 0, 0, 0.35);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.25rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Breath section */
.breath {
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
  background:
    linear-gradient(180deg, var(--bianco) 0%, var(--bianco-caldo) 50%, var(--bianco) 100%);
}

.breath-inner {
  width: min(720px, calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
}

.breath-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(180px, 40%);
  opacity: 0.08;
  pointer-events: none;
}

.breath .display {
  position: relative;
  margin-bottom: 1.5rem;
}

.breath .lede {
  margin-inline: auto;
  position: relative;
}

/* Split immersive */
.split {
  display: grid;
  min-height: min(80vh, 720px);
}

.split-media {
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vw, 5.5rem);
  background:
    linear-gradient(145deg, var(--azzurro-deep) 0%, #2a7399 55%, var(--azzurro) 100%);
  color: var(--bianco);
}

.split-copy .eyebrow {
  color: var(--azzurro-soft);
}

.split-copy .display {
  color: var(--bianco);
  margin-bottom: 1.15rem;
  max-width: 12ch;
}

.split-copy .lede {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }

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

/* Home journey: sfumatura continua, niente stacchi netti tra i blocchi */
.home-journey {
  background: var(--bianco-caldo);
}

/* Il gradiente copre solo filosofia+servizi: parte chiaro, arriva blu pieno
   esattamente dove il blocco tocca la foto sotto, niente bande intermedie */
.home-journey__act {
  background: linear-gradient(
    180deg,
    var(--bianco-caldo) 0%,
    var(--azzurro-mist) 100%
  );
}

.home-journey__step--photo {
  background: var(--azzurro-mist);
}

/* La CTA finale torna verso il chiaro dopo la foto */
.home-journey .cta-band {
  background: linear-gradient(
    180deg,
    var(--azzurro-mist) 0%,
    var(--bianco-caldo) 45%,
    var(--bianco) 100%
  );
}

.home-journey__step {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.home-journey__step--services {
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

/* Piccola icona del dente sopra l'eyebrow, stesso ruolo dello smile-arc */
.services-watermark {
  display: block;
  width: 2rem;
  height: auto;
  margin: -5rem auto 5rem;
  filter: invert(59%) sepia(33%) saturate(505%) hue-rotate(160deg) brightness(94%) contrast(90%);
}

@media (max-width: 700px) {
  .services-watermark {
    margin-top: 1.5rem;
  }
}

.home-journey__step.is-dark,
.home-journey__step.is-dark .display {
  color: var(--bianco);
}

.home-journey__step.is-dark .display {
  margin-bottom: 1rem;
}

.home-journey__step.is-dark .eyebrow {
  color: var(--azzurro-soft);
}

.home-journey__step.is-dark .lede {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.home-journey__step--intro {
  text-align: center;
}

.home-journey__intro {
  max-width: 42rem;
}

.home-journey__act {
  position: relative;
}

/* Sutura fra filosofia e servizi: linea verticale leggera che sfuma,
   stesso motivo dell'indicatore di scroll dell'hero */
.section-seam {
  display: block;
  position: relative;
  z-index: 1;
  width: 1px;
  height: 3.5rem;
  margin: -1rem auto;
  background: linear-gradient(
    180deg,
    transparent,
    var(--azzurro-deep) 50%,
    transparent
  );
  opacity: 0.5;
}

.home-journey__step--services .display {
  margin-bottom: 1rem;
}

.home-journey__step--services .lede {
  margin-bottom: 2rem;
}

.home-journey__step--intro .display {
  margin-bottom: 1rem;
}

.home-journey__services {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3.5rem;
}

.home-journey__services-copy {
  max-width: 38rem;
}

.home-journey__services-copy .lede {
  margin-inline: auto;
}

.services-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  max-width: 52rem;
}

@media (min-width: 560px) {
  .services-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .services-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.services-cards__item {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 9.5rem;
  padding: 2.25rem 1.25rem;
  border: 1px solid rgba(30, 90, 122, 0.14);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(30, 90, 122, 0.08);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.services-cards__item::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--azzurro-soft);
}

.services-cards__item span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--azzurro-deep);
}

.services-cards__item:hover {
  background: var(--bianco);
  border-color: var(--azzurro-soft);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(30, 90, 122, 0.16);
}

.home-journey__step--photo {
  padding: 0;
}

/* Closing CTA band */
.cta-band {
  text-align: center;
}

.cta-band .container {
  max-width: 46rem;
  margin-inline: auto;
}

.cta-band .display {
  margin-bottom: 1rem;
}

.cta-band .lede {
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ========== INNER PAGES ========== */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 5.5rem;
  position: relative;
  overflow: hidden;
  background: var(--azzurro-mist);
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -5%;
  top: 20%;
  width: min(180px, 30vw);
  height: min(180px, 30vw);
  background: url("../images/loghi/logo-tooth.png") center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(2.5rem, 6vw, 4rem);
  background: var(--bianco-caldo);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero .display {
  margin-bottom: 1rem;
  max-width: 100%;
}

.page-hero .lede {
  max-width: 100%;
}

/* Concept A — editorial index */
.page-hero--editorial .page-hero__grid {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 760px) {
  .page-hero--editorial .page-hero__grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

.page-hero--editorial .display {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}


/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 4rem;
  }
}

.about-photo {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--ombra);
  aspect-ratio: 1362 / 1417;
  background: var(--azzurro-mist);
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.photo-banner {
  position: relative;
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--ombra);
  aspect-ratio: 21 / 9;
}

.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-banner--full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 16 / 9;
}

.photo-banner--full img {
  object-fit: contain;
  background: var(--bianco-caldo);
}

.photo-banner figcaption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  padding: 0.5rem 1.1rem;
  background: rgba(15, 45, 62, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  color: var(--bianco);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .photo-banner {
    aspect-ratio: 4 / 5;
  }

  .photo-banner--full {
    aspect-ratio: 16 / 9;
  }

  .photo-banner--contain-mobile {
    aspect-ratio: 4 / 3;
  }

  .photo-banner--contain-mobile img {
    object-fit: contain;
    background: var(--bianco-caldo);
  }
}

.about-copy p + p {
  margin-top: 1.1rem;
}

.about-copy p {
  color: var(--testo-soft);
  font-size: 1.05rem;
}

.values {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 700px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value {
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--azzurro-soft);
}

.value h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 560;
  margin-bottom: 0.6rem;
  color: var(--azzurro-deep);
}

.value p {
  color: var(--testo-soft);
  font-size: 0.98rem;
}

/* Team */
.team-grid {
  display: grid;
  gap: 2.75rem;
}

@media (min-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2.5rem;
  }
}

.team-card__photo {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--ombra);
  aspect-ratio: 4 / 5;
  margin-bottom: 1.25rem;
  background: var(--azzurro-mist);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card__role {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azzurro);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 500;
  color: var(--azzurro-deep);
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.team-card__bio {
  color: var(--testo-soft);
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.team-card__albo-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azzurro);
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
}

.team-card__albo {
  font-size: 0.85rem;
  color: var(--testo-soft);
}

.team-cta {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--linea);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.team-cta .lede {
  margin: 0;
}

/* Services — list */
.services-index {
  position: relative;
}

.services-index::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(30, 90, 122, 0.1) 1.4px, transparent 1.4px);
  background-size: 28px 28px;
  pointer-events: none;
}

.services-index__cta {
  position: relative;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.services-list {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  counter-reset: service-row;
}

.service-row {
  counter-increment: service-row;
  position: relative;
  padding: 2.75rem 0;
  border-top: 1px solid var(--linea);
}

.service-row:first-child {
  border-top: none;
  padding-top: 1rem;
}

@media (min-width: 800px) {
  .service-row {
    max-width: 32rem;
  }

  .service-row:nth-child(odd) {
    margin-right: auto;
  }

  .service-row:nth-child(even) {
    margin-left: auto;
  }
}

.service-row__head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
}

.service-row__num {
  flex: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--azzurro-soft);
}

.service-row__num::before {
  content: counter(service-row, decimal-leading-zero);
}

@media (min-width: 1280px) {
  .service-row {
    overflow: visible;
  }

  .service-row__num {
    position: absolute;
    top: 0.3em;
    font-size: clamp(4.5rem, 7vw, 6.5rem);
    -webkit-text-stroke: 1.5px rgba(58, 143, 191, 0.4);
    color: rgba(168, 212, 232, 0.3);
  }

  .service-row:nth-child(odd) .service-row__num {
    left: calc(100% + 2.5rem);
  }

  .service-row:nth-child(even) .service-row__num {
    right: calc(100% + 2.5rem);
  }
}

.service-row__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 560;
  color: var(--azzurro-deep);
  position: relative;
  display: inline-block;
}

.service-row__body h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 2.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--azzurro), transparent);
}

.service-row__body p {
  color: var(--testo-soft);
  font-size: 0.94rem;
}

.service-row__body p + p {
  margin-top: 0.5rem;
}

.service-row__list {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

.service-row__list li {
  list-style: disc;
  color: var(--testo-soft);
  font-size: 0.94rem;
}

.service-row__list li + li {
  margin-top: 0.25rem;
}

/* Tech */
.tech-hero {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 860px) {
  .tech-hero {
    grid-template-columns: 1.3fr 1fr;
    gap: 2.25rem;
    align-items: stretch;
  }
}

.tech-hero__media {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--ombra);
}

.tech-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.tech-hero__media:hover img {
  transform: scale(1.04);
}

.tech-hero__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.25rem 2rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 45, 62, 0.55) 45%, rgba(15, 45, 62, 0.92) 100%);
  color: var(--bianco);
}

.tech-hero__caption .eyebrow {
  color: var(--azzurro-soft);
  margin-bottom: 0.5rem;
}

.tech-hero__caption h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  font-weight: 560;
  margin-bottom: 0.5rem;
}

.tech-hero__caption p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 30rem;
}

.tech-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-card {
  padding: 1.5rem 1.75rem 1.75rem;
  background: var(--bianco);
  border-radius: 1.25rem;
  border: 1px solid var(--linea);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.tech-card:hover {
  border-color: var(--azzurro-soft);
  box-shadow: var(--ombra);
  transform: translateY(-3px);
}

.tech-card__media {
  border-radius: 0.9rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  box-shadow: var(--ombra);
}

.tech-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.tech-card:hover .tech-card__media img {
  transform: scale(1.08);
}

.tech-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 560;
  color: var(--azzurro-deep);
  margin-bottom: 0.5rem;
}

.tech-card p {
  color: var(--testo-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.tech-card p + p {
  margin-top: 0.6rem;
}

.tech-detail {
  max-width: 44rem;
  padding-left: 1.75rem;
  border-left: 2px solid var(--azzurro-mist);
}

.tech-detail .eyebrow {
  margin-bottom: 0.6rem;
}

.tech-detail h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 560;
  color: var(--testo);
  margin-bottom: 1.25rem;
}

.tech-detail p {
  color: var(--testo-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.tech-detail p + p {
  margin-top: 1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 560;
  color: var(--azzurro-deep);
  margin-bottom: 1.5rem;
}

.contact-item {
  margin-bottom: 1.35rem;
}

.contact-item--row {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-item dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azzurro);
  margin-bottom: 0.35rem;
}

.contact-item dd {
  color: var(--testo);
  font-size: 1.05rem;
}

.contact-item a:hover {
  color: var(--azzurro);
}

.map-embed {
  margin-top: 2rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--linea);
  aspect-ratio: 16 / 11;
  background: var(--azzurro-mist);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) saturate(0.9);
}

.map-embed__cta {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--azzurro-deep);
}

.map-embed__cta:focus-visible {
  outline: 2px solid var(--azzurro-deep);
  outline-offset: -6px;
}

.map-embed__cta span {
  font-weight: 560;
  font-size: 1.05rem;
}

.map-embed__cta small {
  color: var(--testo-soft);
  font-size: 0.8rem;
}

.contact-form {
  background: var(--bianco);
  border: 1px solid var(--linea);
  border-radius: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--ombra);
}

.contact-form h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 560;
  color: var(--azzurro-deep);
  margin-bottom: 0.5rem;
}

.contact-form > p {
  color: var(--testo-soft);
  margin-bottom: 1.75rem;
  font-size: 0.98rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 560px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--testo-soft);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--linea);
  border-radius: 0.75rem;
  background: var(--bianco-caldo);
  color: var(--testo);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--azzurro);
  box-shadow: 0 0 0 3px rgba(58, 143, 191, 0.2);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-hint {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--testo-soft);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--testo-soft);
}

.form-success {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--azzurro-mist);
  border-radius: 0.75rem;
  color: var(--azzurro-deep);
  font-size: 0.95rem;
}

.form-success.is-shown {
  display: block;
}

.form-error {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: #fdecea;
  border-radius: 0.75rem;
  color: #b3261e;
  font-size: 0.95rem;
}

.form-error.is-shown {
  display: block;
}

.field-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  color: var(--testo-soft);
  cursor: pointer;
}

.field-consent label span {
  display: inline;
}

.field-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: auto;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 3.5rem 0 2rem;
  background:
    linear-gradient(180deg, transparent, rgba(214, 235, 245, 0.55));
  border-top: 1px solid var(--linea);
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand img {
  height: 3.5rem;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.footer-brand p {
  color: var(--testo-soft);
  font-size: 0.95rem;
  max-width: 22rem;
}

.footer-col h3 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azzurro);
  margin-bottom: 1rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--testo-soft);
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--azzurro-deep);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linea);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--testo-soft);
}

@media (max-width: 759px) {
  .footer-inner {
    text-align: center;
    justify-items: center;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--azzurro);
  outline-offset: 3px;
}
