/*
Theme Name: Masenti 68
Theme URI: https://www.masenti68.it/
Author: Antonio Palumbo
Author URI: https://antoniopalumbo.it/
Description: One page del bed and breakfast Masenti 68 a Pula.
Version: 1.0.0
Requires at least: 6.0
Text Domain: masenti68
*/

:root {
  --cream: #f7f4ef;
  --cream-deep: #f3efe8;
  --lilac: #e6e3ed;
  --white: #ffffff;
  --ink: #4f4f4f;
  --ink-soft: #5e5e5e;
  --heading: #8d98a1;
  --blush: #f4e9e6;
  --line: #ddd7cf;
  --orange: #e08a45;
  --max: 1120px;
  --header: 64px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#camera,
#colazione,
#pula,
#spiagge,
#dove,
#contatti,
#unici {
  scroll-margin-top: 84px;
}

.admin-bar #camera,
.admin-bar #colazione,
.admin-bar #pula,
.admin-bar #spiagge,
.admin-bar #dove,
.admin-bar #contatti,
.admin-bar #unici {
  scroll-margin-top: 118px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button,
input,
textarea { font-family: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus { top: 8px; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header);
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
}

.admin-bar .site-header { top: 32px; }

.brand {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #2f2f2f;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a,
.header-phone {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #5c656c;
}

.site-nav a:hover,
.header-phone:hover { color: #222; }

.header-phone { white-space: nowrap; }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #333;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.hero {
  position: relative;
  min-height: 68vh;
  background: #d7e3ea center/cover no-repeat;
}

.hero img {
  width: 100%;
  height: 72vh;
  min-height: 420px;
  object-fit: cover;
}

.logo-card {
  width: min(280px, 70vw);
  margin: -78px auto 0;
  padding: 8px;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.logo-card img { width: 100%; }

.welcome {
  text-align: center;
  padding: 28px 22px 84px;
  background: var(--white);
}

.welcome h1,
.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  color: var(--heading);
  letter-spacing: 0.01em;
}

.welcome h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.25;
}

.welcome .lead {
  max-width: 760px;
  margin: 18px auto 0;
  font-style: italic;
  color: #6a6a6a;
  font-size: 18px;
}

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 13px 22px;
  background: var(--blush);
  color: #6a6a6a;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn:hover { background: #eadfdc; }

.section-title {
  font-size: clamp(34px, 4vw, 48px);
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background: var(--cream);
}

.split .copy,
.split .photo {
  padding: 72px 8vw;
}

.split .photo {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split.unici .photo { background: linear-gradient(90deg, var(--cream) 0 8%, var(--lilac) 8% 100%); }
.split.camera-top { background: var(--cream-deep); }
.split.camera-top .photo { background: var(--lilac); }

.copy h2 { text-align: left; margin-bottom: 18px; }

.copy p { margin: 0 0 18px; }

.photo img { width: 100%; object-fit: cover; }

.camera {
  background: var(--cream-deep);
  padding: 10px 0 72px;
}

.camera-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px 56px;
}

.camera-main img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  align-items: center;
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
  color: #9aa3aa;
}

.amenities svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.amenities .netflix {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.note { font-size: 15px; color: #666; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.gallery a { display: block; }
.gallery img { width: 100%; height: 110px; object-fit: cover; }

.camera-side .btn { margin-top: 22px; }

.colazione {
  background: var(--white);
  padding: 78px 22px 0;
  text-align: center;
}

.colazione .text {
  max-width: 820px;
  margin: 22px auto 36px;
}

.colazione .text p { margin: 0 0 10px; }
.colazione em { color: #666; }

.slider {
  position: relative;
  background: #111;
}

.slide { display: none; }
.slide.is-active { display: block; }

.slide img {
  width: 100%;
  height: min(72vh, 760px);
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #333;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.slider-prev { left: 18px; }
.slider-next { right: 18px; }

.pula {
  background: var(--cream);
  padding: 84px 22px;
}

.pula-grid {
  width: min(var(--max), 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: start;
}

.pula-grid p { margin: 0 0 16px; }

.fonte { font-style: italic; color: #777; }
.fonte a { color: var(--orange); }

.pula-grid img { width: 100%; height: 280px; object-fit: cover; margin-bottom: 16px; }

.spiagge {
  background: var(--white);
  padding: 78px 22px 40px;
}

.rule {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto 8px;
  border: 0;
  border-top: 1px solid #e4e0da;
}

.cards {
  width: min(var(--max), 100%);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.cards h3 {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  color: #7e888f;
}

.cards img { width: 100%; height: 190px; object-fit: cover; margin-bottom: 14px; }
.cards p { margin: 0; font-size: 16px; }

.dove { background: var(--white); padding: 20px 0 0; }
.dove .section-title { margin: 18px 0; }

.map {
  height: 380px;
  background: #eceae6;
}

.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(0.95); }

.contatti {
  background: #f6f1ec;
  padding: 78px 22px 88px;
}

.contatti .section-title { line-height: 1.2; }
.contatti .sub {
  margin: 8px 0 34px;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--heading);
}

.form {
  width: min(860px, 100%);
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: 1 / -1; }
.choices { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; }

label { font-size: 15px; font-weight: 600; }

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea {
  width: 100%;
  border: 1px solid #cfcac4;
  background: transparent;
  padding: 10px 12px;
  font-size: 16px;
  color: #333;
}

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

.radios { display: flex; gap: 16px; font-weight: 400; }
.radios label { font-weight: 400; display: flex; gap: 6px; align-items: center; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
  font-weight: 400;
}

.hp { position: absolute; left: -9999px; }

.form-actions { text-align: center; margin-top: 22px; }

.submit {
  border: 0;
  background: #1c1c1c;
  color: #fff;
  letter-spacing: 0.18em;
  padding: 12px 28px;
  cursor: pointer;
  font-size: 13px;
}

.submit:hover { background: #000; }

.form-notice {
  width: min(860px, 100%);
  margin: 0 auto 22px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.form-notice.ok { border-color: #b7cbb6; }
.form-notice.err { border-color: #e3b4b4; }

.site-footer {
  background: var(--white);
  padding: 36px 22px 28px;
  text-align: center;
}

.footer-logo { width: 210px; margin: 0 auto 22px; }

.footer-contacts {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  color: #333;
}

.footer-contacts a { text-decoration: none; }
.footer-contacts span.sep { color: #bbb; }

.footer-bottom {
  width: min(980px, 100%);
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #777;
}

.footer-bottom a { color: #777; text-decoration: none; }
.footer-bottom .copy { text-align: right; letter-spacing: 0; font-size: 13px; }
.footer-bottom .copy a { color: var(--orange); }
.cin { text-align: left; letter-spacing: 0.04em; }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: #d9d9d9;
  color: #444;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.to-top.is-visible { opacity: 1; pointer-events: auto; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 92vw;
}

.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.lightbox img { max-height: 88vh; width: auto; max-width: 92vw; }

body.page {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.text-page {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.text-page h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--heading);
  font-size: 46px;
}

@media (max-width: 900px) {
  .site-header { padding: 0 16px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 0 12px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 18px; }
  .nav-toggle { display: grid; place-items: center; }
  .header-phone { display: none; }
  .split,
  .camera-grid,
  .pula-grid,
  .cards,
  .form-grid,
  .choices,
  .footer-bottom { grid-template-columns: 1fr; }
  .split .copy,
  .split .photo { padding: 32px 22px; }
  .split.unici .photo { background: var(--lilac); }
  .gallery img { height: 92px; }
  .footer-bottom .copy,
  .cin { text-align: center; }
  .admin-bar .site-header { top: 46px; }
  .hero img { height: 52vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
