* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
}

h2 {
    font-size: clamp(1rem, 1.2vw, 1.5rem);
}

h3 {
    text-align: center;
    font-size: 1.5vw;
}

text {
    font-size: 1.2vw;
}

body {
    min-height: 100vh;
    background-image: url("images/reggia_caserta_07.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
  }

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    z-index: -1;
}

.header{
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 17.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-image: url('images/Minimalist-Wallpaper-4K-HD-Free-download.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #ffffffd7;
    z-index: -1;
}

.logo{
    transition: 0.3s;
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.logo:hover{
    scale: 0.95;
    transition: 0.3s;
}

.logo img {
    max-height: 500px;
    height: auto;
}

.navbar a{
    position: relative;
    transition: 0.5s;
    font-size: 1.15rem;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    margin-left: 2.5rem;
}

.navbar a::before {
    transition: 0.5s;
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0%;
    height: 2px;
    background: grey;
}

.navbar a:hover::before{
    transition: 0.5s;
    width: 100%;
}

@media (max-width: 1152px) {

    .icons {
        display: flex;
    }

    .navbar {
        margin-left: 5%;
        position: relative;
        top: 100%;
        left: 0;
        width: 100%;
        height: 13rem;
        background: rgba(0,0,0,0.1);
        backdrop-filter: blur(50px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,0.1);
        border-radius: 15px 15px 15px 15px;
    }

    .navbar a {
        display: inline-block;
        font-size: 1.1rem;
        margin: 1.5rem 1.5rem;
        text-align: center;
    }
}

.paragrafo1{
    width: 50%;
    margin: 5% auto;
    text-align: center;
    border-radius: 12px;
}

hr {
    width: 15%;
    margin-left: 42.5%;
    border-color: #000000a8;
}

footer{
    text-align: center;
    background-color: rgba(235, 235, 235, 0.705);
    padding: 2vw;
    background-image: url('');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.elenco{
    flex: 1 1 300px;
    max-width: 75%;
    width: 75%;
    padding: 5vw;
    height: auto;
    margin: 0 auto;
}

li{
    border-radius: 120px;
    font-size: 1.3vw;
    padding: 1vw;
    font-weight: 400;
}

ul{
    list-style-type: none;
    font-weight: 400;
}

span {
    font-weight: 300;
}

.elenco ul li {
    display: flex;
    justify-content: space-between;
    padding: 1.25vw;
    font-size: 1.5vw;
    list-style: none;
}

.elenchi {
    display: flex;
    justify-content: center;
    gap: 3vw;
    flex-wrap: wrap;
    width: 100%;
}

.nomeElenco {
    margin-top: 2.5%;
    flex: 1 1 300px;
    width: 100%;
    text-align: center;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 125%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0.8rem 0;
    z-index: 1000;
    text-align: center;
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    position: relative;
    margin-left: 0 !important;
}

.dropdown-content a:hover::after {
    width: 100%;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 1152px) {
    .navbar a,
    .dropdown .dropbtn {
        margin: 1.5rem auto !important;
        text-align: center;
        display: block;
    }

    .dropdown {
        width: 100%;
        display: block;
        text-align: center;
    }

    .dropdown-content {
        left: 50%;
        transform: translateX(-50%);
    }
}

.dropdown-content a::before {
    display: none !important;
}

.dropdown-content a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 2px;
    width: 0%;
    background: grey;
    transform: translateX(-50%);
    transition: 0.3s;
}

.dropdown-content a:hover::after {
    width: 50%;
}

:root {
  --slider-border-radius: 20px;
}

.slider-container {
  width: 90vw;
  max-width: 900px;
  margin: 4rem auto;
  overflow: hidden;
  border-radius: var(--slider-border-radius); 
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.slides-wrapper {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 9;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dots {
  margin-bottom: 2.5%;
  text-align: center;
  margin-top: 1.5rem;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.dot.active {
  background-color: #717171;
  transform: scale(1.1);
}

label{
    opacity: 0.9;
    font-size: 2rem;
    font-weight: 350;
}

input{
    border-radius: 0.5vw;
    width: 50%;
    height: 2vw;
    border-width: 1vw;
    background-color: rgba(255, 255, 255, 0.233);
    border: 0.1rem solid grey;
    font-family: sans-serif;
    font-size: 1vw;
    padding: 0.5vw;
}

textarea{
    resize: none;
    border-radius: 0.5vw;
    width: 75%;
    height: 12vw;
    border-width: 1vw;
    background-color: rgba(255, 255, 255, 0.233);
    border: 0.1rem solid grey;
    font-family: sans-serif;
    font-size: 1vw;
    padding: 0.5vw;
}

input:focus{
    font-size: 1vw;
}

button {
    transition: 0.5s;
    background-color: #4b4b4b;
    color: white;
    padding: 1rem 0vw;
    margin: 0.1rem 0px;
    border: none;
    cursor: pointer;
    width: 30%;
    border-radius: 3vw;
    font-family: sans-serif;
    font-size: 1rem;
    position: relative;
}

button:hover {
    transition: 0.5s;
    background-color: #adadad;
    color: #000;
}

@media (max-width: 1024px) {
  .header {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 5%;
  }

  .navbar {
    gap: 1rem;
  }

  .slider-container {
    width: 95%;
    margin: 2.5rem auto;
    border-radius: 0.8rem;
  }

  .paragrafo1 {
    width: 80%;
    font-size: 1rem;
  }

  footer {
    padding: 1.8rem 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 5%;
  }

  .logo img {
    height: 50px;
  }

  .navbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .navbar a {
    font-size: 0.95rem;
  }

  .slider-container {
    width: 95vw;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }

  .slide {
    aspect-ratio: 4 / 3;
  }

  .paragrafo1 {
    width: 90%;
    font-size: 0.95rem;
  }

  footer {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }

  .header {
    padding: 0.8rem 4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .logo img {
    height: 45px;
  }

  .navbar {
    width: 100%;
    padding: 0.8rem 0;
    gap: 0.5rem;
    border-radius: 12px;
  }

  .navbar a {
    font-size: 0.95rem;
    width: 90%;
  }

  .slider-container {
    width: 98%;
    border-radius: 10px;
    margin: 1.5rem auto;
  }

  .slide {
    aspect-ratio: 3 / 2;
  }

  .paragrafo1 {
    width: 95%;
    margin: 2rem auto;
    font-size: 0.9rem;
  }


  footer {
    padding: 1.5rem 0.5rem;
    font-size: 0.85rem;
  }
}

.map-container {
  width: 75%;
  max-width: 900px;
  margin: 3rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  position: relative;
  padding-top: 30%;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


