/* ═══════════════════════════════════════════════════════════
   1. RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════
   2. DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {

  /* — palette — */
  --c-primary:        #0A4D8C;   /* deep professional blue */
  --c-primary-dark:   #073563;
  --c-primary-light:  #E8F1FB;
  --c-accent:         #2E8BD8;   /* lively water blue */

  --c-ink:            #0F1A2A;   /* anthracite text */
  --c-text:           #4A5568;
  --c-muted:          #8895A7;
  --c-line:           #E5EAF1;

  --c-bg:             #FFFFFF;
  --c-bg-soft:        #F7FAFD;

  /* — type — */
  --f-heading: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --f-body:    "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* — radii & shadow — */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(15,26,42,0.06);
  --shadow-md: 0 10px 30px rgba(15,26,42,0.08);
  --shadow-lg: 0 24px 60px rgba(15,26,42,0.12);

  /* — layout — */
  --container: 1240px;
  --header-h:  82px;

  /* — typography tuning (readability) — */
  --ls-body: 0.01em;
  --ls-head: -0.01em;
  --lh-body: 1.65;
  --lh-head: 1.14;
}

/* ═══════════════════════════════════════════════════════════
   3. GLOBAL
═══════════════════════════════════════════════════════════ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: var(--ls-body);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--f-heading);
  color: var(--c-ink);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
}

/* ═══════════════════════════════════════════════════════════
   4. UTILITIES
═══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section {
  padding: clamp(72px, 10vw, 130px) 0;
}

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-primary);
  padding: 6px 14px;
  background: var(--c-primary-light);
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}

.section__eyebrow--light {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
}

.section__title {
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 16px;
  letter-spacing: var(--ls-head);
}

.section__title--light {
  color: #ffffff;
}

.section__lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--c-text);
  max-width: 620px;
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════
   5. BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(10,77,140,0.25);
}

.btn--primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(10,77,140,0.35);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn--soft {
  background: var(--c-bg-soft);
  color: var(--c-ink);
  border-color: var(--c-line);
}

.btn--soft:hover {
  background: #fff;
  color: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.btn--full {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   6. HEADER (sticky)
═══════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* — logo — */
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.header__logo-text strong {
  font-family: var(--f-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.header__logo-text em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* — nav — */
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__list {
  display: flex;
  gap: 20px;
}

.nav__link {
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav__link:hover { color: var(--c-primary); }
.nav__link:hover::after { width: 100%; }

.nav__link.is-active { color: var(--c-primary); }
.nav__link.is-active::after { width: 100%; }

.nav__cta {
  padding: 11px 22px;
  font-size: 14px;
}

/* — hamburger — */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   7. HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 100px;
  display: flex;
  align-items: center;
  isolation: isolate;
  color: #ffffff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: scale(1.02);
  animation: zoomIn 1.4s ease-out forwards;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes zoomIn {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(7, 53, 99, 0.85) 0%,
      rgba(10, 77, 140, 0.72) 45%,
      rgba(46, 139, 216, 0.55) 100%);
  z-index: -1;
}

.hero__content {
  max-width: 820px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--r-pill);
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}

.hero__title {
  font-size: clamp(40px, 6.5vw, 78px);
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.012em;
}

.hero__title span {
  color: #BFDDF8;
  font-weight: 400;
  font-style: normal;
}

.hero__subtitle {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 38px;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 70px;
}

.hero__stats {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
  max-width: 640px;
}

.stat strong {
  display: block;
  font-family: var(--f-heading);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   8. SERVIZI
═══════════════════════════════════════════════════════════ */
.section--servizi {
  background: var(--c-bg-soft);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service:hover::before {
  transform: scaleX(1);
}

.service__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.3s ease;
}

.service__icon svg {
  width: 28px;
  height: 28px;
}

.service:hover .service__icon {
  background: var(--c-primary);
  color: #fff;
  transform: scale(1.05);
}

.service__title {
  font-size: 20px;
  margin-bottom: 12px;
}

.service__text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--c-text);
}

.service__link {
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  transition: gap 0.2s ease;
  display: inline-flex;
  gap: 4px;
}

.service__link:hover {
  gap: 10px;
  color: var(--c-primary-dark);
}

/* ═══════════════════════════════════════════════════════════
   9. CHI SIAMO
═══════════════════════════════════════════════════════════ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about__media:hover img {
  transform: scale(1.04);
}

.about__badge {
  position: absolute;
  right: -20px;
  bottom: 40px;
  background: var(--c-primary);
  color: #fff;
  padding: 22px 28px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about__badge strong {
  display: block;
  font-family: var(--f-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.about__badge span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.about__content .section__eyebrow {
  margin-left: 0;
}

.about__content .section__title {
  text-align: left;
  margin-bottom: 20px;
}

.about__content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

.about__features {
  margin: 28px 0 32px;
  display: grid;
  gap: 12px;
}

.about__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--c-ink);
  font-weight: 500;
}

.about__features svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  padding: 4px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════
   10. GALLERIA
═══════════════════════════════════════════════════════════ */
.section--gallery {
  background: var(--c-bg-soft);
}

/* ═══════════════════════════════════════════════════════════
   WHY / REVIEWS
═══════════════════════════════════════════════════════════ */
.section--why {
  background: #fff;
}

.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.why__card {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  background: var(--c-bg-soft);
  box-shadow: var(--shadow-sm);
}

.why__card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.why__card p {
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.7;
}

.reviews {
  margin-top: 38px;
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
}

.reviews__head {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.reviews__head h3 {
  font-size: 20px;
}

.reviews__head p {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.review {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  background: #fff;
}

.review__stars {
  color: var(--c-primary);
  font-size: 14px;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.review__name {
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.review__meta {
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.01em;
}

.reviews__cta {
  margin-top: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  display: block;
  background: #ddd;
}

.gallery__item--big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item img,
.gallery__item picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery__item picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15,26,42,0) 40%,
    rgba(15,26,42,0.8) 100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item:hover::after {
  opacity: 0.9;
}

.gallery__caption {
  position: absolute;
  bottom: 22px;
  left: 24px;
  right: 24px;
  z-index: 2;
  color: #fff;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery__item:hover .gallery__caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery__caption span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.gallery__caption h3 {
  color: #fff;
  font-size: 22px;
}

/* ═══════════════════════════════════════════════════════════
   11. CONTATTI
═══════════════════════════════════════════════════════════ */
.section--contact {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  color: #fff;
  position: relative;
  padding-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 5vw, 70px);
  margin-bottom: 80px;
}

.contact__info .section__title {
  text-align: left;
  margin-bottom: 18px;
}

.contact__lead {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  line-height: 1.6;
}

.contact__list {
  display: grid;
  gap: 22px;
}

.contact__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__list svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  color: #BFDDF8;
  flex-shrink: 0;
}

.contact__list strong {
  display: block;
  font-family: var(--f-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #BFDDF8;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact__list span,
.contact__list a {
  color: #fff;
  font-size: 16px;
}

.contact__list a:hover {
  color: #BFDDF8;
}

/* — form — */
.contact__form {
  background: #fff;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  color: var(--c-ink);
}

.form-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-muted);
}

.form-hint strong {
  color: var(--c-ink);
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact__form label {
  display: block;
}

.contact__form label > span {
  display: block;
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-ink);
  background: var(--c-bg-soft);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  transition: border-color 0.2s, background 0.2s;
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: #fff;
}

.contact__form textarea {
  resize: vertical;
  min-height: 110px;
}

.form-full {
  margin-bottom: 16px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.5;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--c-primary);
  flex-shrink: 0;
}

.form-check a {
  color: var(--c-primary);
  text-decoration: underline;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
}

.form-status.is-success {
  background: #E8F5EC;
  color: #1F7A3A;
}

.form-status.is-error {
  background: #FBEAEA;
  color: #B23030;
}

/* — map — */
.map {
  width: 100%;
  height: 360px;
  background: #ddd;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}

/* ═══════════════════════════════════════════════════════════
   12. FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: #ffffff;
  color: var(--c-text);
  padding-top: 80px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer__brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
  margin-bottom: 14px;
}

.footer__brand > div {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 14px;
}

.footer__brand strong {
  font-family: var(--f-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.footer__brand em {
  font-style: normal;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

.footer__brand p {
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer__col h4 {
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col a,
.footer__col li {
  font-size: 14px;
  color: var(--c-text);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--c-ink);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  color: var(--c-ink);
  transition: all 0.2s;
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__social a:hover {
  background: var(--c-primary);
  transform: translateY(-2px);
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid var(--c-line);
  padding: 22px 0;
  font-size: 13px;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom a:hover {
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   13. FLOATING CTA (phone)
═══════════════════════════════════════════════════════════ */
.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(10,77,140,0.4);
  z-index: 90;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: pulse 2.5s ease-out infinite;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}

.floating-cta__text {
  font-family: var(--f-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, font-size 0.25s ease, letter-spacing 0.25s ease;
  display: block;
}

.floating-cta.is-revealed {
  width: auto;
  border-radius: 999px;
  animation: none;
  padding-inline: 16px;
}

.floating-cta.is-revealed .floating-cta__text {
  opacity: 1;
  transform: translateY(0);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.floating-cta:hover {
  transform: scale(1.08);
  background: var(--c-primary-dark);
}

@keyframes pulse {
  0%   { box-shadow: 0 10px 30px rgba(10,77,140,0.4), 0 0 0 0 rgba(10,77,140,0.5); }
  70%  { box-shadow: 0 10px 30px rgba(10,77,140,0.4), 0 0 0 14px rgba(10,77,140,0); }
  100% { box-shadow: 0 10px 30px rgba(10,77,140,0.4), 0 0 0 0 rgba(10,77,140,0); }
}

/* ═══════════════════════════════════════════════════════════
   14. SCROLL REVEAL
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero__media { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   15. RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* — Tablet — */
@media (max-width: 980px) {

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 28px clamp(20px, 4vw, 40px) 36px;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }

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

  .nav__list {
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
  }

  .nav__list li {
    border-bottom: 1px solid var(--c-line);
  }

  .nav__link {
    display: block;
    padding: 16px 0;
    font-size: 17px;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    width: 100%;
    padding: 14px;
  }

  .hamburger {
    display: flex;
  }

  /* about + contact: single column */
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about__media {
    max-width: 480px;
    margin-inline: auto;
  }

  /* footer */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  /* gallery: 2 cols */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .why {
    grid-template-columns: 1fr;
  }

  .reviews__grid {
    grid-template-columns: 1fr;
  }
}

/* — Mobile — */
@media (max-width: 640px) {

  :root {
    --header-h: 70px;
  }

  .header__logo img {
    height: 38px;
  }

  .header__logo-text strong { font-size: 14px; }
  .header__logo-text em     { font-size: 11px; }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 70px;
    min-height: auto;
  }

  .hero__stats {
    gap: 22px;
  }

  .stat {
    flex: 1 1 calc(50% - 11px);
  }

  /* form: single column */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* gallery: 1 col */
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery__item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    aspect-ratio: 4 / 3;
  }

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

  /* footer single column */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__bottom .container {
    flex-direction: column;
    text-align: center;
  }

  /* floating cta smaller */
  .floating-cta {
    width: 50px;
    height: 50px;
    right: 16px;
    bottom: 16px;
  }

  .floating-cta.is-revealed {
    height: 50px;
    padding-inline: 14px;
  }
}
