/* Hotel Elena
   Colori, font e misure si cambiano qui sotto, il resto li eredita. */

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

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --lake-deep: #10262c;
  --lake: #1b3d45;
  --paper: #f6f3ec;
  --paper-shade: #ebe6da;
  --ink: #1b2325;
  --ink-soft: #4a5456;
  --brass: #c9a24b;
  --brass-light: #dcbb6e;
  --brass-dark: #755813;
  --on-dark: #f6f3ec;
  --on-dark-soft: #b7c6c7;

  --font-title: "Marcellus", Georgia, serif;
  --font-text: "Manrope", system-ui, sans-serif;

  /* freccia dei bottoni */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 10.5l9-9M3.5 1.5h7v7'/%3E%3C/svg%3E");

  --page-width: 1240px;
  --side-space: clamp(20px, 5vw, 60px);
  --section-space: clamp(72px, 10vw, 140px);
  --header-height: 76px;
}


/* Base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0;
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

a {
  color: inherit;
}

address {
  font-style: normal;
}

figure {
  margin: 0;
}

::selection {
  background: var(--brass);
  color: var(--lake-deep);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--brass);
  color: var(--lake-deep);
}

.skip-link:focus {
  top: 12px;
}


/* Bottoni e link */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: var(--brass);
  color: var(--lake-deep);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.button::after {
  content: "";
  width: 11px;
  height: 11px;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform 0.25s;
}

.button:hover {
  background: var(--brass-light);
  border-color: var(--brass-light);
}

.button:hover::after {
  transform: translate(2px, -2px);
}

.button-small {
  padding: 12px 22px;
  font-size: 0.95rem;
}

.button-outline {
  background: transparent;
  border-color: rgba(246, 243, 236, 0.55);
  color: var(--on-dark);
}

.button-outline::after {
  transform: rotate(135deg);
}

.button-outline:hover {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--lake-deep);
}

.button-outline:hover::after {
  transform: rotate(135deg) translate(2px, -2px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.text-link {
  color: var(--brass-dark);
  font-weight: 600;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--ink);
}


/* Scritta "Elena" usata come logo */

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--on-dark);
  text-decoration: none;
}

.wordmark-name {
  margin-right: -0.32em;
  font-family: var(--font-title);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.wordmark-place {
  margin-top: 6px;
  margin-right: -0.3em;
  color: var(--brass);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}


/* Barra in alto, sempre visibile */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
  padding: 0 var(--side-space);
  background: var(--lake-deep);
  color: var(--on-dark);
}

.main-menu {
  display: flex;
  gap: clamp(18px, 2.6vw, 38px);
}

.main-menu a,
.header-phone {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.main-menu a:hover,
.header-phone:hover {
  color: var(--brass-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}


/* Scelta della lingua: menu a tendina senza JavaScript */

.languages {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
}

.languages summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}

.languages summary::-webkit-details-marker {
  display: none;
}

.languages summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.languages summary:hover,
.languages[open] summary {
  color: var(--brass-light);
}

.languages ul {
  position: absolute;
  top: calc(100% + 8px);
  right: -12px;
  min-width: 150px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(16, 38, 44, 0.28);
}

.languages a {
  display: block;
  padding: 9px 12px;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
}

.languages a:hover {
  background: var(--paper-shade);
}

.languages a[aria-current] {
  color: var(--brass-dark);
  font-weight: 700;
}


/* Apertura con la foto del lago */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 900px);
  padding: calc(var(--header-height) + 80px) var(--side-space) clamp(56px, 8vw, 110px);
  overflow: hidden;
  background: var(--lake-deep);
  color: var(--on-dark);
}

.hero-photo,
.booking-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo {
  object-position: 50% 42%;
  animation: photo-settle 2.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* velo scuro per leggere il testo sopra la foto */
.hero::before,
.booking::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(16, 38, 44, 0.88), rgba(16, 38, 44, 0.3) 60%, rgba(16, 38, 44, 0.45));
}

/* sul desktop il titolo sta a sinistra: lì la foto va scurita di più */
@media (min-width: 900px) {
  .hero::before {
    background:
      linear-gradient(to right, rgba(16, 38, 44, 0.72), rgba(16, 38, 44, 0) 70%),
      linear-gradient(to top, rgba(16, 38, 44, 0.8), rgba(16, 38, 44, 0.2) 60%, rgba(16, 38, 44, 0.4));
  }
}

.hero-text {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  animation: text-rise 1.1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
  max-width: 15ch;
  color: var(--on-dark);
}

.hero p {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 1.15rem;
}

.hero .button-row {
  margin-top: 36px;
}

@keyframes photo-settle {
  from { transform: scale(1.08); }
}

@keyframes text-rise {
  from { opacity: 0; transform: translateY(26px); }
}


/* Sezioni */

.section {
  max-width: calc(var(--page-width) + var(--side-space) * 2);
  margin: 0 auto;
  padding: var(--section-space) var(--side-space);
}

.lead {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.6;
}

figcaption {
  font-size: 0.9rem;
}


/* L'hotel */

.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.about h2 {
  margin-bottom: 28px;
}

.about-text p {
  max-width: 52ch;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 200px 200px 6px 6px;
}

.about-photo figcaption {
  margin-top: 14px;
  text-align: center;
}


/* Camere: fascia scura a tutta larghezza */

.rooms {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 7vw, 110px);
  max-width: none;
  padding-left: max(var(--side-space), calc((100vw - var(--page-width)) / 2));
  padding-right: max(var(--side-space), calc((100vw - var(--page-width)) / 2));
  background: var(--lake-deep);
  color: var(--on-dark-soft);
}

.rooms h2 {
  margin-bottom: 28px;
  color: var(--on-dark);
}

.rooms-text p {
  max-width: 48ch;
}

.rooms-text a {
  color: var(--on-dark);
  text-decoration-color: var(--brass);
  text-underline-offset: 4px;
}

.rooms-times {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 243, 236, 0.18);
  color: var(--brass-light);
  font-weight: 500;
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--on-dark);
}

.services li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(246, 243, 236, 0.18);
  line-height: 1.45;
}


/* Dintorni */

.section-intro {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: end;
  gap: clamp(24px, 7vw, 110px);
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-intro p {
  max-width: 44ch;
}

.places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
}

.place img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

/* la foto centrale scende un po', per rompere la fila */
.place:nth-child(2) {
  margin-top: clamp(0px, 5vw, 72px);
}

.place figcaption {
  margin-top: 22px;
  font-size: 1rem;
}

.place h3 {
  margin-bottom: 8px;
}


/* Dove siamo */

.directions {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 7vw, 110px);
  max-width: none;
  padding-left: max(var(--side-space), calc((100vw - var(--page-width)) / 2));
  padding-right: max(var(--side-space), calc((100vw - var(--page-width)) / 2));
  background: var(--paper-shade);
}

.directions h2 {
  margin-bottom: 24px;
}

.directions address {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.5;
}

.directions-list {
  margin: 0;
}

.directions-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(27, 35, 37, 0.16);
}

.directions-list div:first-child {
  padding-top: 6px;
}

.directions-list dt {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.3rem;
  line-height: 1.3;
}

.directions-list dd {
  margin: 0;
}


/* Invito finale a prenotare */

.booking {
  position: relative;
  padding: clamp(100px, 14vw, 200px) var(--side-space);
  overflow: hidden;
  background: var(--lake-deep);
  color: var(--on-dark);
  text-align: center;
}

.booking::before {
  background: rgba(16, 38, 44, 0.7);
}

.booking-text {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.booking h2 {
  color: var(--on-dark);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.booking h2 + p {
  margin-top: 20px;
  font-size: 1.1rem;
}

.booking .button-row {
  justify-content: center;
  margin-top: 36px;
}

.booking-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin-top: 36px;
}

.booking-contacts a {
  text-underline-offset: 5px;
  text-decoration-color: var(--brass);
}

.booking-contacts a:hover {
  color: var(--brass-light);
}


/* Pagina di solo testo (informazioni societarie) */

.plain-page {
  max-width: calc(820px + var(--side-space) * 2);
  margin: 0 auto;
  padding: calc(var(--header-height) + clamp(56px, 8vw, 110px)) var(--side-space) var(--section-space);
}

.plain-page h1 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.company-data {
  margin: 44px 0 40px;
  border-top: 1px solid rgba(27, 35, 37, 0.16);
}

.company-data div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(27, 35, 37, 0.16);
}

.company-data dt {
  color: var(--ink);
  font-weight: 600;
}

.company-data dd {
  margin: 0;
}

.company-data a,
.policy a {
  text-underline-offset: 4px;
}

.policy {
  margin: 44px 0 40px;
}

.policy h2 {
  margin: 44px 0 12px;
  font-size: 1.6rem;
}

.policy p {
  max-width: 70ch;
}

.policy-date {
  margin-top: 44px;
  font-size: 0.9rem;
}


/* Piede */

.site-footer {
  padding: 64px var(--side-space) 40px;
  background: var(--lake-deep);
  color: var(--on-dark-soft);
  font-size: 0.95rem;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--page-width);
  margin: 0 auto;
}

.footer-main address {
  text-align: right;
}

.footer-brand .wordmark-name {
  font-size: 2.3rem;
}

.footer-brand .wordmark-place {
  font-size: 0.8rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
}

/* Loghi delle altre attività del gruppo.
   Le altezze sono diverse apposta: così a occhio pesano uguale. */
.group-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.group-brands a {
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.group-brands a:hover {
  opacity: 1;
}

.group-brands img {
  width: auto;
}

.brand-caffe-torino {
  height: 29px;
}

.brand-casa-bella {
  height: 56px;
}

.brand-house-and-pool {
  height: 25px;
}

.brand-lago-maggiore-bay {
  height: 34px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brass-light);
}

.footer-legal {
  max-width: var(--page-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 243, 236, 0.18);
  font-size: 0.82rem;
}

figcaption a,
.site-footer .footer-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  line-height: 2;
}


/* Tablet e telefono */

@media (max-width: 1000px) {
  .main-menu,
  .header-phone {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 66px;
  }

  body {
    font-size: 16px;
  }

  .about,
  .rooms,
  .section-intro,
  .directions {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(100svh, 760px);
  }

  .wordmark-name {
    font-size: 1.6rem;
  }

  .header-actions {
    gap: 14px;
  }

  .places {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .place:nth-child(2) {
    margin-top: 0;
  }

  .place img {
    aspect-ratio: 4 / 3;
  }

  .about-photo img {
    border-radius: 120px 120px 6px 6px;
  }

  .footer-main {
    flex-direction: column;
  }

  .footer-brand {
    align-items: center;
  }

  .group-brands {
    justify-content: center;
  }

  .footer-main address,
  .footer-legal {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .services {
    grid-template-columns: 1fr;
  }

  .directions-list div,
  .company-data div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero .button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

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

  .hero-photo,
  .hero-text {
    animation: none;
  }

  .button,
  .button::after {
    transition: none;
  }
}
