@font-face {
  font-family: Manrope;
  src: url("assets/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --zago-blue: #25495e;
  --zago-pale: #edf6fa;
  --zago-border: #cbdce5;
}
.zago-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 100px);
}
.zago-feature h2, .zago-tax h2 {
  margin: 12px 0 24px;
  font-size: clamp(38px, 5vw, 75px);
}
.zago-feature p, .zago-tax p {
  color: #4f6876;
  font-size: 16px;
  line-height: 1.8;
}
.zago-feature img, .feature-video {
  display: block;
  width: 100%;
  border-radius: 3px;
  background: #142f3d;
}
.zago-feature img { aspect-ratio: 4 / 3; object-fit: cover; }
.feature-video { max-height: 540px; aspect-ratio: 16 / 9; }
.zago-feature-light, .zago-tax { background: var(--zago-pale); }
.zago-tax {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}
.zago-collections, .brand-grid, .sub-gallery, .bath-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.collection-card, .gallery-thumb { display: block; overflow: hidden; }
.collection-card img, .gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}
.collection-card:hover img, .gallery-thumb:hover img { transform: scale(1.03); }
.collection-card h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 22px;
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 500;
}
.brand-grid {
  padding: 0;
  list-style: none;
  margin: 0 0 30px;
}
.brand-grid li, .bath-grid article {
  border: 1px solid var(--zago-border);
  padding: 24px;
  background: white;
}
.brand-grid li { font-size: 20px; font-weight: 650; }
.zago-contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(30px, 7vw, 120px);
}
.zago-contact h3 { font-size: 24px; font-weight: 550; }
.zago-contact address { font-style: normal; margin: 15px 0; }
.zago-form { display: grid; gap: 14px; }
.zago-form h3 { margin: 0 0 8px; }
.zago-form label { display: grid; gap: 6px; font-size: 14px; }
.zago-form input, .zago-form textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--zago-border);
  background: white;
  border-radius: 4px;
  color: #20323d;
  padding: 12px;
  font: inherit;
}
.zago-form textarea { resize: vertical; }
.zago-form button, .sub-link {
  display: inline-block;
  justify-self: start;
  background: var(--zago-blue);
  color: white;
  border: 0;
  padding: 14px 20px;
  border-radius: 28px;
  font: inherit;
}
.zago-form .form-hint { margin: 0; font-size: 13px; color: inherit; }
.form-trap { display: none; }
.zago-map { width: 100%; height: 350px; border: 0; margin-top: 42px; }
.whatsapp-float {
  position: fixed;
  z-index: 50;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 17px;
  color: white;
  background: #126c48;
  border-radius: 28px;
  box-shadow: 0 4px 24px #0a2a232a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.whatsapp-float svg { width: 20px; height: 20px; fill: currentColor; }
.zago-page {
  margin: 0;
  background: #fbfbfa;
  color: var(--zago-blue);
  font: 16px/1.65 Manrope, Arial, sans-serif;
}
.zago-page * { box-sizing: border-box; }
.zago-page a { color: inherit; text-decoration: none; }
.zago-page .sub-link { color: white; }
.sub-header, .sub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 5%;
  background: white;
}
.sub-header img { display: block; max-width: 100%; height: auto; }
.sub-header nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.sub-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(360px, 65vh, 680px);
  padding: clamp(24px, 5vw, 80px);
  background: var(--zago-blue);
  color: white;
}
.sub-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sub-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 20%, #10222ddf); }
.sub-hero h1 {
  max-width: 950px;
  margin: 12px 0 0;
  font-size: clamp(36px, 6.2vw, 92px);
  font-weight: 450;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.sub-intro, .sub-section { padding: 38px 5%; }
.sub-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.sub-intro p { max-width: 720px; font-size: clamp(17px, 2vw, 23px); }
.sub-intro a { flex-shrink: 0; }
.sub-section { padding-top: 12px; padding-bottom: 60px; }
.sub-section h2 { font-size: clamp(22px, 3vw, 35px); font-weight: 500; margin: 0 0 18px; }
.sub-section video { margin-bottom: 40px; }
.bath-grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 30px; }
.sub-footer { border-top: 1px solid var(--zago-border); padding-bottom: 85px; }
.gallery-dialog {
  width: min(95vw, 1120px);
  max-height: 96vh;
  padding: 14px;
  border: 0;
  border-radius: 6px;
  background: #172e3a;
  color: white;
}
.gallery-dialog::backdrop { background: #000b; }
.gallery-dialog img { display: block; max-width: 100%; max-height: 76vh; margin: auto; object-fit: contain; }
.gallery-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 12px; }
.gallery-actions button { padding: 8px 12px; border: 0; border-radius: 20px; font: inherit; }
.mainnav nav { gap: clamp(12px, 1.6vw, 24px); }
.mainnav nav a { font-size: 14px; }
:focus-visible { outline: 3px solid #0785b2; outline-offset: 3px; }
@media (max-width: 1120px) {
  .mainnav .menu { display: inline-grid; place-items: center; }
  .mainnav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; color: var(--zago-blue); padding: 16px 5%; flex-direction: column; gap: 0; }
  .mainnav nav.open { display: flex; }
  .mainnav nav a { padding: 10px 0; }
}
@media (max-width: 760px) {
  .zago-feature, .zago-tax, .zago-contact { grid-template-columns: 1fr; gap: 24px; }
  .zago-feature-light img { order: 2; }
  .zago-collections, .sub-gallery, .brand-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .collection-card h3 { font-size: 16px; }
  .sub-header, .sub-intro, .sub-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .sub-header nav { gap: 6px 16px; }
  .sub-header img { width: 135px; }
  .bath-grid { gap: 12px; }
  .bath-grid article { padding: 14px; }
  .whatsapp-float { bottom: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-card img, .gallery-thumb img { transition: none; }
}

/* Le riprese verticali restano intere sopra la foto di apertura. */
.opening-scroll .panel-video { object-fit: contain; }
.opening-scroll .panel-poster { filter: brightness(.75); }
.zago-form [hidden] { display: none; }
.zago-form [role="status"]:empty { display: none; }
.zago-form button:disabled { opacity: .65; cursor: wait; }

.home-slideshow {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(430px, 78svh, 810px);
  overflow: hidden;
  background: #203b49;
  color: white;
  padding: 48px 5% 94px;
}
.home-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 32%, #102634d9);
  z-index: -1;
}
.home-frames, .home-frame, .home-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-frames { z-index: -2; }
.home-frame { opacity: 0; transition: opacity 1s ease; }
.home-frame.is-active { opacity: 1; }
.home-frame img { object-fit: cover; }
.home-frame.is-active img {
  animation: home-pan 8s ease-out both;
  animation-play-state: paused;
}
.home-slideshow.is-playing .home-frame.is-active img { animation-play-state: running; }
@keyframes home-pan {
  from { transform: scale(1.01); }
  to { transform: scale(1.09) translateX(-1%); }
}
.home-slideshow-copy h2 {
  max-width: 760px;
  color: white;
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 88px);
}
.home-slideshow-copy .link { color: white; }
.home-slideshow-controls {
  position: absolute;
  bottom: 24px;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-slideshow-controls[hidden] { display: none; }
.home-slideshow-controls button {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid #ffffffa8;
  border-radius: 24px;
  background: #142733c4;
  color: white;
  font: inherit;
  cursor: pointer;
}
.home-slideshow-controls span { margin-left: 6px; font-size: 14px; }
.brand-grid li:has(a) { padding: 0; }
.brand-grid li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  height: 100%;
  padding: 24px;
}
.brand-grid li a:hover, .brand-grid li a:focus-visible { background: var(--zago-pale); }
@media (max-width: 760px) {
  .home-slideshow { min-height: 510px; }
  .brand-grid li a { padding: 15px; }
  .brand-grid li { font-size: 16px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .home-frame { transition: none; }
  .home-frame.is-active img { animation: none; }
}
