/* =====================================================================
   VILLA SOLAROLO — STYLESHEET
   Colours and fonts are defined once here, at the top.
   ===================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Garamond";
  src: url("../fonts/EBGaramond.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --gold: #cfb507;          /* headings, buttons, links */
  --gold-dark: #b09a06;     /* buttons when the mouse is over them */
  --text: #3d3d3d;          /* body text */
  --muted: #8f8f8f;         /* footer small text */
  --bg: #fbfcf6;            /* page background (cream) */
  --beige: #f2ecd4;         /* beige bands and the contact form */
  --white: #fff;
  --font: "Cormorant Garamond", Georgia, serif;          /* text */
  --font-title: "Garamond", "EB Garamond", Georgia, serif; /* section titles */
  --font-button: "Open Sans", Arial, sans-serif;           /* buttons and form fields */
  --container: 1080px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { color: var(--gold); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; }
h2, h3 { font-family: var(--font-title); }
h1 { font-size: 60px; text-transform: uppercase; }
h2 { font-size: 60px; }
h3 { font-size: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 80%; max-width: var(--container); margin: 0 auto; }
.center { text-align: center; }
.section { padding: 60px 0; }
.section h2 { text-align: center; }
.lead { text-align: center; }
.subtitle { color: var(--gold); font-size: 35px; text-align: center; margin-bottom: .8em; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  padding: 6px 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--gold-dark); text-decoration: none; }
.btn-row { text-align: center; margin-top: 30px; }

/* ---------- Header & menu ---------- */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 113px; }
.logo img { width: 186px; }
.main-menu ul { list-style: none; margin: 0; padding: 0; }
.main-menu > ul { display: flex; gap: 22px; }
.main-menu a, .sub-toggle {
  color: var(--text); font-family: var(--font); font-size: 22px; font-weight: 600;
  background: none; border: 0; padding: 31px 0; cursor: pointer; display: block;
}
.main-menu a:hover, .sub-toggle:hover { color: var(--gold); text-decoration: none; }
.main-menu .current > a, .main-menu .current > .sub-toggle { color: var(--gold); }
.has-sub { position: relative; }
.sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 4px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sub-menu {
  position: absolute; top: 100%; left: -20px; width: 220px; padding: 20px 0 !important;
  background: var(--bg); border-top: 3px solid var(--gold); box-shadow: 0 2px 5px rgba(0,0,0,.1);
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { opacity: 1; visibility: visible; }
.sub-menu a { padding: 6px 20px; line-height: 1.3; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--gold); content: ""; transition: transform .2s;
}
.menu-toggle span { top: 21px; }
.menu-toggle span::before { left: 0; top: -7px; }
.menu-toggle span::after { left: 0; top: 7px; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 70px 0 50px; }
.footer-logo { width: 270px; margin: 0 auto 30px; }
.footer-address { font-size: 25px; margin-bottom: 0; }
.footer-email { font-size: 25px; margin-bottom: 10px; }
.footer-email a { color: #2ea3f2; }
.footer-legal { font-size: 17px; font-weight: 400; color: var(--muted); }
.footer-legal a { color: var(--muted); }
.site-footer a.iubenda-white { /* keep iubenda links looking like plain text links */
  background: none !important; padding: 0 !important; box-shadow: none !important; border: 0 !important;
  font: inherit !important; color: var(--muted) !important; display: inline !important;
}

/* ---------- Booking bar (address / e-mail / Book Now) ---------- */
.booking-bar {
  position: relative; z-index: 2;
  width: 80%; max-width: 864px; margin: -30px auto 0;
  background: var(--bg); box-shadow: 0 6px 18px rgba(0,0,0,.18);
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 20px; align-items: center;
  padding: 26px 40px;
}
.booking-item { display: flex; align-items: center; gap: 14px; font-size: 22px; line-height: 1.4; }
.booking-item:first-child span { font-size: 25px; }
.booking-item:last-child { justify-content: flex-end; }
.booking-item a:not(.btn) { color: var(--text); overflow-wrap: anywhere; }
.booking-item svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.5; }

/* ---------- Home ---------- */
.hero {
  background: center / cover no-repeat;
  padding: 100px 0 250px;
}
.hero-box { background: var(--bg); width: 720px; max-width: 90%; margin: 0 auto; padding: 40px 40px 50px; text-align: center; }
.hero-box h1 { margin-bottom: 30px; }
.hero-box p { color: var(--gold); font-weight: 300; line-height: 1.1; }

.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; margin-top: 40px; text-align: center; color: #000; }
.features img { height: 107px; width: auto; margin: 0 auto 16px; object-fit: contain; }

.home-logo { width: 300px; margin: 0 auto 50px; }
.tagline { font-size: 35px; color: var(--text); text-align: center; line-height: 1.1; margin-bottom: 40px; }
.amenities { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 36px; margin-bottom: 50px; }
.amenity { display: flex; align-items: center; gap: 12px; line-height: 1; white-space: nowrap; font-size: 23px; }
.amenity img, .amenity svg { width: 34px; height: 34px; flex: none; }
.wide-img { width: 100%; aspect-ratio: 1080 / 450; object-fit: cover; }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; width: calc(100% - 70px); margin: 40px auto 30px; }
.photo-strip a { display: block; overflow: hidden; }
.photo-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.photo-strip a:hover img { transform: scale(1.04); }
.text-block { margin-top: 70px; text-align: center; }
.text-block h2 { margin-bottom: .6em; }
.good-to-know { list-style: none; padding: 0; margin: 0; }
.map { margin-top: 40px; }
.map iframe { width: 100%; height: 450px; border: 0; display: block; }
.map-consent { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--beige); text-align: center; padding: 30px 20px; }
.map-consent p { margin: 0; }
.map-open { margin-left: 14px; color: var(--gold-dark); }
/* "Your host" (as on comolakevilla) */
.host-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: 65% 30%; margin: 10px auto 16px; display: block; }
.host-name { margin: 0 0 12px; font-size: 28px; font-weight: 400; color: var(--gold); }
.host p { max-width: 700px; margin-left: auto; margin-right: auto; }

/* ---------- Contact form ---------- */
.contact-form { background: var(--beige); padding: 50px; margin-top: 30px; }
.contact-form label, .contact-form input { min-width: 0; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--bg); border: 0; padding: 16px;
  font-family: var(--font-button); font-size: 15px; color: var(--text); display: block;
}
.contact-form select {
  width: 100%; background: var(--bg); border: 0; padding: 15px 12px;
  font-family: var(--font); font-size: 16px; color: var(--text); display: block;
}
.contact-form .row-3 { grid-template-columns: 1fr 1fr .6fr; }
.contact-form .field > span { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .actions { text-align: right; margin-top: 14px; }
.hp { position: absolute; left: -9999px; }
.form-message { padding: 16px 20px; margin-top: 20px; text-align: center; font-size: 20px; }
.form-message.ok { background: var(--beige); }
.form-message.error { background: #f3d9d3; }

.band { background: var(--beige); padding: 54px 0; }

/* ---------- Cinque Terre – Portofino ---------- */
.banner {
  min-height: 645px; background: center / cover no-repeat;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.banner h2 { color: var(--white); text-transform: none; font-size: 60px; margin: 0; padding: 0 20px; }
.half { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin: 50px 0; }
.half-img { align-self: stretch; min-height: 400px; background: center / cover no-repeat; }
.half-text { padding: 40px 80px 40px 140px; }
.half.reverse .half-img { order: 2; }
.half.reverse .half-text { padding: 40px 140px 40px 80px; }
.half h2 { font-size: 50px; text-align: left; }
.half .kicker { color: var(--gold); font-size: 30px; line-height: 1.1; margin-bottom: 1.2em; }
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 50px 0; }
.photo-row img { width: 100%; aspect-ratio: 380 / 400; object-fit: cover; }
.icon-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; margin: 60px auto; width: 80%; max-width: var(--container); }
.icon-row img { width: 100px; margin: 0 auto; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; width: 87%; max-width: 1250px; margin: 0 auto; }
.about-grid p { font-weight: 400; }
.about-grid figcaption { font-size: 20px; font-weight: 400; margin-top: 20px; }

/* ---------- Gallery page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px; }
.filters button {
  font-family: var(--font-title); font-size: 20px; padding: 6px 18px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--gold); border-radius: 8px; transition: background .2s;
}
.filters button:hover { background: var(--beige); }
.filters button.active { background: var(--gold); color: var(--white); border-color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.gallery-grid a { display: block; overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid a.hidden { display: none; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 10px 20px; font-family: Arial, sans-serif; line-height: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 16px; }

/* ---------- Guest area ---------- */
.page-title { padding-top: 80px; text-align: center; }
.guest-title { text-align: center; }   /* same look as every other page title */
.login-box { max-width: 420px; margin: 30px auto 0; text-align: center; }
.login-box input[type=password] {
  width: 100%; padding: 14px 16px; font-family: var(--font); font-size: 20px;
  border: 1px solid #c9d3cf; background: var(--white); margin: 8px 0 18px;
}
.login-box .error { color: #a3432f; font-size: 20px; }
.content { max-width: 900px; margin: 0 auto; }
.content ul, .content ol { padding-left: 1.2em; margin: 0 0 1em; }
.logout { text-align: center; font-size: 18px; margin-top: 40px; }
.logout a { color: var(--muted); }

/* Suggestions */
.suggestions { max-width: 900px; margin: 0 auto; font-size: 21px; text-align: left; }
.suggestions h2, .suggestions h3 { font-size: 28px; text-align: left; margin: 1.4em 0 .6em; border-bottom: 1px solid #e6dcb4; padding-bottom: 8px; }
.suggestions dl { margin: 0; }
.suggestions dt { font-weight: 600; letter-spacing: .02em; margin-top: 14px; }
.suggestions dd { margin: 2px 0 0; }

/* Background photos set with bg() in the page: the big photo on computers, the 1200-pixel copy on phones */
.hero, .half-img, .banner { background-image: var(--img); }

/* ---------- Tablet & phone ---------- */
@media (max-width: 980px) {
  body { font-size: 20px; }
  h1, h2 { font-size: 40px; }
  .container { width: 85%; }
  .header-inner { min-height: 90px; }
  .logo img { width: 150px; }
  .menu-toggle { display: block; }
  .main-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-top: 3px solid var(--gold); box-shadow: 0 6px 12px rgba(0,0,0,.1); padding: 10px 7.5%;
  }
  .site-header.open .main-menu { display: block; }
  .main-menu > ul { flex-direction: column; gap: 0; }
  .main-menu a, .sub-toggle { padding: 10px 0; font-size: 20px; width: 100%; text-align: left; border-bottom: 1px solid rgba(0,0,0,.05); }
  .sub-menu { position: static; opacity: 1; visibility: visible; box-shadow: none; border: 0; width: auto; padding: 0 0 0 20px !important; display: none; }
  .has-sub.open .sub-menu { display: block; }
  .sub-menu a { padding: 8px 0; }

  .hero { padding: 90px 0 240px; }
  .hero-box { width: 100%; max-width: 100%; padding: 50px 7.5%; }
  .booking-bar { grid-template-columns: 1fr; text-align: center; width: 90%; padding: 30px 20px; }
  .booking-item { flex-direction: column; justify-content: center !important; gap: 20px; }
  .booking-item svg { width: 44px; height: 44px; }
  .features { grid-template-columns: 1fr 1fr; }
  .features > :last-child:nth-child(odd) { grid-column: 1 / -1; }   /* odd one out sits in the middle */
  .features img { height: 90px; }

  .tagline { font-size: 28px; }
  .amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; max-width: 420px; margin: 0 auto 40px; }
  .amenity { white-space: normal; font-size: 20px; }
  .home-logo { width: 240px; }
  .photo-strip { grid-template-columns: 1fr 1fr; width: 100%; }
  .map iframe { height: 340px; }

  .contact-form { padding: 24px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form .row-3 { grid-template-columns: 1fr 1fr; }
  .contact-form .row-3 > :last-child { grid-column: 1 / -1; }

  .banner { min-height: 420px; }
  .banner h2 { font-size: 40px; }
  .half, .half.reverse { grid-template-columns: 1fr; }
  .half .half-img { order: 0 !important; min-height: 300px; }
  .half-text, .half.reverse .half-text, .half.flip .half-text { padding: 30px 7.5%; }
  .half h2 { font-size: 36px; }
  .half .kicker { font-size: 24px; }
  .photo-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .icon-row { grid-template-columns: repeat(3, 1fr); width: 85%; }
  .icon-row img { width: 70px; }

  .about-grid { grid-template-columns: 1fr; gap: 30px; width: 85%; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .subtitle { font-size: 28px; }
}
@media (max-width: 800px) {
  .hero, .half-img, .banner { background-image: var(--img-sm, var(--img)); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}

/* ---------- Guest pages: houses, fold-out sections, videos ---------- */
.rules li { margin-bottom: .5em; }
.content { font-size: 21px; text-align: left; }
.content .guest-title, .content .logout, .content > .house-logo { text-align: center; }
.house-logo { width: 290px; margin: 0 auto 20px; }
details.step { border-bottom: 1px solid #e6dcb4; }
details.step:first-of-type { border-top: 1px solid #e6dcb4; }
details.step summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  color: var(--gold); font-size: 26px;
}
details.step summary::-webkit-details-marker { display: none; }
details.step summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 32px; }
details.step[open] summary::after { content: "–"; }
details.step .step-body { padding: 0 0 24px; }
.step-body img:not(.video img) { margin: 10px 0 20px; max-width: 100%; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 720px; background: #000; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video button { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; background: none; border: 0; cursor: pointer; padding: 0; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-link { font-size: 16px; margin-top: 6px; }
.guest-page h2 { font-size: 50px; text-align: left; margin: 1.6em 0 .5em; scroll-margin-top: 130px; }
.guest-page h3 { font-size: 28px; margin: 1.2em 0 .4em; }
.guest-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 24px 0 10px; }
.guest-nav a { border: 1px solid var(--gold); padding: 6px 18px; font-size: 19px; }
.guest-nav a:hover { background: var(--gold); color: var(--white); text-decoration: none; }
.essentials { background: var(--beige); padding: 26px 30px; }
.essentials dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.essentials dt { color: var(--gold-dark); }
.essentials dd { margin: 0; overflow-wrap: anywhere; }
.essentials h3 { margin-top: 1em; }
.checklist { margin: 0; padding-left: 1.2em; }
.guest-page .suggestions { max-width: none; font-size: inherit; }
.guest-page .suggestions h3 { font-size: 28px; border-bottom: 1px solid #e6dcb4; padding-bottom: 6px; margin-top: 1.2em; }
@media (max-width: 980px) {
  .guest-page h2 { font-size: 36px; scroll-margin-top: 100px; }
  .essentials { padding: 20px; }
  .essentials dl { grid-template-columns: 1fr; gap: 0; }
  .essentials dd { margin-bottom: 10px; }
  details.step summary { font-size: 22px; }
}

/* "Back to top" button on the long guest page (shown by main.js after scrolling down) */
.to-top {
  position: fixed; z-index: 40; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--gold); color: var(--white); padding: 10px 18px; font-size: 18px; border-radius: 30px; box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.to-top:hover { text-decoration: none; opacity: .9; }
.recaptcha-note { font-size: 13px; color: var(--muted); text-align: right; margin-top: 10px; }
.recaptcha-note a { color: var(--muted); text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }   /* the note under the form replaces Google's floating badge */

/* ---------- Airbnb rating and guest reviews (as on comolakevilla) ---------- */
.rating { color: var(--text); }
.rating .stars { color: #c8962e; }
.house-rating { font-size: 20px; margin: -10px 0 20px; }
.rating-line { font-size: 20px; }
.review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 30px 0; text-align: left; }
.review { margin: 0; background: var(--beige); padding: 24px; }
.review p { margin: 0 0 12px; font-style: italic; font-size: 20px; line-height: 1.55; }
.review footer { color: var(--gold-dark); font-size: 20px; }
@media (max-width: 800px) { .review-list { grid-template-columns: 1fr; } }
.suggestions .visit {
  display: inline-block; margin-left: 10px; padding: 1px 12px; vertical-align: 2px;
  border: 1px solid var(--gold); border-radius: 20px; color: var(--gold-dark);
  font-size: 15px; font-weight: 400; letter-spacing: .03em; white-space: nowrap;
}
.suggestions .visit:hover { background: var(--gold); color: var(--white); text-decoration: none; }
