/* CSS */

/* Variabili CSS */
:root { 
    --colore-sfondo: #f5f5f5;

    /* palette colori */
    --tortora-chiaro: #D1BFA7;
    --verde-salvia: #A7C4A0;
    --legno-chiaro: #F5F2E7;
    --azzurro-polvere: #A4C3D2;

    /* font utilizzati */
    --font-primario: "Inter", serif;
    --font-secondario: "Newsreader", serif;
}

/* Stile generico */
* {
    margin: 0;
    padding: 0;
    font-family: var(--font-primario);
    text-decoration: none; 
    color: black
}

html{
    scroll-behavior: smooth;
}

body{
    overflow-x: hidden;
}

article {
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 8%;
    text-align: justify;
}

/* pulsante prenotazione */
.BookingButton {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--tortora-chiaro);
    padding: 10px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    z-index: 2;
}

.BookingButton img{
    max-height: 40px;
    margin: 0 10px;
}

.BookingButton:hover{
    transform: scale(1.1);
}

/* pulsante prenotazione 2 */
.BookingButton2 {
    background-color: var(--tortora-chiaro);
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    z-index: 2;
    
}

.BookingButton2 i{
    margin: 0 20px;
    font-size: 40px;
}

.BookingButton2:hover{
    transform: scale(1.1);
}

.title {
    font-family: var(--font-secondario);
    font-size: 350%;
}

/* Top button */
.top-button {
    /*display: none;*/
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--verde-salvia);
    color: white;
    padding: 10px 15px;
    border-radius: 15px;
    cursor: pointer;
    z-index: 2;
}

.top-button:hover {
    background-color: #97b390;
}

/* Stile body */
body {
    background-color: var(--colore-sfondo);
}

/* Stile nav */
nav {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    border-radius: 15px;
    background-color: rgb(245, 245, 245, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

nav img{
    max-height: 75px;
    margin-right: 50%;
}

nav ul{
    list-style-type: none;
    display: flex;
    margin-left: 10%;
}

nav li{
    text-align: center;
    text-decoration: none;
    text-transform: capitalize;
    color: rgb(29, 29, 29);
    font-size: 20px;
    font-weight: 600;
    padding: 0 10px;
    margin: 0 30px;
    position: relative;
}

nav li:hover{
    color: black;
}

nav li::before{
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--tortora-chiaro);
    transition: all .5s;
}

nav li:hover::before{
    width: 100%;
}

/*hamburger menu*/
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger:focus-visible,
.language-toggle:focus-visible {
    outline: 2px solid var(--tortora-chiaro);
    outline-offset: 3px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/*drop down style*/
.language-dropdown {
  position: relative;
  display: inline-block;
  font-family: sans-serif;
}

.language-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease-in-out;
}

.language-toggle:hover {
  background-color: #f0f0f0;
}

.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
}

.arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.language-dropdown:hover .arrow {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  flex-direction: column;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  margin-top: 4px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 10;
  min-width: 50px;
}

.language-dropdown:hover .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu li {
  text-align: center;
  padding: 4px 12px;
}

.language-menu li a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.language-menu li a:hover {
  transform: scale(1.1);
}


/* find More */
.findMore {
    text-align: center;
    padding: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    overflow: hidden;
    position: relative;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("../roomImage/20260710_172126 (1).JPG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.findMore video{
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    margin-bottom: 10px;
    z-index: -1;
}

.findMore h2{
    font-size: 700%;
    margin-bottom: 5%;
    color: white;
}

.findMore p{
    font-size: 150%;
    background-color: white;
    border-radius: 5px;
    padding-right: 50px;
    padding-left: 50px;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-bottom: 5%;
}

.findMore .mouse{
    width: 30px;
    height: 50px;
    border: 3px solid white;
    border-radius: 20px;
    display: flex;
}

.findMore .mouse-wheel{
    display: block;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    margin: auto;
    animation: move-wheel 1.5s linear infinite;
}

@keyframes move-wheel {
    0% {
        opacity: 0;
        transform: translateY(-1rem);
    }
    100% {
        opacity: 1;
        transform: translateY(1rem);
    }
}

/* chi siamo */
.chiSiamo {
    display: flex;
    margin-right: 0;
    margin-left: 0;
    margin-top: 0;
    align-items: center;
}

.chiSiamo img{
    object-fit: cover;
    height: 900px;
    max-width: 50%;
    /*max-height: 50%;*/
    margin-right: 0;
    margin-left: 5%;
}

.chiSiamo div{
    margin-left: 20%;
}

.chiSiamo h2{
    margin-bottom: 5vh
}

.chiSiamo a{
    margin: 15px;
    margin-top: 5vh;
}

/* spiaggia */
.spiaggia {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), url(../images/spiaggia.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    padding: 10% 20%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
}

.spiaggia h2{
    color: white;
    margin-left: 20vh;
    margin-bottom: 5vh;
}

.spiaggia p{
    color: white;
    margin-left: 20vh;
}

.spiaggia img{
    border-radius: 15px;
    max-height: 450px;
}

/* servizi */
.servizi {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/costiera.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin-left: 0;
    margin-right: 0;
    padding: 10% 20%;
    text-align: center;
}

.servizi h2{
    color: white;
}

.servizi p{    
    color: white;
}

.servizi i{
    color: var(--verde-salvia);
    font-size: 10vh;
}

.elencoServizi{
    justify-content: center;    
    display: flex;
    flex-wrap: wrap;
    line-height: 1.5;
    padding:40px 0;
}

.servizio{
    text-align: center;
    background-color: var(--legno-chiaro);
    border-radius: 15px;
    padding: 2vh;
    margin: 2vh;
    max-width: 23vh;
}

.servizio p{
    color: black
}

/* Stanze */
.stanze {
    text-align: center;
}

.stanze-intro {
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.stanze h2 {
    margin-bottom: 1rem;
}

.stanze p {
    margin-bottom: 0;
    line-height: 1.7;
}

.stanze-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.stanza-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stanza-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.stanza-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.stanza-card-content {
    padding: 1.1rem 1rem 1.3rem;
}

.stanza-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    color: var(--tortora-chiaro);
}

.stanza-card p {
    font-size: 0.95rem;
    color: #5a5a5a;
}

@media (max-width: 1024px) {
    .stanze-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .stanze-grid {
        grid-template-columns: 1fr;
    }

    .stanza-card img {
        height: 200px;
    }
}

/* Galleria */
.galleria h2{
    text-align: center;
    margin: 5vh;
}

.roomImge{
    object-fit: cover;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
}

.grid-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.grid-container img:hover {
    transform: scale(1.01);
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .grid-container > div {
        grid-column: span 2 !important;
        grid-row: auto !important;
    }
}

/* Grid Items */
.div1 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
}

.div2 {
    grid-column-start: 3;
    grid-row: span 2 / span 2;
}

.div3 {
    grid-column: span 3 / span 3;
    grid-row: span 2 / span 2;
    grid-column-start: 1;
    grid-row-start: 3;
}

.div4 {
    grid-column: span 2 / span 2;
    grid-row: span 4 / span 4;
    grid-column-start: 4;
    grid-row-start: 1;
}

.div7 {
    grid-column: span 3 / span 3;
    grid-row: span 2 / span 2;
    grid-column-start: 3;
    grid-row-start: 5;
}

.div8 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-column-start: 1;
    grid-row-start: 5;
}
/* Video */
.video{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Dove Siamo */
.doveSiamo{
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../images/cittadellaGiudiziaria.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 8vh 10vw;
    margin-left: 0;
    margin-right: 0;
}

.doveSiamo h2{
    color:white;
    text-align: center;
    margin-bottom: 5vh;
}

.doveSiamo h1{
    color: white;
}

.doveSiamo h2{
    color: white;
}

.doveSiamo h3{
    color: white;
}

.doveSiamo span{
    color: white;
}

.counters{
    padding: 3em 2em;
    color: white;
    text-align: center;
}

.counters > div{
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4em 2em;
}

.counter{
    position: relative;
}

.counter h1{
    font-size: 3em;
    margin-bottom: 0.5em;
}

.counter:not(:last-child)::before {
    content: '';
    position:absolute;
    background: #fff;
    width: 2px;
    height: 3em;
    top: 50%;
    transform: translateY(-50%);
    right: -1em;
}

@media screen and (max-width: 900px) and (min-width: 501px) {
    .counters > div{
        grid-template-columns: 1fr 1fr;
    }

    .counter:nth-child(2)::before {
        display: none;
    }
}

@media screen and (max-width: 500px) {
    .counters > div{
        grid-template-columns: 1fr;
        row-gap: 5em;
    }

    .counter:not(:last-child)::before{
        width: 90%;
        height: 2px;
        top: initial;
        right: initial;
        bottom: -3em;
        left: 50%;
        transform: translateX(-50%);
    }
    
}

/* come Raggiungerci */
.comeRaggiungerci {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/golfoDiSalerno.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5vw;
    flex-wrap: wrap; 
    padding: 8vh 10vw;
    margin-left: 0;
    margin-right: 0;
}

.comeRaggiungerci h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 4vh;
    color: white;
}

.comeRaggiungerci p {
    flex: 1 1 40%;
    color: white;
    font-size: 1rem;
    line-height: 1.6;
}

.comeRaggiungerci iframe {
    flex: 1 1 50%;
    max-width: 800px;
    height: 400px;
    border-radius: 15px;
    border: none;
}

/* punti di interesse */
.puntiDiInteresse h2{
    text-align: center;
    margin-bottom: 5vh;
}

.carousel-wrapper {
    max-width: 900px;
    margin: 1rem auto;
    padding: 1rem;
    font-family: 'Helvetica Neue', sans-serif;
  }

  .carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
  }

  .carousel-track {
    display: flex;
    transition: transform 0.6s ease;
  }

  .carousel-slide {
    min-width: 100%;
    object-fit: cover;
    height: 400px;
  }

  .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 1);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
    z-index: 10;
  }

  .carousel-button:hover {
    background: rgba(255, 255, 255, 1);
  }

  .carousel-button.prev {
    left: 1rem;
  }

  .carousel-button.next {
    right: 1rem;
  }

  @media (max-width: 600px) {
    .carousel-slide {
      height: 250px;
    }
    .carousel-button {
      font-size: 1.2rem;
      padding: 0.5rem 0.75rem;
    }
  }

/* contattaci */
.contattaci h2{
    text-align: center;
}

.contattaci p{
    text-align: center;
    margin-bottom: 5vh;
}

.contattaci {
    justify-content: center;
}

.contattaci div{
    display: flex;
    justify-content: center; 
    align-items: center;
}

/* Stile Form */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

form[name="modulo"] {
    background-color: #fff;
    border: 2px solid var(--colore-primario);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

form[name="modulo"] input[type="email"],
form[name="modulo"] input[type="text"],
form[name="modulo"] textarea {
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: var(--font-primario);
    width: 100%;
    transition: border-color 0.3s ease;
}

form[name="modulo"] input:focus,
form[name="modulo"] textarea:focus {
    border-color: var(--colore-primario);
    outline: none;
}

form[name="modulo"] textarea {
    resize: vertical;
}

form[name="modulo"] input[type="submit"] {
    background-color: var(--tortora-chiaro);
    color: #fff;
    font-family: var(--font-primario);
    font-size: 1.1rem;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form[name="modulo"] input[type="submit"]:hover {
    background-color: #8fb3c4;
}

/* footer */
.site-footer{
  --footer-ink: #1d1d1d;
  --footer-ink-soft: rgba(29, 29, 29, 0.65);
  --footer-line: rgba(29, 29, 29, 0.2);
  background-color: var(--tortora-chiaro);
  color: var(--footer-ink);
  border-radius: 15px 15px 0 0;
  margin-top: 12vh; /* spazio sopra il footer */
}
 
/* ---------- Intestazione: titolo + filetti laterali ---------- */
.footer-crest{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 3.5rem 12% 0;
}
 
.footer-crest::before,
.footer-crest::after{
  content: "";
  height: 1px;
  background: var(--footer-line);
}
 
.footer-wordmark{
  font-family: var(--font-secondario);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--footer-ink);
  text-align: center;
}
 
/* ---------- Corpo principale ---------- */
.footer-main{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 4rem;
  padding: 3rem 12% 3.5rem;
}
 
.footer-col h3{
  margin-bottom: 1.2rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--footer-ink-soft);
}
 
.footer-col ul{
  list-style: none;
}
 
.footer-col li{
  margin-bottom: .9rem;
  font-size: .95rem;
  line-height: 1.5;
}
 
.footer-col address{
  font-style: normal;
  color: var(--footer-ink-soft);
  line-height: 1.6;
}
 
.footer-cin{
  margin-top: .8rem;
  font-size: .8rem;
  color: var(--footer-ink-soft);
  letter-spacing: .05em;
}
 
/* ---------- Colonna brand ---------- */
.footer-brand .logoFooter{
  max-width: 150px;
  height: auto;
  display: block;
}
 
.footer-tagline{
  margin: 1rem 0 1.5rem;
  font-family: var(--font-secondario);
  font-size: 1.05rem;
  color: var(--footer-ink-soft);
  max-width: 28ch;
  line-height: 1.6;
}
 
.collegamentiSocial{
  display: flex;
  gap: 1rem;
}
 
.collegamentoSocial img{
  width: 34px;
  height: 34px;
  display: block;
  transition: transform .25s ease;
}
 
.collegamentoSocial:hover img{
  transform: translateY(-4px) scale(1.1);
}
 
/* ---------- Link: sottolineatura animata (come la nav) ---------- */
.site-footer a{
  color: var(--footer-ink);
}
 
.footer-link{
  position: relative;
}
 
.footer-link::before{
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--footer-ink);
  transition: all .5s;
}
 
.footer-link:hover::before{
  width: 100%;
}
 
/* ---------- Pulsante "Prenota" (come .BookingButton) ---------- */
.footer-cta{
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 12px 24px;
  background-color: var(--legno-chiaro);
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .3s, box-shadow .3s;
}
 
.footer-cta:hover{
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
 
/* ---------- Barra finale: crediti ---------- */
.footer-bottom{
  border-top: 1px solid var(--footer-line);
  padding: 1.4rem 12% 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 2rem;
  font-size: .78rem;
}
 
.footer-bottom p{
  color: var(--footer-ink-soft);
}
 
.footer-bottom a{
  color: var(--footer-ink-soft);
  text-decoration: underline;
}
 
.footer-bottom a:hover{
  color: var(--footer-ink);
}
 
.footer-credits span + span::before{
  content: "·";
  margin: 0 .5em;
}
 
/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .footer-crest{ padding: 3rem 8% 0; }
 
  .footer-main{
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 8% 3rem;
  }
 
  .footer-bottom{
    flex-direction: column;
    padding: 1.4rem 8% 2rem;
  }
}