/* CASA CLAUDIO B&B - ONE PAGE */
:root {
  --dark: #474540;
  --taupe: #95826e;
  --sage: #8e8b77;
  --cream: #f6f2eb;
  --soft: #eee8de;
  --white: #ffffff;
  --black: #151412;
  --muted: #77736d;
  --border: rgba(71, 69, 64, 0.14);
  --serif: "Cormorant Garamond", serif;
  --sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--dark);
  background: var(--cream);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
  scroll-margin-top: 120px;
}

/* NAV */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

.glass-nav {
  width: min(1080px, calc(100% - 36px));
  height: 76px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(25, 24, 22, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.24);
  pointer-events: auto;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.nav-side a {
  padding: 12px 17px;
  border-radius: 999px;
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all .25s ease;
}

.nav-side a:hover,
.nav-side a.is-active {
  color: var(--black);
  background: rgba(255,255,255,0.88);
}

.nav-logo {
  width: 136px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo img {
  max-height: 52px;
  max-width: 136px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  justify-self: end;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  pointer-events: auto;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 72px;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-size: cover;
  background-position: center center;
  transform: scale(1.04);
}

.hero-overlay {
  background:
  linear-gradient(90deg, rgb(21 20 18 / 18%), rgba(21, 20, 18, 0.36) 58%, rgba(21, 20, 18, 0.18)), linear-gradient(0deg, rgb(21 20 18 / 29%), rgba(21, 20, 18, 0))
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-right: 260px;
}

.eyebrow,
.kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--taupe);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
h2,
h3 {
  font-family: var(--serif);
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(4rem, 9vw, 9.8rem);
  line-height: 0.86;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 640px;
  margin: 30px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-light {
  background: #fff;
  color: var(--black);
}

.btn-outline {
  border-color: rgba(255,255,255,0.34);
  color: #fff;
}

.btn-dark {
  background: var(--black);
  color: #fff;
}

.hero-card {
  position: absolute;
  right: max(40px, calc((100vw - 1180px) / 2));
  bottom: 72px;
  z-index: 2;
  width: 260px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.08;
}

/* BASE */
.intro {
  background: var(--cream);
}

.intro-grid,
.section-head {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 70px;
  align-items: end;
}

.section-head.center {
  display: block;
  max-width: 820px;
  text-align: center;
}

.section-head.center p {
  margin-left: auto;
  margin-right: auto;
}

h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(3rem, 6vw, 6.6rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.055em;
}

h3 {
  margin: 0;
  color: var(--black);
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
  line-height: 1.85;
}

/* ROOMS */
.rooms-section {
  background: #fff;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.room-card {
  overflow: hidden;
  border-radius: 32px;
  background: var(--cream);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(71,69,64,0.08);
}

.room-image {
  height: 260px;
  background-size: cover;
  background-position: center;
}

.room-body {
  padding: 26px;
}

.room-body span {
  color: var(--taupe);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.room-body h3 {
  margin: 10px 0 14px;
}

/* FEATURES */
.structure-section {
  background: var(--soft);
}

.restaurant-section {
  background: var(--cream);
}

.feature-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 74px;
  align-items: center;
}

.feature-split.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.feature-split.reverse .feature-image {
  order: 2;
}

.feature-image {
  min-height: 560px;
  border-radius: 42px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 25px 70px rgba(71,69,64,0.15);
}

.feature-image.tall {
  min-height: 640px;
}

.feature-text {
  max-width: 620px;
}

.feature-text p {
  font-size: 1.02rem;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--taupe);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

/* TERRITORY */
.territory-section {
  background: #fff;
}

.territory-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  margin-top: 54px;
}

.territory-card {
  min-height: 300px;
  padding: 36px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.territory-card.large {
  grid-row: span 2;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
}

.territory-image {
  flex: 1;
  min-height: 330px;
  background-size: cover;
  background-position: center;
}

.territory-card.large > div:last-child {
  padding: 36px;
}

.territory-card.dark {
  background: var(--dark);
}

.territory-card.dark h3,
.territory-card.dark p {
  color: #fff;
}

.territory-card span {
  margin-bottom: 12px;
  color: var(--taupe);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* CONTACT */
.contact-section {
  background: var(--soft);
}

.contact-box {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  padding: 58px;
  border-radius: 44px;
  background: #fff;
  border: 1px solid var(--border);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 58px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 15px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
  grid-column: 1 / -1;
}

.privacy-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.privacy-check input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--dark);
}

/* FOOTER */
.site-footer {
  padding: 70px 0;
  background: var(--dark);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr .8fr;
  gap: 60px;
}

.footer-grid img {
  width: 160px;
}

.footer-grid h4 {
  margin: 0 0 16px;
  color: var(--taupe);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
  .nav-side {
    display: none;
  }

  .glass-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-logo {
    justify-content: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    width: min(420px, calc(100% - 36px));
    margin: 10px auto 0;
    padding: 12px;
    border-radius: 28px;
    background: rgba(25,24,22,0.84);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .mobile-menu.is-open {
    display: grid;
  }

  .mobile-menu a {
    padding: 14px 18px;
    color: #fff;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 12px;
  }

  .mobile-menu a:hover {
    background: rgba(255,255,255,0.12);
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(1180px, calc(100% - 40px));
    margin: 34px auto 0;
  }

  .hero {
    display: block;
    padding-top: 220px;
  }

  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-split,
  .feature-split.reverse,
  .intro-grid,
  .section-head,
  .contact-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-split.reverse .feature-image {
    order: 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 72px 0;
  }

  .glass-nav {
    height: 66px;
  }

  .nav-logo img {
    max-height: 45px;
  }

  .hero {
    min-height: auto;
    padding: 180px 0 58px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 18vw, 5.4rem);
  }

  h2 {
    font-size: clamp(3.2rem, 14vw, 4.6rem);
  }

  .room-grid,
  .territory-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .feature-image,
  .feature-image.tall,
  .territory-card.large {
    min-height: 420px;
  }

  .contact-box {
    padding: 30px 22px;
    border-radius: 30px;
  }
}

.hero-content-center {
  max-width: 1180px !important;
  padding-right: 0 !important;
  text-align: center !important;
}

.hero-content-center h1 {
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-content-center p {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-content-center .hero-actions {
  justify-content: center !important;
}

.hero .hero-card {
  display: none !important;
}

.hero {
  align-items: center !important;
  padding: 140px 0 80px !important;
}

.hero-content-center {
  transform: translateY(35px);
}

@media (max-width: 760px) {
  .hero {
    align-items: center !important;
    padding: 150px 0 70px !important;
  }

  .hero-content-center {
    transform: translateY(20px);
  }
}

.contact-email {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
}

.contact-email svg {
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  fill: none !important;
  stroke: #96836f !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  flex: 0 0 auto !important;
}

.contact-email a {
  display: inline-block !important;
  color: inherit !important;
  white-space: nowrap !important;
}

.footer-legal {
  margin-top: 46px;
  text-align: center;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: #95826e;
  opacity: 0.65;
  margin-bottom: 22px;
}

.footer-legal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.footer-legal span {
  display: inline-block;
  margin: 0 14px;
  color: #95826e;
}

.site-footer {
  padding: 70px 0 38px !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 40px !important;
}

/* Contatti a sinistra ma blocco centrato */
.footer-grid > div:first-child {
  justify-self: center !important;
  text-align: left !important;
  min-width: 230px !important;
}

/* Logo perfettamente centrato */
.footer-grid > div:nth-child(2) {
  justify-self: center !important;
  text-align: center !important;
}

.footer-grid > div:nth-child(2) img {
  margin: 0 auto !important;
  display: block !important;
}

/* Privacy a sinistra ma blocco centrato */
.footer-grid > div:nth-child(3) {
  justify-self: center !important;
  text-align: left !important;
  min-width: 230px !important;
}

/* Riga e parte legale più compatta */
.footer-legal {
  margin-top: 34px !important;
  padding-bottom: 0 !important;
  text-align: center !important;
}

.footer-line {
  margin-bottom: 18px !important;
}

.footer-legal p {
  margin: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .footer-grid > div:first-child,
  .footer-grid > div:nth-child(3) {
    text-align: center !important;
    min-width: auto !important;
  }

  .contact-email {
    justify-content: center !important;
  }

  .site-footer {
    padding: 55px 0 32px !important;
  }
}

.contact-form-wrap {
  width: 100%;
}

#form-message {
  width: 100%;
}

.contact-form {
  width: 100%;
}

.contact-box {
  display: grid !important;
  grid-template-columns: 0.9fr 1.1fr !important;
  align-items: start !important;
}

.contact-text {
  grid-column: 1 !important;
}

.contact-form-wrap {
  grid-column: 2 !important;
  width: 100% !important;
}

#form-message {
  width: 100% !important;
  margin-bottom: 22px !important;
}

#form-message p {
  width: 100% !important;
  margin: 0 0 22px 0 !important;
}

.contact-form {
  width: 100% !important;
}

@media (max-width: 900px) {
  .contact-box {
    grid-template-columns: 1fr !important;
  }

  .contact-text,
  .contact-form-wrap {
    grid-column: auto !important;
  }
}

/* Barra prenotazione mobile */
.mobile-booking-bar {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 40px;
  }

 .mobile-booking-bar {
    position: fixed;
    /* left: 16px; */
    /* right: 16px; */
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    /* border-radius: 999px; */
    background: rgba(59, 52, 45, 0.82);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    width: 100%;
}

  .mobile-booking-bar a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 58px;
    padding: 0 24px;

    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-booking-bar:active {
    transform: scale(0.98);
  }
}
/* Pulsante Verifica disponibilità nel menu */
.glass-nav .booking-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 0 22px;

  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;

  background: rgba(10, 15, 16, 0.72);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-nav .booking-menu-link:hover {
  background: rgba(10, 15, 16, 0.95);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* Ultima voce nel menu mobile */
.mobile-menu .booking-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 12px;
  padding: 16px 22px;
  border-radius: 999px;

  background: rgba(10, 15, 16, 0.9);
  color: #fff;
  text-align: center;
}

/* Header delle pagine Privacy e Cookie */
.privacy-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;

  color: #fff;
  text-decoration: none;
}

.privacy-nav-home img {
  display: block;
  width: 72px;
  height: auto;
}

.privacy-nav-home span {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);

  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  transition: opacity 0.3s ease;
}

.privacy-nav-home:hover span {
  opacity: 0.7;
}

@media (max-width: 760px) {
  .privacy-nav-home {
    gap: 16px;
  }

  .privacy-nav-home img {
    width: 60px;
  }

  .privacy-nav-home span {
    padding-left: 16px;
    font-size: 10px;
    letter-spacing: 0.11em;
  }
}


/* Introduzione Casa Claudio a tre colonne */
.intro-grid.intro-grid--three {
  display: grid;
  grid-template-columns:
    minmax(230px, 270px)
    minmax(360px, 1.15fr)
    minmax(280px, 0.95fr);
  gap: 48px;
  align-items: center;
}

/* Prima colonna: fotografia */
.intro-photo {
  width: 100%;
  min-width: 0;
}

.intro-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(71, 69, 64, 0.14);
}

/* Seconda colonna: titolo */
.intro-heading {
  min-width: 0;
  padding-left: 4px;
}

.intro-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 4vw, 3.25rem);
  line-height: 0.98;
}

/* Terza colonna: descrizione */
.intro-description {
  min-width: 0;
  padding-left: 4px;
}

.intro-description p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
}

/* Tablet */
@media (max-width: 1050px) {
  .intro-grid.intro-grid--three {
    grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
    gap: 38px;
  }

  .intro-description {
    grid-column: 1 / -1;
    max-width: 760px;
    padding-left: 0;
  }
}

/* Smartphone */
@media (max-width: 760px) {
  .intro-grid.intro-grid--three {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro-photo img {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }

  .intro-heading,
  .intro-description {
    padding-left: 0;
  }

  .intro-heading h2 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }
}