@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #2ea3f2;
  --deep-blue: #254e89;
  --turquoise: #29c4a9;
  --text: #666666;
  --heading: #333333;
  --dark: #222222;
  --container: 1080px;
  --header-height: 81px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Lato", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-weight: 300;
  line-height: 1.15;
}

p {
  margin-bottom: 1em;
}

.container {
  width: min(80%, var(--container));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-height);
  background: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(80%, var(--container));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand img {
  width: 160px;
  height: auto;
}

.site-navigation ul {
  display: flex;
  gap: 27px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-navigation a {
  display: block;
  color: #171717;
  font-size: 14px;
  font-weight: 700;
  line-height: var(--header-height);
  transition: color 180ms ease;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.site-navigation a.active {
  color: #0c71c3;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  color: var(--deep-blue);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle svg,
.slider-arrows svg,
.scroll-down svg,
.lightbox svg,
.button svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-toggle-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: block;
}

.home-hero,
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #254e89;
}

.home-hero {
  height: 555px;
}

.home-hero::after,
.hero::after {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 100px;
  background: url("/assets/images/wave-white-bottom.svg") center bottom / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.home-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px max(10%, 40px) 70px;
  background-image: var(--slide-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.home-slide.active {
  opacity: 1;
}

.home-slide h1 {
  width: min(100%, 1050px);
  margin: 0;
  color: #ffffff;
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 300;
  line-height: 1.02;
  text-align: center;
  text-shadow: 0 1px 4px rgb(0 0 0 / 18%);
}

.slider-arrows {
  position: absolute;
  z-index: 8;
  top: 50%;
  right: 22px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.slider-arrows button {
  width: 46px;
  height: 54px;
  padding: 10px;
  color: #ffffff;
  background: rgb(0 0 0 / 12%);
  border: 0;
  border-radius: 2px;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 180ms ease, background 180ms ease;
}

.home-hero:hover .slider-arrows button,
.slider-arrows button:focus-visible {
  opacity: 1;
}

.slider-arrows button:hover {
  background: rgb(0 0 0 / 35%);
}

.page-hero {
  height: 390px;
  background-image: linear-gradient(140deg, rgb(37 78 137 / 72%), rgb(41 196 169 / 58%)), var(--hero-image);
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 45px;
}

.hero-content h1 {
  margin: 0;
  color: #ffffff;
  font-size: 70px;
  font-weight: 300;
  text-align: center;
}

.scroll-down {
  position: absolute;
  z-index: 8;
  bottom: 45px;
  left: 50%;
  width: 42px;
  height: 42px;
  padding: 6px;
  color: #ffffff;
  border: 3px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.hero-contact {
  height: 620px;
  background-image: linear-gradient(rgb(5 20 35 / 6%), rgb(5 20 35 / 6%)), var(--hero-image);
  background-blend-mode: normal;
}

.hero-contact .hero-content {
  padding-bottom: 0;
}

.hero-contact .scroll-down {
  display: none;
}

.residence-section {
  padding: 65px 0 95px;
}

.residence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.residence-copy {
  text-align: center;
}

.residence-copy h2,
.plan-section h2,
.typologies-section h2,
.gallery-section h2,
.tarifs-section h2,
.reservation-section h2 {
  margin-bottom: 45px;
  font-size: 50px;
  text-align: center;
}

.residence-copy p {
  margin-bottom: 17px;
}

.residence-video video {
  width: 100%;
  background: #f1f3f4;
  border-radius: 2px;
}

.wave-top,
.wave-top-grey {
  position: relative;
}

.wave-top::before,
.wave-top-grey::before {
  position: absolute;
  z-index: 2;
  top: -1px;
  right: 0;
  left: 0;
  height: 100px;
  background: url("/assets/images/wave-white-top.svg") center top / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.wave-top-grey::before {
  background-image: url("/assets/images/wave-grey-top.svg");
}

.home-links {
  position: relative;
  min-height: 575px;
  padding: 130px 3% 70px;
  background-color: #202020;
}

.home-links::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(rgb(0 0 0 / 54%), rgb(0 0 0 / 54%)), url("/assets/images/port_solenzara.jpg");
  background-position: center;
  background-size: cover;
  content: "";
  filter: grayscale(1);
}

.home-cards {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: min(94%, 1260px);
  margin-inline: auto;
}

.home-card {
  position: relative;
  display: flex;
  min-height: 370px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 40px 22px;
  color: #ffffff;
  background-image: linear-gradient(165deg, rgb(46 163 242 / 92%), rgb(37 78 137 / 96%)), var(--card-image);
  background-position: center;
  background-size: cover;
  text-align: center;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.home-card:hover,
.home-card:focus-visible {
  box-shadow: 0 16px 35px rgb(0 0 0 / 24%);
  transform: translateY(-5px);
}

.home-card-content {
  display: flex;
  flex-direction: column;
}

.home-card strong {
  font-size: 31px;
  font-weight: 300;
  line-height: 1.2;
}

.home-card small {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

.plan-section {
  padding: 65px 0 120px;
  text-align: center;
}

.plan-button {
  display: block;
  width: min(100%, 930px);
  padding: 0;
  margin: 0 auto;
  background: transparent;
  border: 0;
  box-shadow: 7px 7px 0 #0c71c3;
  cursor: zoom-in;
}

.plan-button img {
  width: 100%;
}

.typologies-section {
  padding: 115px 0 145px;
  background: #f2f2f2;
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  align-items: stretch;
}

.programme-card {
  min-width: 0;
  padding: 45px 35px;
  color: #ffffff;
  background: linear-gradient(141deg, var(--blue), var(--turquoise));
}

.programme-card h3 {
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 30px;
  text-align: center;
}

.programme-card .surface {
  margin-bottom: 25px;
  font-size: 12px;
  text-align: center;
}

.programme-feature {
  margin-top: 20px;
}

.programme-feature h4 {
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
}

.programme-feature p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.gallery-section {
  min-height: 520px;
  padding: 115px 0 115px;
  background: #ffffff;
}

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

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  background: #ececec;
  border: 0;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.tarifs-section {
  padding: 100px 0 150px;
}

.tarifs-section .container {
  width: min(80%, 1080px);
}

.tarifs-section h2 {
  margin-bottom: 45px;
}

.table-scroll {
  margin: 20px 0 25px;
  overflow-x: auto;
  border: 1px solid #dddddd;
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  color: #444444;
  font-size: 14px;
}

.price-table th,
.price-table td {
  padding: 10px 18px;
  border-bottom: 1px solid #dddddd;
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  background: #d4edf9;
  font-weight: 700;
}

.price-table tbody th {
  width: 225px;
  font-weight: 400;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 20px;
  line-height: 1.25;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button svg {
  width: 24px;
  height: 24px;
}

.button-outline {
  margin-top: 18px;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.button-outline:hover,
.button-outline:focus-visible {
  color: #ffffff;
  background: var(--blue);
}

.button-primary {
  color: #ffffff;
  background: var(--blue);
  border: 2px solid var(--blue);
}

.button-dark {
  color: #ffffff;
  background: var(--deep-blue);
  border: 2px solid var(--deep-blue);
}

.reservation-section {
  padding: 135px 0 110px;
  color: #111111;
  background: linear-gradient(135deg, var(--blue), var(--turquoise));
}

.reservation-section h2 {
  margin-bottom: 25px;
}

.reservation-inner {
  max-width: 900px;
}

.reservation-contact {
  margin-bottom: 35px;
  font-size: 17px;
  text-align: center;
}

.contact-section {
  padding: 105px 0 115px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-details {
  padding-top: 20px;
  font-size: 20px;
}

.contact-details h2,
.contact-form-wrap h2 {
  margin-bottom: 15px;
  font-size: 32px;
}

.contact-details a:hover,
.contact-details a:focus-visible,
.reservation-contact a:hover,
.reservation-contact a:focus-visible {
  color: #0c71c3;
}

.contact-form,
.reservation-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  color: #333333;
  background: #f4f4f4;
}

.reservation-form {
  background: rgb(255 255 255 / 88%);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label,
.reservation-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #222222;
  background: #ffffff;
  border: 1px solid #d7d7d7;
  border-radius: 0;
}

.contact-form textarea,
.reservation-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgb(46 163 242 / 18%);
}

.contact-form .consent,
.reservation-form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 400;
}

.contact-form .consent input,
.reservation-form .consent input {
  flex: 0 0 auto;
  width: 17px;
  min-height: 17px;
  margin-top: 3px;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.legal-content {
  padding-top: 75px;
  padding-bottom: 90px;
}

.legal-content h1 {
  margin-bottom: 35px;
  font-size: 36px;
}

.legal-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 400;
}

.legal-content h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 400;
}

.simple-page {
  min-height: 140px;
  padding: 50px 0;
}

.simple-page h1 {
  font-size: 30px;
}

.message-page {
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.message-page h1 {
  margin-bottom: 20px;
  font-size: 50px;
}

.site-footer {
  color: #ffffff;
  background: var(--dark);
}

.footer-main {
  padding: 70px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.8fr;
  gap: 80px;
  align-items: start;
  width: min(80%, var(--container));
  margin-inline: auto;
}

.footer-brand img {
  width: 300px;
  height: auto;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 400;
}

.site-footer p {
  margin-bottom: 15px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #9ccfff;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social {
  position: relative;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: #ffffff !important;
  background: #4167a9;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.social-instagram {
  background: #4568eb;
}

.social-instagram::before {
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 5px;
  content: "";
}

.social-instagram::after {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  content: "";
}

.social-instagram span {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 3px;
  height: 3px;
  background: #ffffff;
  border-radius: 50%;
}

.footer-bottom {
  padding: 15px 0;
  color: #666666;
  background: #171717;
  font-size: 13px;
}

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 55px 80px;
  background: rgb(0 0 0 / 90%);
}

.lightbox.open {
  display: flex;
}

.lightbox figure {
  display: grid;
  max-width: min(1200px, 90vw);
  max-height: 86vh;
  margin: 0;
  place-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox figcaption {
  padding-top: 10px;
  color: #ffffff;
  font-size: 13px;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 9px;
  color: #ffffff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lightbox-close {
  top: 14px;
  right: 18px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(0.77, 0, 0.175, 1), transform 700ms cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 80px;
  }

  .container,
  .header-inner,
  .footer-grid {
    width: 80%;
  }

  .nav-toggle {
    display: block;
  }

  .site-navigation {
    position: absolute;
    top: var(--header-height);
    right: 10%;
    left: 10%;
    visibility: hidden;
    background: #ffffff;
    border-top: 3px solid var(--blue);
    box-shadow: 0 10px 25px rgb(0 0 0 / 12%);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-navigation.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-navigation ul {
    display: block;
    padding: 5px 0;
  }

  .site-navigation a {
    padding: 12px 18px;
    font-weight: 400;
    line-height: 1.3;
  }

  .residence-grid {
    grid-template-columns: 1fr;
  }

  .home-cards {
    gap: 25px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 14px;
  }

  .container,
  .header-inner,
  .footer-grid {
    width: 86%;
  }

  .brand img {
    width: 122px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .site-navigation {
    right: 7%;
    left: 7%;
  }

  .home-hero {
    height: 250px;
  }

  .home-hero::after,
  .hero::after {
    height: 48px;
  }

  .home-slide {
    padding: 20px 28px 35px;
  }

  .home-slide h1 {
    max-width: 330px;
    font-size: 30px;
  }

  .slider-arrows {
    display: none;
  }

  .page-hero {
    height: 325px;
  }

  .hero-content {
    padding-bottom: 25px;
  }

  .hero-content h1 {
    max-width: 300px;
    font-size: 30px;
  }

  .scroll-down {
    bottom: 25px;
    width: 38px;
    height: 38px;
  }

  .hero-villas {
    height: 260px;
  }

  .hero-contact {
    height: 620px;
    background-position: 37% center;
  }

  .residence-section {
    padding: 55px 0 70px;
  }

  .residence-grid {
    gap: 65px;
  }

  .residence-copy h2,
  .plan-section h2,
  .typologies-section h2,
  .gallery-section h2,
  .tarifs-section h2,
  .reservation-section h2 {
    margin-bottom: 38px;
    font-size: 34px;
  }

  .residence-copy p {
    margin-bottom: 20px;
  }

  .wave-top::before,
  .wave-top-grey::before {
    height: 65px;
  }

  .home-links {
    min-height: 1200px;
    padding: 115px 0 65px;
  }

  .home-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 80%;
  }

  .home-card {
    min-height: 330px;
  }

  .home-card strong {
    font-size: 27px;
  }

  .plan-section {
    padding: 48px 0 95px;
  }

  .plan-button {
    box-shadow: 5px 5px 0 #0c71c3;
  }

  .typologies-section {
    padding: 105px 0 105px;
  }

  .programme-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 78%;
    margin-inline: auto;
  }

  .programme-card {
    min-height: 650px;
    padding: 35px 28px;
  }

  .programme-card h3 {
    font-size: 28px;
  }

  .gallery-section {
    min-height: 520px;
    padding: 105px 0 90px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tarifs-section {
    padding: 75px 0 125px;
  }

  .tarifs-section .container {
    width: 80%;
  }

  .price-table {
    min-width: 820px;
  }

  .price-table th,
  .price-table td {
    padding: 10px 14px;
  }

  .button {
    width: 100%;
    font-size: 18px;
  }

  .reservation-section {
    padding: 120px 0 90px;
  }

  .reservation-contact {
    margin-bottom: 28px;
  }

  .contact-section {
    padding: 75px 0 85px;
  }

  .contact-layout {
    width: 78%;
  }

  .contact-details {
    font-size: 20px;
    text-align: center;
  }

  .contact-form-wrap h2 {
    text-align: center;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .reservation-form {
    padding: 24px;
  }

  .legal-content {
    padding-top: 55px;
    padding-bottom: 70px;
  }

  .legal-content h1 {
    font-size: 32px;
  }

  .simple-page {
    min-height: 140px;
    padding: 45px 0;
  }

  .footer-main {
    padding: 55px 0 45px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-brand img {
    width: 290px;
  }

  .footer-bottom {
    padding: 18px 0;
    text-align: center;
  }

  .lightbox {
    padding: 55px 20px;
  }

  .lightbox-prev {
    left: 2px;
  }

  .lightbox-next {
    right: 2px;
  }
}
