/* Gocce Euganee · wellnessdestination.it */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #2a68b8;
  --blue-light: #3b7fd4;
  --blue-dark: #1d4f91;
  --blue-deep: #143a6e;
  --navy: #0b2350;
  --ink: #1f2937;
  --muted: #526071;
  --white: #fff;
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 26px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { list-style: none; margin: 0; padding: 0; }
.center { text-align: center; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border: 1.5px solid rgba(255, 255, 255, .75); border-radius: var(--radius-s);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1.02rem; line-height: 1.3;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--blue); border-color: var(--blue); box-shadow: 0 6px 18px -8px rgba(29, 79, 145, .7); }
.btn-solid:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(15, 35, 80, .08);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(11, 35, 80, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-title { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--navy); text-decoration: none; letter-spacing: -.01em; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease);
}
.header-phone:hover { background: var(--blue); }
.header-phone svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 440px) {
  .site-title { font-size: 1.3rem; }
  .header-phone span { display: none; }
  .header-phone { padding: 8px 12px; }
}

/* Hero: big photo */
.hero { position: relative; height: clamp(420px, 60vw, 800px); overflow: hidden; background: #c9d3e0; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  animation: hero-zoom 2.4s var(--ease) both;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(to top, rgba(20, 58, 110, .55) 0%, rgba(20, 58, 110, 0) 45%);
}
.hero-logo { position: relative; z-index: 1; display: flex; justify-content: center; padding: clamp(18px, 3vw, 40px) 16px 0; }
.hero-logo h1 {
  padding: clamp(14px, 2vw, 22px) clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius);
  box-shadow: 0 12px 40px -16px rgba(11, 35, 80, .45);
  animation: rise .9s .25s var(--ease) both;
}
.hero-logo img { width: clamp(200px, 28vw, 340px); }

/* Three boxes over the bottom of the photo */
.boxes { position: relative; z-index: 2; margin-top: clamp(-280px, -19vw, -70px); }
.boxes-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .boxes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.box {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(36, 92, 166, .9), rgba(20, 58, 110, .94));
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius);
  color: #fff; text-align: center;
  padding: clamp(26px, 3vw, 36px) clamp(22px, 2.6vw, 30px);
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 24px 48px -24px rgba(8, 25, 55, .6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: rise .8s var(--ease) both;
}
.box:nth-child(2) { animation-delay: .1s; }
.box:nth-child(3) { animation-delay: .2s; }
.box::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
}
@media (hover: hover) { .box:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -24px rgba(8, 25, 55, .7); } }
.box h2 { font-size: clamp(1.4rem, 2vw, 1.6rem); margin-bottom: 14px; }
.box h2::after { content: ""; display: block; width: 40px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .55); margin: 16px auto 0; }
.box p { flex: 1; font-size: 1.05rem; color: rgba(255, 255, 255, .92); }
.box strong { font-weight: 700; color: #fff; }
/* Desktop: titles, texts and buttons line up across the three boxes */
@media (min-width: 860px) {
  @supports (grid-template-rows: subgrid) {
    .boxes-grid { row-gap: 0; }
    .box { display: grid; grid-row: span 3; grid-template-rows: subgrid; justify-items: center; row-gap: 0; }
    .box h2 { align-self: end; }
    .box .btn { align-self: end; }
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Blue area */
.blue {
  position: relative; color: #fff;
  margin-top: clamp(-130px, -8vw, -40px);
  padding: clamp(150px, 13vw, 200px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(1100px 520px at 15% 8%, rgba(255, 255, 255, .10), transparent 60%),
    radial-gradient(900px 600px at 90% 60%, rgba(11, 35, 80, .35), transparent 65%),
    linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 40%, var(--blue-dark) 100%);
}
@media (max-width: 859px) { .blue { margin-top: -40px; padding-top: 96px; } }
.blue h2 { font-size: clamp(2rem, 4.2vw, 2.8rem); letter-spacing: -.01em; }

.target { display: grid; gap: 16px; margin: 36px 0 clamp(56px, 7vw, 88px); text-align: center; }
@media (min-width: 760px) { .target { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.target li { border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); transition: background-color .3s var(--ease); }
.target li:hover { background: rgba(255, 255, 255, .12); }
.target a { display: block; padding: 28px 22px; color: #fff; text-decoration: none; height: 100%; }
.target h3 { font-size: clamp(1.9rem, 3vw, 2.3rem); margin-bottom: 8px; }
.target h3 span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.target a:hover h3 span, .target a:focus-visible h3 span { background-size: 100% 2px; }
.target p { max-width: 26ch; margin: 0 auto; color: #e3edfa; }

/* White panels */
.panel {
  background: #fff; color: var(--ink); border-radius: var(--radius-l);
  padding: clamp(28px, 4.5vw, 52px); text-align: center;
  box-shadow: 0 30px 60px -30px rgba(8, 25, 55, .55);
}
.panel h2 { color: var(--navy); }
.ritz { max-width: 640px; margin: 0 auto clamp(56px, 7vw, 88px); }
.ritz img { width: 170px; margin: 0 auto 26px; }
.ritz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 480px) { .ritz-actions .btn { width: 100%; } }

/* Three photos */
.cure { display: grid; gap: 28px; margin-bottom: clamp(56px, 7vw, 88px); }
@media (min-width: 760px) { .cure { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.cure a { color: #fff; text-decoration: none; text-align: center; display: block; }
.cure figure { margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px -24px rgba(8, 25, 55, .7); }
.cure img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.cure a:hover img { transform: scale(1.05); }
.cure span { font-size: 1.12rem; font-weight: 600; }
.cure a:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* Contact */
.contact { max-width: 860px; margin: 0 auto clamp(56px, 7vw, 88px); }
.contact h2 { font-size: clamp(2rem, 3.6vw, 2.4rem); margin-bottom: clamp(22px, 3vw, 32px); }
.contact-grid { display: grid; gap: 12px; text-align: left; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.contact-grid a {
  display: flex; align-items: center; gap: 16px; height: 100%;
  padding: 16px 18px; border-radius: var(--radius);
  background: #f3f7fc; border: 1px solid #e3ebf6; color: var(--ink); text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-grid a:hover { background: #fff; border-color: #c9d9ef; transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(11, 35, 80, .45); }
.ci {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--blue); color: #fff; transition: background-color .25s var(--ease);
}
.contact-grid a:hover .ci { background: var(--blue-dark); }
.ci svg { width: 22px; height: 22px; }
.ct { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: 1.08rem; line-height: 1.35; overflow-wrap: anywhere; }
.ct small { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 20px; margin-top: clamp(22px, 3vw, 30px); }
.contact .social { display: flex; justify-content: center; gap: 10px; }
.contact .social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #eef3fa; color: var(--blue-dark); transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.contact .social a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.social svg { width: 21px; height: 21px; }

/* Gallery: bento grid */
.gallery-panel h2 { font-size: clamp(2rem, 3.6vw, 2.4rem); margin-bottom: 28px; }
/* Mobile: 2 columns, first and last photo full width.
   Desktop: 4 columns, first photo 2x2, last photo 2 wide. */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery li { aspect-ratio: 1; min-width: 0; }
.gallery li:first-child, .gallery li:last-child { grid-column: span 2; aspect-ratio: 2 / 1; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .gallery li:first-child { grid-row: span 2; aspect-ratio: auto; }
  .gallery li:last-child { aspect-ratio: auto; }
}
.gallery li { position: relative; }
.gallery a { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: var(--radius-s); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; color: #fff;
  width: 100vw; height: 100dvh; max-width: none; max-height: none; overflow: hidden;
}
.lightbox::backdrop { background: rgba(6, 14, 30, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 82dvh; width: auto; border-radius: var(--radius-s); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; } }
.lb-count { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; font-size: .95rem; opacity: .8; }

/* Footer */
.site-footer { background: var(--blue-deep); color: #c9d6ea; text-align: center; padding: clamp(36px, 5vw, 52px) 0 24px; font-size: .95rem; line-height: 1.7; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; text-underline-offset: 3px; }
.footer-info { font-style: normal; }
.footer-info strong { color: #fff; font-weight: 600; font-size: 1.02rem; }
.footer-legal { margin-top: 14px !important; font-size: .88rem; color: #a9bbd6; }
.footer-links { display: inline-flex; gap: 20px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px;
  margin-top: 24px !important; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem;
}

/* Scroll-driven reveal (progressive enhancement) */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Google Maps embed */
.map { position: relative; margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid #e3ebf6; background: #e8edf3; }
.map iframe { display: block; width: 100%; height: clamp(260px, 32vw, 360px); border: 0; }
