:root {
  --ink: #1a1c27;
  --ink-soft: #2c3040;
  --paper: #f7f5f1;
  --white: #ffffff;
  --blue: #2f6fed;
  --blue-dark: #1f4fc0;
  --gold: #d4a017;
  --muted: #5c6170;
  --line: rgba(26, 28, 39, 0.12);
  --shadow: 0 18px 40px rgba(26, 28, 39, 0.12);
  --radius: 14px;
  --font: "Outfit", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(47, 111, 237, 0.08), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(212, 160, 23, 0.08), transparent 55%),
    var(--paper);
  line-height: 1.65;
  -webkit-tap-highlight-color: rgba(47, 111, 237, 0.18);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.header-top {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding:
    max(0.65rem, env(safe-area-inset-top))
    max(3.25rem, calc(0.65rem + env(safe-area-inset-right)))
    0.65rem
    max(1rem, env(safe-area-inset-left));
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
  max-width: calc(100% - 3.25rem);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.nav-desktop {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.menu-desktop {
  list-style: none;
  margin: 0 auto;
  padding: 0 0.5rem;
  max-width: 1200px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.menu-desktop > li {
  position: relative;
}

.menu-desktop > li > a,
.menu-desktop .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
}

.menu-desktop > li > a:hover,
.menu-desktop .dropdown-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-desktop > li > a.is-active,
.menu-desktop .dropdown-trigger.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -2px 0 #4d7fe8;
}

.menu-desktop .dropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
}

.menu-desktop .dropdown {
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 4px);
  min-width: 190px;
  width: max-content;
  max-width: 260px;
  background: #232633;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 90;
}

.menu-desktop .dropdown a,
.menu-desktop .subdropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.5rem 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 7px;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 500;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
}

.menu-desktop .dropdown a:hover,
.menu-desktop .dropdown a.is-active,
.menu-desktop .subdropdown-trigger:hover,
.menu-desktop .subdropdown-trigger.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.menu-desktop .has-subdropdown {
  position: relative;
}

.menu-desktop .subdropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.menu-desktop .has-subdropdown.is-open > .subdropdown-trigger::after {
  transform: rotate(180deg);
}

.menu-desktop .submenu {
  list-style: none;
  display: none;
  margin: 0.1rem 0 0.15rem;
  padding: 0.1rem 0 0.1rem 0.45rem;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
}

.menu-desktop .has-subdropdown.is-open > .submenu {
  display: block;
}

.menu-desktop .submenu a {
  display: block;
  padding: 0.38rem 0.6rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
}

.menu-desktop .submenu a:hover,
.menu-desktop .submenu a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.menu-desktop .has-dropdown:hover > .dropdown,
.menu-desktop .has-dropdown:focus-within > .dropdown,
.menu-desktop .has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.menu-desktop > li:nth-last-child(-n+3) .dropdown {
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}

.menu-desktop > li:nth-last-child(-n+3).has-dropdown:hover > .dropdown,
.menu-desktop > li:nth-last-child(-n+3).has-dropdown:focus-within > .dropdown,
.menu-desktop > li:nth-last-child(-n+3).has-dropdown.is-open > .dropdown {
  transform: translate(0, 0);
}

.page-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
}

.page-kicker a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.page-kicker a:hover {
  color: #fff;
}

.nav-toggle {
  position: absolute;
  right: max(0.35rem, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 980px) {
  .nav-desktop {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .header-top {
    padding: 0.65rem 1rem;
  }
}

.offcanvas[hidden],
.offcanvas-backdrop[hidden] {
  display: none;
}

.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.offcanvas-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: var(--ink-soft);
  color: #fff;
  padding: 1.25rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  pointer-events: auto;
}

body.nav-open .offcanvas-panel {
  transform: translateX(0);
}

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.55);
  z-index: 55;
}

.offcanvas-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.nav-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu a,
.menu > li > span,
.menu-accordion {
  display: block;
  padding: 0.85rem 0.2rem;
  color: #fff;
  text-decoration: none;
}

.menu a.is-active,
.menu a:hover,
.menu-accordion.is-active {
  color: #f0c75e;
}

.menu-accordion {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
}

.menu-accordion::after {
  content: "";
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.menu .has-children.is-open > .menu-accordion::after {
  transform: rotate(180deg);
}

.menu-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem 0.85rem;
  display: none;
}

.menu .has-children.is-open > .menu-submenu {
  display: block;
}

.menu-submenu a {
  padding: 0.55rem 0.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.menu-submenu .menu-submenu {
  padding-left: 0.75rem;
  margin: 0.15rem 0 0.35rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
}

.menu > li > span {
  display: block;
  padding: 0.85rem 0.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(320px, 58vh, 560px);
  display: grid;
  place-items: end center;
  background:
    linear-gradient(180deg, rgba(26, 28, 39, 0.22), rgba(26, 28, 39, 0.62)),
    url("../img/hero-hands.webp") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(18, 20, 30, 0.72));
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  padding: 3rem 0 2.5rem;
  animation: rise 0.8s ease both;
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin: 0 auto 1.4rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
}

.btn-dark:hover {
  background: var(--ink-soft);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-strip {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 0;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.cta-strip .btn {
  box-shadow: var(--shadow);
  max-width: 100%;
  width: min(100%, 34rem);
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .split.reverse {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .split.reverse > :first-child {
    order: 2;
  }
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.services {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.services li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.services li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink), #2a3350);
  color: #fff;
  padding: 3.5rem 1rem 2.5rem;
}

.has-page-hero-photo .page-hero {
  background:
    linear-gradient(120deg, rgba(18, 20, 30, 0.82) 8%, rgba(26, 28, 39, 0.62) 48%, rgba(26, 28, 39, 0.78) 100%),
    var(--page-hero-image) center / cover no-repeat;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.has-page-hero-photo .page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(18, 20, 30, 0.35));
  pointer-events: none;
  z-index: 0;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.page-hero p {
  margin: 0.7rem 0 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.82);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.stats {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 1.5rem;
}

.stat {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
}

.stat span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.optional-list {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.optional-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.optional-list img {
  width: 28px;
  height: 28px;
}

.list-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.list-block + .list-block {
  margin-top: 1.25rem;
}

.list-block h2 {
  margin: 0;
  padding: 0.95rem 1.15rem;
  background: var(--ink);
  color: #fff;
  font-size: 1.05rem;
}

.list-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-block li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--line);
}

.list-block li span {
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-list a {
  font-weight: 600;
  text-decoration: none;
}

.doc-list a:hover {
  text-decoration: underline;
}

.inscrieri-stack {
  display: grid;
  gap: 1rem;
}

.inscrieri-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  scroll-margin-top: 7rem;
}

.inscrieri-item h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.inscrieri-item > p {
  margin: 0;
  color: var(--muted);
}

.inscrieri-item .muted-note {
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.doc-list-inline {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.doc-list-inline li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.55rem 0.7rem;
  background: #f5f7fb;
  border-radius: 8px;
}

.doc-list-inline a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
}

.doc-list-inline a:hover {
  text-decoration: underline;
}

.doc-list-inline span {
  color: var(--muted);
  font-size: 0.85rem;
}

.inscrieri-carousel {
  margin: 0.95rem auto 0;
  max-width: 520px;
}

.inscrieri-carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f5f7fb;
}

.inscrieri-carousel-track {
  display: flex;
  transition: transform 0.28s ease;
  will-change: transform;
}

.inscrieri-carousel-slide {
  margin: 0;
  flex: 0 0 100%;
  min-width: 100%;
}

.inscrieri-carousel-slide a {
  display: block;
}

.inscrieri-carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f5f7fb;
}

.inscrieri-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.inscrieri-carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.inscrieri-carousel-btn:hover {
  background: #eef3ff;
  border-color: #c9d7f5;
}

.inscrieri-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.inscrieri-carousel-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.inscrieri-carousel-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c8cedc;
  transform: translate(-50%, -50%);
}

.inscrieri-carousel-dot.is-active::after {
  background: var(--blue-dark, #1f4fc0);
}

.inscrieri-carousel-status {
  margin: 0.45rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold);
  display: grid;
  place-items: center;
  position: relative;
}

.contact-icon::before {
  content: "";
  display: block;
  background: currentColor;
}

.contact-icon-pin::before {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: transparent;
}

.contact-icon-phone::before {
  width: 10px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: transparent;
}

.contact-icon-mail::before {
  width: 16px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: transparent;
}

.contact-item h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.contact-item p {
  margin: 0;
  color: var(--muted);
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.form label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form textarea {
  width: 100%;
  margin-bottom: 0.95rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #e8f6ec;
  color: #1d6b3a;
}

.alert-error {
  background: #fdecec;
  color: #8a1f1f;
}

.map-embed {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dfe3ea;
  min-height: 320px;
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery a:hover img {
  transform: scale(1.04);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 22, 0.72);
  backdrop-filter: blur(2px);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(960px, calc(100vw - 5.5rem));
  max-height: calc(100vh - 5rem);
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}

.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.lightbox-figure figcaption {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-prev {
  left: 0.85rem;
}

.lightbox-next {
  right: 0.85rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-status {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .lightbox-figure {
    max-width: calc(100vw - 1.5rem);
  }

  .lightbox-nav {
    top: auto;
    bottom: 3.4rem;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 3.4rem);
  }

  .lightbox-next {
    right: calc(50% - 3.4rem);
  }
}

.site-footer {
  margin-top: 2rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
}

.footer-band {
  background: linear-gradient(90deg, #243056, #1a1c27 45%, #3a2d12);
  text-align: center;
  padding: 1.4rem 1rem;
}

.footer-slogan {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-grid h3 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 1.05rem;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.4rem;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: #f0c75e;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-copy p {
  margin: 0;
}

.footer-credit {
  margin-top: 0.35rem !important;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer-credit a:hover {
  color: #f0c75e;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: rise 0.7s ease both;
}

@media (max-width: 979px) {
  body {
    overflow-x: hidden;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .brand-text small {
    font-size: 0.74rem;
  }

  .hero {
    min-height: clamp(260px, 52vh, 420px);
    background:
      linear-gradient(180deg, rgba(26, 28, 39, 0.28), rgba(26, 28, 39, 0.68)),
      url("../img/hero-hands.webp") center / cover no-repeat;
  }

  .hero::after {
    height: 68%;
    background: linear-gradient(180deg, transparent, rgba(18, 20, 30, 0.8));
  }

  .hero-inner {
    padding: 2.2rem 0 1.8rem;
  }

  .cta-strip {
    padding: 1.1rem 0.85rem 0;
    margin-top: -1.2rem;
  }

  .cta-strip .btn {
    font-size: 0.92rem;
    padding: 0.8rem 1rem;
  }

  .section {
    width: min(var(--max), calc(100% - 1.5rem));
    padding: 2.1rem 0;
  }

  .page-hero {
    padding: 2.4rem max(1rem, env(safe-area-inset-right)) 1.8rem max(1rem, env(safe-area-inset-left));
  }

  .has-page-hero-photo .page-hero {
    min-height: 180px;
  }

  .page-hero h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .cards,
  .stats,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery {
    gap: 0.85rem;
  }

  .doc-list-inline li,
  .list-block li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .doc-list-inline a {
    word-break: break-word;
  }

  .inscrieri-carousel {
    max-width: 100%;
  }

  .inscrieri-carousel-btn {
    width: 44px;
    height: 44px;
  }

  .offcanvas-panel {
    width: min(100vw, 360px);
    padding: 1.1rem 1rem 2rem;
    padding-top: max(1.1rem, env(safe-area-inset-top));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    -webkit-overflow-scrolling: touch;
  }

  .menu a,
  .menu > li > span,
  .menu-accordion {
    padding: 0.95rem 0.15rem;
    font-size: 1.02rem;
  }

  .menu-submenu a {
    padding: 0.55rem 0.15rem;
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .footer-grid {
    width: min(var(--max), calc(100% - 1.5rem));
    padding: 1.8rem 0;
    gap: 1.5rem;
  }

  .footer-copy {
    padding: 1rem 0.85rem calc(1rem + env(safe-area-inset-bottom));
  }

  .form {
    padding: 1rem;
  }

  .form input,
  .form textarea,
  .btn {
    min-height: 44px;
  }

  .contact-item {
    grid-template-columns: 38px 1fr;
  }

  .map-embed {
    min-height: 240px;
  }

  .map-embed iframe {
    height: 240px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(1.45rem, 7.5vw, 1.9rem);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  }

  .section-title {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  .split {
    gap: 1.25rem;
  }

  .services li {
    padding: 0.75rem 0.85rem 0.75rem 2.1rem;
  }

  .inscrieri-item {
    padding: 1rem;
  }

  .inscrieri-item h2 {
    font-size: 1.05rem;
  }

  .offcanvas-panel {
    width: 100%;
  }

  .lightbox-figure figcaption {
    font-size: 0.88rem;
    padding: 0 0.5rem;
  }

  .lightbox-status {
    bottom: 0.75rem;
  }
}

.faq-section {
  padding-bottom: 3.5rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--blue-dark);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.media-frame picture {
  display: block;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-inner,
  .gallery img {
    animation: none !important;
    transition: none !important;
  }
}
