:root {
  --ink: #103d43;
  --muted: #4e6666;
  --cream: #faf8f2;
  --line: #dedfd5;
  --hero-shade: linear-gradient(90deg, #09282bed 0%, #09282b98 43%, #09282b12 85%);
}

html { scroll-padding-top: 85px; }
body { color: #183f42; }
.eyebrow { color: #326866; letter-spacing: .14em; }
.top { background: #faf8f2f7; }
.brand small { letter-spacing: .22em; }
.hero {
  min-height: min(700px, 82svh);
  background-image: var(--hero-shade), url('/sito/assets/photos/00-copertina-piscina.jpg');
}
.hero .shell { padding-bottom: clamp(85px, 13vh, 150px); }
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  letter-spacing: -.05em;
  text-wrap: balance;
  max-width: 740px;
}
.hero p { font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero .button { background: #fae3bd; color: #153e40; }
.hero .button:hover { background: #fff0d7; }
.highlights { border-radius: 12px; margin-top: -42px; box-shadow: 0 14px 48px #173e4114; }
.highlights b { font-size: 1.18rem; }
.highlights span { font-size: .88rem; }
.section-head { letter-spacing: -.035em; text-wrap: balance; }
.gallerygrid { grid-template-rows: repeat(2, clamp(145px, 18vw, 230px)); }
.gallerytile { border-radius: 9px; }
.feature, .regiongrid article { background: #fffdf8; border-color: var(--line); }
.visual { aspect-ratio: 5 / 4; }
.editorial { background: #eef3ee; }
.footer { background: #103d43; color: #f8f6ed; }
.footer a { color: inherit; }

@media (max-width: 780px) {
  :root { --hero-shade: linear-gradient(0deg, #09282bf2, #09282b99 52%, #09282b10 100%); }
  .hero { min-height: clamp(500px, 78svh, 660px); background-position: 55% center; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4rem); }
  .hero .shell { padding-bottom: 85px; }
  .top .shell, .nav { gap: 8px; }
  #siteLang { min-width: 0; width: clamp(84px, 24vw, 112px); }
  .highlights > div { padding: 14px 8px; }
  .gallerygrid { grid-template-rows: auto; }
}

.availability-card { max-width: 35rem; border: 1px solid var(--line); border-radius: 12px; padding: clamp(12px, 3vw, 26px); background: #fffdf8; }
.availability-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; }
.availability-nav button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 1.45rem; }
.availability-nav button:disabled { opacity: .45; }
#availability-month { text-transform: capitalize; margin: 0; }
#availability-grid { width: 100%; border-spacing: 3px; text-align: center; table-layout: fixed; }
#availability-grid :is(th,td) { height: 40px; border-radius: 5px; font-size: .9rem; }
#availability-grid .occupied { background: #f7d5bd; color: #512e21; font-weight: 700; }
#availability-grid .past { color: #687474; }
.availability-legend { margin-bottom: 0; }
.availability-legend::before { content: ''; display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.1em; background: #f7d5bd; border-radius: 3px; }

@media (max-width: 780px) {
  .nav #availability-link:not([hidden]) { display: inline-block; padding: 10px 2px; }
}

.hero .quote-cta { background: #fff; }
#richiedi-preventivo { padding-top: 0; }
.quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.quote-fields label { display: grid; gap: 6px; font-weight: 600; min-width: 0; }
.quote-fields :is(input, select) { min-width: 0; width: 100%; min-height: 44px; padding: 8px; border: 1px solid #798b87; border-radius: 8px; font: inherit; color: var(--ink); background: white; }
.quote-note { margin-bottom: 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 410px) {
  .hero .quote-cta { display: table; }
  .quote-fields label:has(input) { grid-column: 1 / -1; }
}

[data-site-hidden="true"] { display: none !important; }
html[style*="--site-custom-text"] :is(body, h1, h2, h3, .copy, .editorialbullets) { color: var(--site-custom-text); }
html[style*="--site-custom-button"] :is(.hero a.button, #richiedi-preventivo button.button) {
  background: var(--site-custom-button);
}

.quote-fields textarea { width: 100%; padding: 9px; border: 1px solid #b7cfca; border-radius: 7px; background: white; resize: vertical; }
#quote-result { margin: 12px 0 0; font-weight: 650; }
