/* ====== CASA SIGNORILE | STILE COSTIERA CHIC ====== */

:root {
  --azzurro: #6bb5d9;
  --blu-profondo: #1e3d59;
  --oro: #d4b483;
  --pergamena: #faf6f0;
  --grigio: #7a7a7a;
  --bianco: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--blu-profondo);
  background-color: var(--pergamena);
  line-height: 1.6;
}

/* ====== NAVBAR ====== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: var(--azzurro);
  color: var(--bianco);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bianco);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.menu {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.menu a {
  color: var(--bianco);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover,
.menu a.active {
  color: var(--oro);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.lang-switch {
  background: var(--oro);
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--blu-profondo);
  font-weight: bold;
  text-decoration: none;
}

.clock {
  font-size: 0.9rem;
  color: var(--bianco);
  font-family: "Courier New", monospace;
}

/* ====== HERO SECTION (RIDIMENSIONATO + QUALITÀ MIGLIORE) ====== */
.hero {
  position: relative;
  width: 100%;
  padding: 3.5rem 1.5rem 3.8rem;
  background: linear-gradient(
    135deg,
    #051622 0%,
    #0b3a4e 40%,
    #e9e2d6 100%
  );
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

/* Contenuto centrato e “da brand” */
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

/* Titolo principale – versione oro elegante */
.hero-inner h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;

  /* testo che vira verso oro */
  background: linear-gradient(
    90deg,
    #fdf8f1,
    #f2d493,
    #fdf8f1
  );
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  animation: hero-gold 7s ease-in-out infinite;
}

/* Linea dorata sotto il titolo (tocco professionale) */
.hero-inner h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 4.5rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6e4b0, #d9b25a);
  opacity: 0.9;
}

/* Animazione morbida del gradiente oro */
@keyframes hero-gold {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Sottotitolo */
.hero-subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.6;
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(249, 240, 222, 0.9);
}

/* Bottone nell’hero: leggermente più elegante */
.hero-cta {
  margin-top: 0.6rem;
  padding: 0.55rem 1.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

/* Fade + salita morbida */
@keyframes costieraFadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Bagliore + cambiamento gradiente */
@keyframes costieraGlow {
  0% { background-position: 0%; text-shadow: 0 0 12px rgba(255,255,255,0.1); }
  50% { background-position: 100%; text-shadow: 0 0 18px rgba(255,255,255,0.25); }
  100% { background-position: 0%; text-shadow: 0 0 12px rgba(255,255,255,0.1); }
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ============================
   PREMIUM STYLE — BOUTIQUE HOTEL
   ============================ */

/* Smooth titles */
h1, h2, h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.5px;
  color: #134d45; /* verde elegante */
}

/* Lead text */
.lead {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 1rem;
}

/* Hero */
.hero-img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  filter: brightness(0.75);
}

.hero-overlay h1 {
  font-size: 3rem;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.hero-overlay p {
  font-size: 1.2rem;
  max-width: 600px;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Buttons */
.btn-primary {
  background: #136f63;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #0f5b52;
}

.btn-outline {
  border: 2px solid #136f63;
  color: #136f63;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #136f63;
  color: #fff;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s forwards ease-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ====== GRID & CARDS ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background-color: var(--bianco);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card-content h3 {
  color: var(--blu-profondo);
  margin-bottom: 0.5rem;
}

.amenities {
  font-size: 0.9rem;
  color: var(--grigio);
}

/* CARD APPARTAMENTI IN HOME */

.card-apt-preview {
  padding: 0;
  overflow: hidden;
}

.card-apt-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.card-apt-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* Effetto hover tipo hotel di lusso */
.card-apt-preview:hover .card-apt-img {
  transform: scale(1.06);
}

.card-apt-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #f5f5f5;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Contenuto card dopo l'immagine */
.card-apt-preview .card-content {
  padding: 1.1rem 1.3rem 1.3rem;
}

.card-apt-preview h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.4rem;
}

.card-apt-preview .subtitle {
  font-weight: 500;
  color: #555;
  margin-bottom: 0.6rem;
}

/* ===== SLIDER APPARTAMENTI ===== */

/* ================================
   SLIDER APPARTAMENTI HD – COMPLETO
   ================================ */

.apt-slider {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-radius: 12px;
}

.apt-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.apt-slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.apt-prev, .apt-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

.apt-prev { left: 10px; }
.apt-next { right: 10px; }

.apt-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.apt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}

.apt-dot.active {
  background: #ffffff;
}

/* ANIMAZIONE FADE-IN PER I TESTI */
.fade-in {
  opacity: 0;
  animation: fadeInText 1.2s ease forwards;
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media(max-width: 768px){
  .apt-slider {
    height: 26vh;
    max-height: 220px;
    min-height: 160px;
  }
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  margin: 0.3rem;
}

.btn-primary {
  background-color: var(--azzurro);
  color: var(--bianco);
}

.btn-primary:hover {
  background-color: var(--blu-profondo);
}

.btn-outline {
  border: 2px solid var(--azzurro);
  color: var(--azzurro);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--azzurro);
  color: var(--bianco);
}

/* ====== CONTACT & MAP ====== */
.contact-info {
  background-color: var(--bianco);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 12px;
  margin-top: 1rem;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

/* ====== FOOTER ====== */
footer {
  background-color: var(--blu-profondo);
  color: var(--bianco);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

footer a {
  color: var(--oro);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ====== PAGE HERO UNIVERSALE ====== */
.page-hero {
  position: relative;
  width: 100%;
  height: 260px;
  background: url('../img/logo_casa_signorile_hd.png') center/contain no-repeat;
  background-color: rgba(255, 255, 255, 0.4);
  background-blend-mode: lighten;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 30px;
}

.page-hero h1 {
  font-size: 2.6rem;
  color: var(--blu-profondo);
  background: rgba(255,255,255,0.6);
  padding: 8px 20px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  animation: fadeDown 1.2s ease;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    padding: 2.4rem 1.2rem 2.7rem;
  }

  .hero-inner {
    gap: 0.7rem;
  }

  .hero-inner h1 {
    font-size: 1.4rem;
    letter-spacing: 0.14em;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-cta {
    font-size: 0.9rem;
    padding: 0.45rem 1.6rem;
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero {
    height: 22vh;
    max-height: 220px;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
  }

  .navbar {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ================================
   PAGINA PRIVACY
================================ */

.privacy-page {
  padding: 120px 0 80px;
  background: #f7f7f7;
}

.privacy-page .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  line-height: 1.7;
  font-size: 0.98rem; /* base per il testo */
}

.privacy-card h1 {
  font-size: 12px;
  margin-bottom: 0.5rem;
}

.privacy-intro {
  margin-bottom: 2rem;
  font-style: italic;
  color: #666666;
  font-size: 12px;
}

.privacy-card h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 12px;
}

.privacy-card h3 {
  margin-top: 1.3rem;
  margin-bottom: 0.3rem;
  font-size: 9px;
}

.privacy-card p {
  margin-bottom: 0.9rem;
  font-size: 9px;
}

.privacy-card ul,
.privacy-card ol {
  margin: 0 0 1rem 1.5rem;
  font-size: 9px;
}

.privacy-card li {
  margin-bottom: 0.4rem;
  font-size: 9px;
}

/* Responsive: su schermi piccoli riduciamo un po' i padding */
@media (max-width: 768px) {
  .privacy-card {
    padding: 24px 18px;
    font-size: 0.95rem;
  }

  .privacy-card h1 {
    font-size: 1.6rem;
  }

  .privacy-card h2 {
    font-size: 1.2rem;
  }
}