:root {
  --bg: #f2efe8;
  --bg-soft: #e5ddce;
  --surface: rgba(255, 252, 247, 0.72);
  --surface-strong: #fffaf2;
  --text: #15120f;
  --muted: #5f5850;
  --line: rgba(21, 18, 15, 0.12);
  --accent: #606733;
  --accent-dark: #424722;
  --sand: #c7ac7f;
  --max-width: 1320px;
  --shadow: 0 10px 28px rgba(30, 21, 12, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f3ec 0%, var(--bg) 100%);
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  padding: 24px 0 56px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
  position: sticky;
  top: 12px;
  z-index: 20;
  background: rgba(255, 250, 242, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(70, 46, 26, 0.06);
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff8f2;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.brand-text {
  display: grid;
}

.brand-text strong,
.eyebrow,
h1,
h2,
h3 {
  font-family: "Barlow Condensed", sans-serif;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: end;
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.94;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.6rem, 10vw, 7.4rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  max-width: 12ch;
}

h3 {
  font-size: 2rem;
}

.lead,
.process-copy p,
.section-heading p:last-child,
.service-card p,
.showcase-copy p,
.numbers-grid p,
.timeline-item p,
.contact-card h2 + p,
.contact-form label {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.button:hover {
  opacity: 0.96;
}

.button-primary {
  color: #fff9f4;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 14px 32px rgba(255, 217, 0, 0.336);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 251, 246, 0.6);
  border-color: var(--line);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card,
.stats-card,
.service-card,
.timeline-item,
.showcase-card,
.numbers-grid,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-card {
  min-height: 340px;
  padding: 28px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, #f7efe3, #fdfaf5);
}

.panel-card p,
.stats-card span {
  margin: 0;
  color: rgba(21, 18, 15, 0.7);
}

.panel-card h2 {
  margin-top: 8px;
  max-width: 8ch;
}

.panel-card ul {
  margin: 24px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
}

.stats-card strong,
.numbers-grid strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.section {
  padding: 28px 0 72px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

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

.service-card,
.showcase-card {
  border-radius: 26px;
  padding: 24px;
}

.service-card span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
}

.service-card h3 {
  margin-top: 14px;
  font-size: 2.1rem;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 22px;
  border-radius: 22px;
}

.timeline-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.showcase-card {
  padding: 14px;
}

.showcase-visual {
  min-height: 220px;
  border-radius: 18px;
}

.visual-one {
  background: linear-gradient(135deg, #2b2520, #f5d000 55%, #f1d7b8);
}

.visual-two {
  background: linear-gradient(135deg, #887356, #d7c09d, #364138);
}

.visual-three {
  background: linear-gradient(135deg, #381a16, #a76d45, #f3e2c9);
}

.showcase-copy {
  padding: 18px 10px 8px;
}

.numbers-grid {
  border-radius: 30px;
  padding: 26px;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card {
  border-radius: 32px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 15px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 250, 243, 0.88);
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
}

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

.reveal-delay {
  transition-delay: 140ms;
}

/* Layout desktop: più spazio per leggere e per le fotografie. */
@media (min-width: 961px) {
  .site-shell { width: min(calc(100% - 80px), var(--max-width)); }
  .hero { min-height: auto; padding-bottom: 104px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: clamp(48px, 7vw, 104px);
    align-items: center;
    padding-top: clamp(88px, 10vw, 140px);
  }
  h1 { font-size: clamp(4.4rem, 6.2vw, 6.5rem); max-width: 11ch; line-height: .99; }
  h2 { font-size: clamp(2.8rem, 4vw, 4rem); line-height: 1.02; max-width: 17ch; }
  .panel-card h2 { max-width: 12ch; }
  .lead { font-size: 1.12rem; line-height: 1.8; }
  .section { padding: 64px 0 96px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { max-width: 22ch; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .service-card { padding: 32px; }
  .service-card h3 { font-size: 2.35rem; line-height: 1.05; }
  .service-card p, .showcase-copy p, .timeline-item p, .process-copy > p:last-child { font-size: 1.04rem; line-height: 1.8; }
  .process-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 100px); }
  .process-copy { position: sticky; top: 120px; }
  .timeline-item { padding: 28px 30px; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .showcase-card { padding: 16px; }
  .carousel-container { aspect-ratio: 16 / 10; border-radius: 18px; }
  .showcase-copy { padding: 18px 14px 12px; }
  .showcase-copy h3 { line-height: 1.05; }
  .contact-card { padding: 44px; gap: 56px; }
  .contact-card h2 { max-width: 15ch; }
  .footer-container { max-width: var(--max-width); }
}

.nav-links a, .footer-list a, .footer-social a {
  transition: color 180ms ease;
}
.nav-links a:hover { color: var(--accent); }
.button { transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30, 21, 12, .14); }
.service-card, .showcase-card, .timeline-item {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.service-card:hover, .showcase-card:hover, .timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(30, 21, 12, .12);
  border-color: rgba(66, 71, 34, .28);
}
.carousel-btn { transition: background 180ms ease, transform 180ms ease; }
.carousel-btn:hover { transform: translateY(-50%); }

/* Portfolio fotografico: immagini complete, anteprime e ingrandimento. */
.showcase-card { overflow: hidden; }
.carousel-container {
  background: linear-gradient(145deg, #e9e2d5, #f7f3ec);
  border: 1px solid rgba(21, 18, 15, .08);
  margin-bottom: 12px;
}
.carousel-track img {
  object-fit: contain;
  padding: 10px;
  cursor: zoom-in;
}
.carousel-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(66, 71, 34, .35) transparent;
}
.carousel-thumb {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 138px;
  max-width: 190px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 242, .76);
  color: var(--muted);
  text-align: left;
  font: 600 .72rem/1.25 "Manrope", sans-serif;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.carousel-thumb:hover { transform: translateY(-2px); }
.carousel-thumb.is-active {
  border-color: var(--accent);
  background: #fffdf8;
  color: var(--text);
  box-shadow: 0 0 0 1px var(--accent);
}
.carousel-thumb img {
  width: 50px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  background: #e9e2d5;
}
.carousel-thumb span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.photo-lightbox {
  position: fixed;
  width: min(94vw, 1200px);
  max-width: none;
  max-height: 92dvh;
  padding: 54px 64px 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  background: #171713;
  color: #fff;
  overflow: visible;
}
.photo-lightbox::backdrop { background: rgba(13, 13, 11, .88); backdrop-filter: blur(5px); }
.photo-lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.photo-lightbox figure img { display: block; max-width: 100%; max-height: calc(92dvh - 125px); object-fit: contain; }
.photo-lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: .92rem; text-align: center; }
.lightbox-close, .lightbox-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  background: rgba(20, 20, 18, .75);
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}
.lightbox-close { top: 12px; right: 12px; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-arrow:hover, .lightbox-close:hover { background: var(--accent-dark); }

@media (max-width: 640px) {
  .carousel-container { aspect-ratio: 4 / 3; }
  .carousel-track img { padding: 6px; }
  .photo-lightbox { width: 96vw; padding: 56px 42px 20px; border-radius: 18px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: 6px; right: 6px; }
}

/* Hero full screen */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  margin-left: calc(50% - 50vw);
  padding: 120px 32px 56px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background-color: #24251d;
  background-image:
    linear-gradient(110deg, rgba(12, 13, 11, .72), rgba(12, 13, 11, .38) 52%, rgba(12, 13, 11, .66)),
    url("res/cannondale.jpg");
  background-size: cover;
  background-position: center 57%;
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(10, 11, 9, .42), transparent 38%, rgba(10, 11, 9, .16));
}
.hero .nav {
  position: absolute;
  top: 22px;
  left: 50%;
  width: min(calc(100% - 48px), var(--max-width));
  transform: translateX(-50%);
  background: rgba(255, 250, 242, .94);
  backdrop-filter: blur(14px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 26px;
  width: min(100%, 1060px);
  margin: auto;
  padding: 24px 0 0;
  text-align: center;
}
.hero-copy { display: grid; justify-items: center; }
.hero .eyebrow { color: #f1cf59; }
.hero h1 {
  max-width: 14ch;
  color: #fff;
  font-size: clamp(3.5rem, 7.2vw, 7rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .38);
}
.hero .lead {
  max-width: 67ch;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.75;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.hero .button-primary {
  color: #1c1d14;
  background: linear-gradient(135deg, #f3d36b, #d6b649);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .25);
}
.hero .button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .58);
  backdrop-filter: blur(8px);
}
.hero-panel { width: min(100%, 860px); gap: 12px; }
.hero .panel-card {
  min-height: 0;
  padding: 18px 26px;
  border-color: rgba(255, 255, 255, .2);
  border-radius: 22px;
  background: rgba(24, 25, 20, .64);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(14px);
}
.hero .panel-card p, .hero .panel-card li { color: rgba(255, 255, 255, .86); }
.hero .panel-card h2 {
  max-width: none;
  color: #fff;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.05;
}
.hero .panel-card ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 22px;
  margin-top: 14px;
  line-height: 1.55;
}
.hero .stats-card {
  width: fit-content;
  margin: 0 auto;
  padding: 10px 20px;
  border-color: rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(24, 25, 20, .56);
  color: #fff;
  backdrop-filter: blur(12px);
}
.hero .stats-card strong { font-size: 1.5rem; line-height: 1; }
.hero .stats-card span { color: rgba(255, 255, 255, .78); font-size: .8rem; }

@media (max-width: 960px) {
  .hero { padding: 112px 24px 36px; }
  .hero-grid { padding-top: 16px; }
  .hero .panel-card ul { grid-template-columns: 1fr; gap: 4px; }
  .hero .nav { position: absolute; }
}
@media (max-width: 640px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 100px 20px 28px;
    background-position: 54% center;
  }
  .hero .nav { width: calc(100% - 28px); top: 14px; }
  .hero-grid { gap: 18px; padding-top: 8px; }
  .hero h1 { max-width: 12ch; font-size: clamp(3rem, 12.5vw, 4.5rem); }
  .hero .lead { margin-top: 14px; font-size: .98rem; line-height: 1.62; }
  .hero-actions { width: min(100%, 360px); margin-top: 20px; gap: 10px; }
  .hero .button { min-height: 48px; }
  .hero .panel-card { padding: 16px 18px; }
  .hero .panel-card h2 { font-size: 1.65rem; }
  .hero .panel-card ul { margin-top: 10px; padding-left: 18px; font-size: .88rem; line-height: 1.5; }
  .hero .stats-card { padding: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .hero-grid,
  .process-layout,
  .contact-card,
  .service-grid,
  .showcase-grid,
  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 28px;
  }

  h1 {
    max-width: 12ch;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 22px;
    background: #fff9f0;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(30, 21, 12, 0.06);
  }

  .nav.nav-open .nav-links {
    display: flex;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .hero {
    padding-top: 14px;
  }

  .nav,
  .panel-card,
  .service-card,
  .showcase-card,
  .numbers-grid,
  .contact-card {
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.9rem);
  }

  h2 {
    max-width: 100%;
  }

  .hero-actions,
  .stats-card {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

/* --- STILE FOOTER --- */
.site-footer {
    background-color: #1a1a1a; /* Grigio molto scuro, quasi nero */
    color: #e0e0e0;
    padding: 4rem 2rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #333;
}

.footer-brand, .footer-contacts, .footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-desc {
    line-height: 1.6;
    color: #a0a0a0;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.8rem;
    color: #a0a0a0;
}

.footer-list a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-social {
    margin-top: 1.5rem;
}

.footer-social a {
    color: #e0e0e0;
    text-decoration: none;
    margin-right: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #ffffff;
}

.footer-social .footer-instagram {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 0;
    text-decoration: none;
    color: inherit;
    text-transform: lowercase;
}

.footer-hours-indent { visibility: hidden; }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #777;
}

/* Adatta per i cellulari */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
}

/* --- STILE CAROSELLO FOTO --- */
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; 
    overflow: hidden;  
    border-radius: 12px;
    margin-bottom: 1rem;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out; 
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0; 
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); 
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

.carousel-btn:hover { background: rgba(0, 0, 0, 0.8); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Keep the full-screen hero rules after the legacy responsive rules above. */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 32px 56px;
}
@media (max-width: 960px) {
  .hero { padding: 112px 24px 36px; }
}
@media (max-width: 640px) {
  .hero { padding: 100px 20px 28px; }
}

.hero-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hero::after { z-index: 1; }
.hero-grid { position: relative; z-index: 2; }
.hero .nav { z-index: 20; }

/* Tema custom painting: video a proporzioni originali e accenti da officina. */
:root {
  --accent: #ff5a28;
  --accent-dark: #27332c;
}
.hero-video {
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(100%, 1600px);
  height: min(100%, 900px);
  max-width: 100%;
  max-height: 90vh;
  max-height: 90svh;
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center;
}
.hero {
  background-color: #111512;
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(31, 43, 34, .22), rgba(10, 13, 11, .8)),
    url("res/cannondale.jpg");
}
.hero::after {
  background: linear-gradient(90deg, rgba(9, 12, 10, .78), rgba(9, 12, 10, .35) 50%, rgba(9, 12, 10, .78));
}
.hero h1 {
  color: #f7f6f1;
  background: linear-gradient(180deg, #fff 4%, #d8d9d3 42%, #ffb184 57%, #ff5a28 76%, #fff0df 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 38px rgba(0, 0, 0, .24);
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .28));
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 { color: #fff; -webkit-text-fill-color: #fff; }
}
.hero .eyebrow { color: #c7ff4a; }
.button-primary {
  color: #171a14;
  background: linear-gradient(135deg, #ff8a3d, #ff5428);
  box-shadow: 0 12px 30px rgba(255, 83, 40, .28);
}
.button-primary:hover { box-shadow: 0 15px 34px rgba(255, 83, 40, .4); }
.hero .button-primary {
  color: #171a14;
  background: linear-gradient(135deg, #ff9a46, #ff5428);
}
.hero .button-secondary {
  border-color: rgba(199, 255, 74, .72);
}
.hero .button-secondary:hover { background: rgba(199, 255, 74, .14); }
.hero .panel-card { border-color: rgba(255, 90, 40, .48); }
.hero .stats-card strong { color: #c7ff4a; }
.nav-links a:hover { color: #ff5a28; }
.button:focus-visible, .nav-links a:focus-visible {
  outline: 3px solid #c7ff4a;
  outline-offset: 4px;
}

/* Full-bleed video background: preserve the uploaded clip as the hero backdrop. */
.hero { background-image: none; background-color: #101411; }
.hero-video {
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  transform: none;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}
.hero::after { z-index: 0; }
.hero-grid { position: relative; z-index: 2; }
.hero .nav { z-index: 20; }

.carousel-track > video {
  display: block;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  padding: 0;
  object-fit: contain;
  background: transparent;
}
.carousel-thumb.is-video { position: relative; }
.carousel-thumb.is-video::after {
  position: absolute;
  left: 22px;
  top: 50%;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 20, 17, .82);
  color: #c7ff4a;
  content: "▶";
  font-size: .65rem;
  transform: translateY(-50%);
}
.carousel-container { border: 0; background: transparent; }
.carousel-track img { padding: 0; object-fit: contain; }
.photo-lightbox figure img,
.photo-lightbox figure video {
  display: block;
  max-width: 100%;
  max-height: calc(92dvh - 125px);
  object-fit: contain;
}
.photo-lightbox figure video { width: min(100%, 1000px); background: #080908; }
.photo-lightbox figure .is-hidden { display: none !important; }
.showcase-card-carbon .carousel-container { aspect-ratio: 4 / 3; }
.showcase-card-carbon .carousel-track img { object-fit: contain; }

/* Rifinitura gallerie lavori: angoli morbidi e comandi più discreti. */
.showcase-card {
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 253, 249, .98), rgba(247, 243, 235, .92));
  box-shadow: 0 12px 32px rgba(30, 21, 12, .08);
}
.carousel-container {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #e9e6de, #f6f3ed);
}
.carousel-track {
  border-radius: inherit;
}
.carousel-slide {
  display: grid;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  place-items: center;
  overflow: hidden;
}
.carousel-track img,
.carousel-track video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  flex: 0 1 auto;
  border-radius: 18px;
  object-fit: contain;
}
.carousel-btn {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(19, 23, 20, .66);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  backdrop-filter: blur(8px);
}
.carousel-btn:hover {
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(255, 90, 40, .3);
}
.carousel-thumb {
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
}
.carousel-thumb img { border-radius: 9px; }
.showcase-card:hover .carousel-container {
  box-shadow: 0 12px 28px rgba(30, 21, 12, .1);
}
@media (max-width: 640px) {
  .showcase-card { border-radius: 22px; }
  .carousel-container { border-radius: 18px; }
  .carousel-track img,
  .carousel-track video { border-radius: 15px; }
}

/* Unifica hero, contenuti e footer nella stessa palette officina. */
:root {
  --bg: #111512;
  --bg-soft: #1c221d;
  --surface: rgba(31, 37, 32, .96);
  --surface-strong: #252c26;
  --text: #f4f3ed;
  --muted: #c0c5bd;
  --line: rgba(244, 243, 237, .13);
  --accent: #ff642f;
  --accent-dark: #354239;
  --shadow: 0 16px 38px rgba(0, 0, 0, .22);
}
body {
  color: var(--text);
  background: linear-gradient(180deg, #171c18 0%, #111512 48%, #171c18 100%);
}
.nav {
  background: rgba(24, 29, 25, .88);
  border-color: var(--line);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
}
.hero .nav {
  background: rgba(24, 29, 25, .88);
  border-color: var(--line);
}
.brand, .nav-links a { color: var(--text); }
.brand-text small { color: var(--muted); }
.nav-toggle span { background: var(--text); }
.nav-links {
  background: #202720;
  border-color: var(--line);
}
.eyebrow, .service-card span { color: #ff8757; }
.section-heading h2,
.process-copy h2,
.contact-card h2 { color: var(--text); }
.service-card,
.timeline-item,
.showcase-card,
.numbers-grid,
.contact-card {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(34, 41, 35, .98), rgba(25, 30, 26, .98));
  box-shadow: var(--shadow);
}
.service-card:hover,
.timeline-item:hover,
.showcase-card:hover {
  border-color: rgba(255, 100, 47, .55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .3), 0 0 24px rgba(255, 100, 47, .06);
}
.carousel-container {
  background: linear-gradient(145deg, #1a201b, #242a24);
}
.carousel-thumb {
  border-color: rgba(244, 243, 237, .16);
  background: #222922;
  color: var(--muted);
}
.carousel-thumb.is-active {
  border-color: var(--accent);
  background: #2b332c;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 100, 47, .5);
}
.carousel-thumb img { background: #161b17; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  border-color: rgba(244, 243, 237, .16);
  background: #171d18;
  color: var(--text);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #929a90; }
.contact-form select option { color: var(--text); background: #171d18; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(255, 100, 47, .65);
  outline-offset: 2px;
}
.site-footer {
  background: #101411;
  border-top: 1px solid var(--line);
}

/* Desktop: allinea il brand e le voci di navigazione senza fondi verdi. */
@media (min-width: 961px) {
  .nav {
    min-height: 72px;
    padding: 10px 22px;
    align-items: center;
  }
  .brand { flex: 0 0 auto; }
  .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 1.2vw, 18px);
    padding: 0;
    border: 0;
    background: transparent;
  }
  .nav-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    background: transparent;
    line-height: 1;
    white-space: nowrap;
  }
  .nav-links a:hover {
    color: #ff8757;
    background: rgba(255, 100, 47, .12);
  }
  .service-card,
  .showcase-card { display: flex; flex-direction: column; align-items: stretch; }
  .service-card h3,
  .showcase-copy h3 { min-height: 2.1em; }
  .showcase-copy { flex: 1; }
}
@media (max-width: 960px) {
  .nav.nav-open .nav-links {
    border: 1px solid var(--line);
    background: #202720;
  }
}

/* Responsive layout and media framing, applied after the legacy rules. */
h1, h2, h3 { text-wrap: balance; }
.site-shell { min-width: 0; }
.section-heading h2,
.process-copy h2,
.contact-card h2,
.service-card h3,
.showcase-copy h3 { overflow-wrap: anywhere; }
.service-card p,
.timeline-item p,
.showcase-copy p,
.process-copy > p:last-child { max-width: 68ch; }

.carousel-container {
  aspect-ratio: 4 / 3;
  width: 100%;
}
.carousel-track,
.carousel-slide { min-width: 0; }
.carousel-track { width: 100%; }
.carousel-slide.is-portrait img {
  max-width: min(100%, 74%);
}
.carousel-slide.is-landscape img { max-width: 100%; }
.carousel-track img,
.carousel-track video {
  object-position: center;
}

@media (min-width: 1101px) {
  .hero-grid { max-width: 1060px; }
  .service-grid,
  .showcase-grid { gap: 24px; }
  .section-heading { max-width: 100%; }
}

@media (min-width: 681px) and (max-width: 960px) {
  .site-shell { width: min(calc(100% - 48px), var(--max-width)); }
  .service-grid,
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .service-card { padding: 26px; }
  .service-card h3 { font-size: clamp(1.8rem, 3.2vw, 2.2rem); }
  .showcase-card { padding: 14px; }
  .showcase-copy { padding: 16px 8px 8px; }
  .showcase-copy h3 { min-height: 0; font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1.06; }
  .showcase-copy p { font-size: .94rem; line-height: 1.7; }
  .section { padding: 44px 0 64px; }
  .section-heading h2,
  .process-copy h2,
  .contact-card h2 { font-size: clamp(2.25rem, 5vw, 3.2rem); max-width: 22ch; }
  .carousel-container { aspect-ratio: 4 / 3; }
}

@media (max-width: 680px) {
  .site-shell { width: min(calc(100% - 28px), var(--max-width)); }
  .section { padding: 34px 0 52px; }
  .section-heading { gap: 8px; margin-bottom: 20px; }
  .section-heading h2,
  .process-copy h2,
  .contact-card h2 { max-width: 100%; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.02; }
  .eyebrow { font-size: .78rem; letter-spacing: .1em; }
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 100px 16px 26px;
  }
  .hero .nav { width: calc(100% - 28px); top: 12px; padding: 9px 12px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text small { font-size: .68rem; }
  .hero-grid { width: 100%; gap: 16px; padding-top: 8px; }
  .hero .eyebrow { margin-bottom: 8px; font-size: .72rem; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.45rem, 11.5vw, 3.8rem); line-height: .99; }
  .hero .lead { max-width: 52ch; margin-top: 12px; font-size: .91rem; line-height: 1.55; }
  .hero-actions { width: min(100%, 360px); gap: 9px; margin-top: 16px; }
  .hero .button { min-height: 46px; padding: 0 16px; font-size: .9rem; }
  .hero-panel { width: min(100%, 500px); gap: 8px; }
  .hero .panel-card { padding: 13px 15px; border-radius: 17px; }
  .hero .panel-card h2 { font-size: clamp(1.35rem, 6vw, 1.75rem); line-height: 1.05; }
  .hero .panel-card ul { margin-top: 8px; font-size: .78rem; line-height: 1.4; }
  .hero .stats-card { padding: 7px 13px; }
  .hero .stats-card strong { font-size: 1.25rem; }
  .hero .stats-card span { font-size: .7rem; }
  .service-grid,
  .showcase-grid,
  .process-layout,
  .contact-card,
  .numbers-grid { grid-template-columns: minmax(0, 1fr); }
  .service-grid,
  .showcase-grid { gap: 14px; }
  .service-card { padding: 21px; }
  .service-card h3 { margin-top: 9px; font-size: clamp(1.75rem, 7vw, 2.15rem); line-height: 1.04; }
  .service-card p,
  .timeline-item p,
  .showcase-copy p,
  .process-copy > p:last-child { font-size: .92rem; line-height: 1.65; }
  .process-layout { gap: 20px; }
  .process-copy { position: static; }
  .timeline { gap: 10px; }
  .timeline-item { padding: 17px; }
  .timeline-item strong { font-size: 1rem; }
  .showcase-card { padding: 11px; border-radius: 22px; }
  .carousel-container { aspect-ratio: 4 / 3; border-radius: 16px; margin-bottom: 9px; }
  .carousel-slide.is-portrait img { max-width: min(100%, 78%); }
  .carousel-track img,
  .carousel-track video { border-radius: 13px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 1rem; }
  .carousel-btn.prev { left: 7px; }
  .carousel-btn.next { right: 7px; }
  .carousel-thumbs { gap: 6px; padding-bottom: 6px; }
  .carousel-thumb { min-width: 118px; max-width: 155px; grid-template-columns: 42px minmax(0, 1fr); gap: 7px; font-size: .66rem; }
  .carousel-thumb img { width: 42px; height: 38px; }
  .carousel-thumb.is-video::after { left: 17px; width: 21px; height: 21px; }
  .showcase-copy { padding: 13px 5px 5px; }
  .showcase-copy h3 { min-height: 0; margin-bottom: 7px; font-size: clamp(1.7rem, 7vw, 2.1rem); line-height: 1.05; }
  .contact-card { gap: 20px; padding: 21px; border-radius: 22px; }
  .contact-form { gap: 12px; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { padding: 13px 14px; border-radius: 13px; font-size: 16px; }
  .site-footer { padding: 2.8rem 1.2rem 1rem; }
  .footer-container { gap: 1.5rem; }
  .footer-brand, .footer-contacts, .footer-info { min-width: 0; }
  .photo-lightbox { width: 96vw; max-height: 94svh; padding: 54px 40px 20px; }
  .photo-lightbox figure img,
  .photo-lightbox figure video { max-height: calc(94svh - 120px); }
}

@media (max-width: 380px) {
  .hero { padding-inline: 12px; }
  .hero .nav { width: calc(100% - 20px); }
  .brand-text small { display: none; }
  .hero h1 { font-size: clamp(2.25rem, 11vw, 2.8rem); }
  .hero .panel-card { padding: 12px; }
  .showcase-card { padding: 9px; }
  .carousel-thumb { min-width: 108px; }
}
body { overflow-x: clip; }

/* Rifinitura responsive finale: testo leggibile e media senza ritagli. */
img,
video {
  max-width: 100%;
}

.hero-grid,
.hero-copy,
.hero-panel,
.section,
.service-card,
.showcase-card,
.process-layout,
.contact-card,
.footer-container {
  min-width: 0;
}

.lead,
.section-heading p,
.service-card p,
.timeline-item p,
.showcase-copy p,
.contact-card p,
.footer-desc,
.footer-list li {
  overflow-wrap: anywhere;
}

.carousel-container {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #111411;
}

.carousel-track {
  display: flex;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.carousel-slide {
  display: grid;
  position: relative;
  isolation: isolate;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  place-items: center;
  overflow: hidden;
}

.showcase-card .carousel-track .carousel-slide > img,
.showcase-card .carousel-track .carousel-slide > video {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: min(450px, 100%);
  padding: 0;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
  background: #111411;
}

.carousel-track > video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  background: #111411;
}

.carousel-slide.is-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px);
  padding: 12px;
}

.carousel-slide.is-pair img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain !important;
}

.carousel-slide { background: #111411; }

.carousel-btn {
  top: auto;
  bottom: 14px;
  transform: none;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, .4);
  background: rgba(12, 16, 13, .78);
}

.carousel-btn.prev { left: auto; right: 62px; }
.carousel-btn.next { right: 14px; }
.carousel-btn:hover { transform: translateY(-2px); }
.carousel-btn:focus-visible {
  outline: 3px solid #ff8757;
  outline-offset: 2px;
}

.carousel-thumb {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 86px;
  max-width: 86px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(31, 37, 32, .88);
}

.carousel-thumb span { display: none; }
.carousel-thumb img { width: 100%; height: 58px; }

.hero .stats-card {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero .stats-card > div {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.carousel-track > video {
  flex: 0 0 100%;
}

.showcase-copy h3 {
  min-height: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1.08;
  text-wrap: balance;
}

.showcase-copy p {
  max-width: 68ch;
  line-height: 1.7;
}

@media (min-width: 681px) and (max-width: 960px) {
  .hero-grid { gap: 24px; }
  .hero h1 { font-size: clamp(3rem, 7vw, 5rem); }
  .section-heading h2,
  .process-copy h2,
  .contact-card h2 { font-size: clamp(2.2rem, 5.2vw, 3.3rem); }
  .carousel-container { aspect-ratio: 4 / 3; }
  .carousel-slide.is-pair { padding: 8px; }
}

@media (max-width: 680px) {
  .hero {
    min-height: max(100svh, 700px);
    padding: 92px 16px 24px;
  }
  .hero-grid { gap: 14px; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3.6rem); }
  .hero .lead { font-size: .95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .section { padding-block: 32px 48px; }
  .section-heading h2,
  .process-copy h2,
  .contact-card h2 { font-size: clamp(1.95rem, 8vw, 2.7rem); }
  .service-card h3 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .carousel-container { aspect-ratio: 4 / 3; }
  .carousel-btn { bottom: 10px; width: 36px; height: 36px; }
  .carousel-btn.prev { right: 54px; }
  .carousel-btn.next { right: 10px; }
  .carousel-slide.is-pair { gap: 6px; padding: 6px; }
  .carousel-thumb { min-width: 76px; max-width: 76px; }
  .carousel-thumb img { height: 52px; }
  .showcase-copy h3 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .photo-lightbox { width: 96vw; max-width: 96vw; }
}

@media (max-width: 380px) {
  .hero { min-height: max(100svh, 680px); padding-inline: 12px; }
  .hero .nav { gap: 10px; }
  .hero h1 { font-size: clamp(2.2rem, 10.2vw, 2.65rem); }
  .hero .panel-card ul { padding-left: 16px; }
  .carousel-btn { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* Regola conclusiva per ogni foto e video nel carosello delle card portfolio. */
.showcase-card .carousel-container .carousel-track img,
.showcase-card .carousel-container .carousel-track video {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: min(450px, 100%);
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
}

@media (min-width: 961px) {
  .showcase-card .carousel-container {
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
    max-height: 420px;
    height: auto;
    background: #111411;
  }

  .showcase-card .carousel-track,
  .showcase-card .carousel-slide {
    height: 100%;
  }
}

@media (min-width: 1200px) {
  .showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .showcase-card {
    padding: 14px;
  }

  .showcase-copy {
    padding: 14px 6px 8px;
  }

  .showcase-copy h3 {
    font-size: clamp(1.5rem, 1.8vw, 1.9rem);
  }

  .showcase-copy p {
    font-size: .94rem;
    line-height: 1.65;
  }
}

/* Le slide mantiene le proporzioni reali del media: niente crop o bande di sfondo. */
.showcase-card .carousel-container {
  aspect-ratio: var(--media-ratio, 4 / 3) !important;
  height: auto !important;
  min-height: 0;
  max-height: none !important;
  background: transparent !important;
}

.showcase-card .carousel-track,
.showcase-card .carousel-slide {
  height: 100%;
  background: transparent !important;
}

.showcase-card .carousel-container .carousel-track .carousel-slide > img,
.showcase-card .carousel-container .carousel-track .carousel-slide > video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
  background: transparent !important;
}

.showcase-card .carousel-slide.is-pair {
  display: flex;
  gap: 0;
  padding: 0;
}

.showcase-card .carousel-slide.is-pair > img {
  flex: 1 1 50%;
  min-width: 0;
  width: 50% !important;
  height: 100% !important;
  object-fit: contain !important;
}

@media (min-width: 961px) {
  .showcase-card .carousel-container {
    flex: 0 0 auto;
  }
}

@media (max-width: 680px) {
  .showcase-card .carousel-slide.is-pair { gap: 0; padding: 0; }
}

/* Frecce fuori dalla foto: restano sempre facili da cliccare senza coprire il soggetto. */
.showcase-card .carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 10px 2px 0;
}

.showcase-card .carousel-controls .carousel-btn {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(18, 37, 30, .2);
  border-radius: 50%;
  background: #183b30;
  color: #fff;
  box-shadow: 0 4px 12px rgba(18, 37, 30, .16);
  cursor: pointer;
  touch-action: manipulation;
}

.showcase-card .carousel-controls .carousel-btn:hover {
  transform: translateY(-1px) !important;
  background: var(--accent, #e65a2e);
}

.showcase-card .carousel-controls .carousel-btn:focus-visible {
  outline: 3px solid var(--accent, #e65a2e);
  outline-offset: 3px;
}

.showcase-card .carousel-controls + .carousel-thumbs {
  margin-top: 10px;
}

.showcase-card .carousel-slide > .video-play-prompt {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  padding: 0 0 0 4px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 24, 19, .82);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .32);
  font-size: 1.55rem;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 160ms ease, scale 160ms ease;
}

.showcase-card .carousel-slide > .video-play-prompt:hover {
  background: var(--accent, #e65a2e);
  scale: 1.06;
}

.showcase-card .carousel-slide > .video-play-prompt:focus-visible {
  outline: 3px solid var(--accent, #e65a2e);
  outline-offset: 4px;
}

.showcase-card .carousel-slide > .video-play-prompt[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .showcase-card .carousel-controls { gap: 12px; margin-top: 8px; }
  .showcase-card .carousel-controls .carousel-btn {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }
}
