.social {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #002049;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  z-index: 4000;
}
.social i {
  margin-left: 8px;
  font-size: 1.3rem;
  color: #fff;
  transition: color 0.2s, transform 0.2s;
}
.social i:hover { transform: scale(1.15); }
.social i.fa-facebook:hover { color: #1877f3; }
.social i.fa-instagram:hover { color: #e44092; }
.social p {
  margin-right: auto;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.social-buttons {
  margin-right: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-buttons button {
  border: none;
  color: #fff;
  padding: 8px 14px;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-shadow: 1px 1px 3px rgb(0, 0, 0);
}
.bott1 {
  background: linear-gradient(90deg, #0b5ea8 0%, #1c7eb3 50%, #0c6291 100%);
}
.bott2 {
  background: linear-gradient(90deg, #ff7a18 0%, #e69742 50%, #ff9444 100%);
}
.bott3 {
  background: linear-gradient(90deg, #a30041 0%, #ad1a46 50%, #790233 100%);
}
.social-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.hero {
  padding-top: 240px;
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
  text-align: center;
  transform: translateY(-28%); 
}
.hero-slider {
  position: absolute;
  inset: 0;
  display: flex;
  width: 600%;
  height: 100%;
  transition: transform 1.9s ease;
  z-index: 0;
}
.slide {
  flex: 0 0 16.6666667%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero h1 {
  margin-bottom: 12px;
  font-size: 3rem;
}
.hero p {
  font-size: 1.4rem;
  margin-bottom: 18px;
  text-transform: capitalize;
}
.hero-buttons {
  display: none;
}
.hero-buttons button {
  border: none;
  color: #fff;
  padding: 14px 28px;
  margin: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 3px rgb(0, 0, 0);
}
.hero-buttons button:hover {transform: translateY(-3px);box-shadow: 0 6px 18px rgba(0,0,0,0.25);}

#home {
  padding: 60px 10%;
  text-align: center;
  justify-content: center;
}
#home h2 {font-size: 2rem;margin-bottom: 40px;color: #023e8a;}
#home p{font-size: 1.3rem;margin: auto;max-width: 760px;padding-bottom: 40px;}

.card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
  justify-items: center;
  justify-content: center;
  align-items: start;
  margin: auto;
}
.card a {
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.card > a > div {
  position: relative;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  margin: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 600px;
}
.card > a > div:hover { transform: scale(1.05); }
.card > a > div::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  transition: background-color 0.5s ease, color 0.5s ease, opacity 0.5s ease;
}
.card > a > div:hover::after {
  background: none;
  color: white;
  pointer-events: none;
}
.ris { background: url("Images/ristocard.jpeg") center/cover no-repeat; }
.cha { background: url("Images/spiaggiacard.jpeg") center/cover no-repeat; }
.bar { background: url("Images/barcard.jpeg") center/cover no-repeat; }
/* MENU MOBILE */
@media (max-width: 768px) {
  
  .social p { display: block; font-size: 0.88rem; text-align: right; margin-left: 8px; }
  .social i { font-size: 1.15rem; margin-left: 6px; }
  .social { gap: 8px; padding: 0 8px; }
  .social-buttons { display: none; }
  .hero{margin-top: 0;}
  .hero h1 { font-size: 2rem; line-height: 1.2; }
  .hero p { font-size: 1.1rem; }
  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
    padding: 0;
  }
  .hero-buttons .bott1,
  .hero-buttons .bott2 {
    flex: 1 1 45%;
    font-size: 14.5px;
    max-width: 182px;
  }
  .hero-buttons .bott3 {
    flex: 1 1 100%;
    font-size: 14.5px;
    max-width: 182px;
  }
}

@media (max-width: 450px){
  .social p{font-size: 11.5px;}
  .card{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));}
}
