/*
 * INCANTO - Landing page ufficiale.
 * Grand Opening, identità visiva originale,
 * layout full-width e design responsive.
 */

/* Font locali */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-normal.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-italic.woff2")
    format("woff2");
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-variable.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Palette originale INCANTO */

:root {
  color-scheme: dark;

  --ink: #080808;
  --ink2: #11100f;
  --ink3: #1c1916;

  --cream: #f4eadc;
  --cream2: #c2b6a6;

  --ember: #dfbb87;
  --ember2: #f9d8a5;
  --hair: #39312a;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", Arial, sans-serif;

  --page-gutter: clamp(20px, 2.5vw, 48px);
}

/* Impostazioni generali */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;

  margin: 0;

  background: var(--ink);
  color: var(--cream);

  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.75;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;

  width: 100%;
  min-width: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

address {
  font-style: normal;
  overflow-wrap: anywhere;
}

::selection {
  color: var(--ink);
  background: var(--ember2);
}

:focus-visible {
  outline: 2px solid var(--ember2);
  outline-offset: 4px;
}

/* Layout a tutta larghezza */

.container {
  width: 100%;

  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* Accessibilità */

.skip-link {
  position: fixed;
  z-index: 100;

  top: 10px;
  left: 10px;

  padding: 10px 18px;
  border-radius: 20px;

  background: var(--ember2);
  color: var(--ink);

  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: relative;
  z-index: 10;

  width: 100%;

  background: transparent;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 72px;

  padding-inline: var(--page-gutter);

  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;

  flex-shrink: 0;
  gap: 9px;
}

.brand img {
  width: 32px;
  height: 44px;

  object-fit: contain;
}

.brand span {
  color: var(--ember2);

  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* Selettore lingua */

.languages {
  display: flex;
  align-items: center;

  gap: 4px;
}

.languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 40px;
  min-height: 44px;

  color: var(--cream2);

  font-family: var(--font-sans);
  font-size: 12px;

  transition: color 180ms ease;
}

.languages a:hover,
.languages a[aria-current="page"] {
  color: var(--ember2);
}

.languages a[aria-current="page"] {
  font-weight: 600;
}

/* Hero */

.hero {
  position: relative;

  width: 100%;

  isolation: isolate;
  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 76% 45%,
      rgba(223, 187, 135, 0.045),
      transparent 55%
    );
}

.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, 0.85fr);

  align-items: center;

  min-height: clamp(290px, 35vh, 390px);

  padding-top: 24px;
  padding-bottom: 32px;

  gap: clamp(24px, 5vw, 90px);
}

.hero-content {
  width: 100%;
  min-width: 0;

  animation: veil-rise 600ms ease both;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 3.9vw, 64px);
  font-weight: 400;

  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero h1 span {
  display: block;
}

.hero-accent {
  margin-top: 5px;

  color: var(--ember2);
  font-style: italic;
}

.hero-subtitle {
  max-width: 65ch;

  margin-top: 22px;

  color: var(--cream2);

  font-family: var(--font-sans);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.85;
}

/* Marchio animato originale */

/*
 * Il logo e lo slogan occupano due righe distinte.
 * La disposizione verticale rimane invariata
 * su desktop, tablet e dispositivi mobili.
 */

.hero-mark {
  position: relative;

  display: grid;

  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;

  align-content: center;
  justify-items: center;

  isolation: isolate;

  width: 100%;
  min-width: 0;

  gap: 12px;
}

.hero-mark picture {
  position: relative;
  z-index: 2;

  display: block;

  grid-column: 1;
  grid-row: 1;

  width: min(100%, clamp(260px, 35vh, 360px));
  min-width: 0;

  margin-inline: auto;
}

.hero-logo {
  display: block;

  width: 100%;
  height: auto;
  max-height: 360px;

  margin-inline: auto;

  object-fit: contain;

  user-select: none;
  pointer-events: none;

  filter: drop-shadow(
    0 28px 50px rgba(0, 0, 0, 0.18)
  );
}

.logo-glow {
  position: absolute;
  z-index: 1;

  left: 50%;
  top: 42%;

  width: min(80%, 420px);
  aspect-ratio: 1;

  transform: translate(-50%, -50%);
  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(252, 216, 171, 0.12),
      rgba(252, 216, 171, 0.04) 45%,
      transparent 72%
    );

  filter: blur(32px);

  pointer-events: none;
}

/* Slogan ufficiale INCANTO */

.hero-tagline {
  position: relative;
  z-index: 2;

  display: block;

  grid-column: 1;
  grid-row: 2;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin: 4px 0 0;

  color: var(--ember2);

  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  font-style: italic;

  line-height: 1.3;
  letter-spacing: -0.015em;

  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Etichette */

.eyebrow {
  color: var(--ember);

  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;

  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Grand Opening - sezione principale */

.opening {
  position: relative;

  width: 100%;

  padding-top: clamp(30px, 3vw, 52px);
  padding-bottom: clamp(28px, 2.8vw, 48px);

  background:
    radial-gradient(
      ellipse at 50% 35%,
      rgba(223, 187, 135, 0.055),
      transparent 68%
    );
}

.opening-grid {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;

  text-align: center;
}

.opening-heading {
  width: 100%;
  min-width: 0;
}

.opening-heading .eyebrow {
  color: var(--ember);

  font-size: 12px;
  font-weight: 500;

  letter-spacing: 0.4em;
}

.opening-heading h2 {
  margin-top: 14px;

  color: var(--ember2);

  font-family: var(--font-serif);
  font-size: clamp(64px, 8.5vw, 120px);
  font-weight: 400;

  font-variant-numeric: lining-nums;

  line-height: 1.05;
  letter-spacing: -0.035em;
}

.opening-heading time {
  display: inline-block;

  max-width: 100%;

  overflow-wrap: anywhere;
}

/* Titolo della presentazione */

.opening-title {
  max-width: 100%;

  margin-top: 18px;

  color: var(--cream);

  font-family: var(--font-serif);
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 400;
  font-style: italic;

  line-height: 1.25;
}

/* Presentazione dell'esperienza INCANTO */

.opening-story {
  width: 100%;
  max-width: 1050px;

  margin-top: 20px;

  color: var(--cream2);

  font-family: var(--font-sans);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.95;

  text-align: center;
}

.opening-story p + p {
  margin-top: 10px;
}

/* Informazioni e posizione */

.information {
  width: 100%;

  padding-top: 24px;
  padding-bottom: clamp(48px, 5vw, 80px);
}

.information-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  align-items: center;

  width: 100%;

  gap: clamp(40px, 6vw, 120px);
}

/* Annuncio del sito ufficiale */

.opening-content {
  width: 100%;
  min-width: 0;
}

.opening-description {
  max-width: 72ch;

  color: var(--cream2);

  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.9;
}

/* Canali social ufficiali */

.social-channels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 12px;

  margin-top: 22px;
}

.social-message {
  color: var(--ember);

  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 12px;
}

.social-link {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  color: var(--ember);

  border-radius: 50%;

  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.social-link svg {
  display: block;

  width: 21px;
  height: 21px;

  flex-shrink: 0;
}

.social-link[href] {
  cursor: pointer;
}

.social-link[href]:hover {
  color: var(--ember2);
  background: var(--ink3);

  transform: translateY(-2px);
}

.social-link:not([href]) {
  cursor: default;
}

.social-name {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip-path: inset(50%);

  white-space: nowrap;
  border: 0;
}

/* Posizione INCANTO RESORT */

.location {
  width: 100%;
  min-width: 0;
}

.location-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(200px, 280px);

  align-items: center;

  width: 100%;

  gap: clamp(20px, 2.5vw, 40px);
}

.location-content {
  min-width: 0;
}

.location-content .eyebrow {
  font-size: 10px;
}

.location-content h2 {
  margin-top: 8px;

  color: var(--cream);

  font-family: var(--font-serif);
  font-size: clamp(25px, 2vw, 32px);
  font-weight: 400;

  line-height: 1.2;
}

.location-content address {
  max-width: 44ch;

  margin-top: 10px;

  color: var(--cream2);

  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.85;
}

.directions-link {
  display: inline-flex;
  align-items: center;

  min-height: 44px;

  gap: 8px;
  margin-top: 8px;
  padding-block: 4px;

  color: var(--ember);

  font-family: var(--font-sans);
  font-size: 12px;

  transition: color 180ms ease;
}

.directions-link svg {
  flex-shrink: 0;
}

.directions-link:hover {
  color: var(--ember2);
}

/* Google Maps */

.map-container {
  width: 100%;
  min-width: 0;

  overflow: hidden;

  background: var(--ink2);

  border-radius: 6px;
}

.map-container iframe {
  display: block;

  width: 100%;
  height: 170px;

  border: 0;
}

/* Footer e informazioni societarie */

.site-footer {
  position: relative;

  width: 100%;

  padding-top: 44px;
  padding-bottom: 24px;

  background:
    linear-gradient(
      180deg,
      #11100f 0%,
      #0d0c0b 100%
    );

  color: var(--cream2);

  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.85;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.5fr)
    minmax(0, 1.5fr)
    minmax(0, 0.8fr);

  align-items: start;

  width: 100%;

  gap: clamp(24px, 4vw, 64px);
}

.footer-company,
.footer-address,
.footer-contact {
  min-width: 0;

  overflow-wrap: anywhere;
}

.company-name {
  margin-bottom: 12px;

  color: var(--ember2);

  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;

  letter-spacing: 0.06em;
  line-height: 1.25;
}

.footer-company p:not(.company-name) {
  font-size: 12px;
  line-height: 1.9;
}

.footer-company span {
  display: block;

  color: var(--cream);
}

/*
 * Stile uniforme per tutti i titoli del footer:
 * sede operativa, sede legale ed email.
 */

.footer-label {
  margin-bottom: 12px;

  color: var(--cream);

  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  font-style: normal;

  line-height: 1.6;
  letter-spacing: normal;
}

.footer-address address {
  max-width: 55ch;

  color: var(--cream2);

  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.9;
}

.footer-contact {
  justify-self: end;
}

.footer-contact a {
  color: var(--ember);

  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;

  overflow-wrap: anywhere;

  transition: color 180ms ease;
}

.footer-contact a:hover {
  color: var(--ember2);
  text-decoration: underline;
}

.copyright {
  margin-top: 36px;

  color: var(--cream2);

  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

/* Animazioni */

@keyframes veil-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop e laptop */

@media (min-width: 1000px) and (max-width: 1199px) {

  .information-grid {
    gap: 36px;
  }

  .location-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(170px, 200px);

    gap: 18px;
  }

  .map-container iframe {
    height: 155px;
  }

  .footer-grid {
    gap: 24px;
  }

}

/* Desktop con altezza ridotta */

@media (min-width: 1000px) and (max-height: 850px) {

  .header-container {
    min-height: 64px;
  }

  .hero-grid {
    min-height: auto;

    padding-top: 16px;
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(38px, 3.6vw, 56px);
  }

  .hero-mark picture {
    width: min(100%, 290px);
  }

  .hero-logo {
    max-height: 290px;
  }

  .hero-tagline {
    font-size: clamp(22px, 2vw, 28px);
  }

  /* Grand Opening compatto */

  .opening {
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .opening-heading h2 {
    font-size: clamp(64px, 7.5vw, 108px);
  }

  .opening-title {
    margin-top: 16px;
  }

  .opening-story {
    margin-top: 18px;
  }

  .information {
    padding-bottom: 44px;
  }

}

/* Tablet e iPad */

@media (min-width: 641px) and (max-width: 999px) {

  .hero-grid {
    min-height: auto;

    padding-top: 26px;
    padding-bottom: 28px;

    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(34px, 4.8vw, 48px);
  }

  .hero-mark {
    gap: 12px;
  }

  .hero-mark picture {
    width: min(100%, 260px);
  }

  .hero-tagline {
    font-size: clamp(21px, 2.8vw, 27px);
  }

  .hero-subtitle {
    margin-top: 18px;
  }

  /* Grand Opening tablet */

  .opening {
    padding-block: 32px;
  }

  .opening-heading h2 {
    font-size: clamp(64px, 11vw, 100px);
  }

  .opening-title {
    margin-top: 18px;
  }

  .opening-story {
    max-width: 720px;

    margin-top: 20px;
  }

  .information-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    align-items: start;

    gap: 34px;
  }

  .location-grid {
    grid-template-columns: minmax(0, 1fr);

    gap: 16px;
  }

  .map-container {
    max-width: 300px;
  }

  /* Footer tablet - due colonne */

  .footer-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 30px 40px;
  }

  .footer-contact {
    justify-self: start;
  }

}

/* Mobile */

@media (max-width: 640px) {

  :root {
    --page-gutter: 20px;
  }

  .header-container {
    min-height: 60px;

    gap: 8px;
  }

  .brand {
    gap: 6px;
  }

  .brand img {
    width: 26px;
    height: 35px;
  }

  .brand span {
    font-size: 19px;
  }

  .languages {
    gap: 0;
  }

  .languages a {
    min-width: 34px;
    font-size: 11px;
  }

  /* Hero mobile */

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);

    min-height: auto;

    gap: 22px;

    padding-top: 30px;
    padding-bottom: 20px;
  }

  .hero-content {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(32px, 8.5vw, 48px);
    line-height: 1.12;
  }

  .hero-subtitle {
    margin-top: 18px;
    margin-inline: auto;

    font-size: 13px;
    line-height: 1.85;
  }

  /* Logo e slogan - disposizione verticale */

  .hero-mark {
    gap: 10px;
  }

  .hero-mark picture {
    width: min(57vw, 220px);
  }

  .hero-logo {
    max-height: 240px;
  }

  .hero-tagline {
    margin-top: 2px;

    font-size: clamp(21px, 5.5vw, 28px);
  }

  /* Grand Opening mobile */

  .opening {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .opening-heading .eyebrow {
    font-size: 11px;

    letter-spacing: 0.28em;
  }

  .opening-heading h2 {
    margin-top: 12px;

    font-size: clamp(36px, 14vw, 80px);

    letter-spacing: -0.035em;
  }

  .opening-title {
    margin-top: 14px;

    font-size: clamp(26px, 6.5vw, 34px);
  }

  .opening-story {
    margin-top: 18px;

    font-size: 13px;
    line-height: 1.9;
  }

  .opening-story p + p {
    margin-top: 10px;
  }

  /* Informazioni mobile */

  .information {
    padding-top: 8px;
    padding-bottom: 44px;
  }

  .information-grid {
    grid-template-columns: minmax(0, 1fr);

    gap: 40px;
  }

  .opening-content {
    text-align: center;
  }

  .opening-description {
    margin-inline: auto;

    font-size: 13px;
    line-height: 1.9;
  }

  /* Social mobile */

  .social-channels {
    align-items: center;

    gap: 8px;

    margin-top: 20px;
  }

  .social-links {
    justify-content: center;

    gap: 10px;
  }

  .social-message {
    font-size: 12px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }

  /* Posizione mobile */

  .location-grid {
    grid-template-columns: minmax(0, 1fr);

    gap: 16px;
  }

  .location-content {
    text-align: center;
  }

  .location-content h2 {
    font-size: 28px;
  }

  .location-content address {
    margin-inline: auto;

    font-size: 12px;
  }

  .directions-link {
    justify-content: center;
  }

  .map-container {
    max-width: 320px;

    margin-inline: auto;
  }

  .map-container iframe {
    height: 170px;
  }

  /* Footer mobile */

  .site-footer {
    padding-top: 36px;
    padding-bottom: 24px;

    text-align: center;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);

    gap: 28px;
  }

  .company-name {
    font-size: 23px;

    margin-bottom: 8px;
  }

  .footer-label {
    margin-bottom: 8px;
  }

  .footer-address address {
    margin-inline: auto;
  }

  .footer-contact {
    justify-self: center;
  }

  .copyright {
    margin-top: 30px;

    font-size: 10px;
  }

}

/* Dispositivi con schermi molto piccoli */

@media (max-width: 360px) {

  :root {
    --page-gutter: 14px;
  }

  .brand span {
    font-size: 17px;
  }

  .brand img {
    width: 24px;
    height: 32px;
  }

  .languages a {
    min-width: 30px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-tagline {
    font-size: 20px;
  }

  .opening {
    padding-block: 24px;
  }

  .opening-heading h2 {
    font-size: clamp(32px, 13.5vw, 48px);
  }

  .opening-heading .eyebrow {
    letter-spacing: 0.2em;
  }

  .social-links {
    gap: 6px;
  }

}

/* Accessibilità - movimento ridotto */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .social-link[href]:hover {
    transform: none;
  }

}
