/* ============================================================
   home.css  —  Stili esclusivi della home page (index.html)
   Importa common.css PRIMA di questo file nell'HTML.
   ============================================================ */


/* ── 1. TOKEN EXTRA & FIX BODY ──────────────────────────────*/
:root {
  --navy-mid: #1c2a5e;
  --warm:     #f5f0e8;
  --red:      #c0392b;
  --blue:     #1565c0;
}

body {
  padding-top: 0 !important;
  overflow-x: hidden;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0;
}


/* ── 2. HERO ────────────────────────────────────────────────*/
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; }

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(120deg, rgba(18,29,64,.72) 0%, rgba(18,29,64,.4) 50%, rgba(0,0,0,.2) 100%);
}

.hero-content {
  position: relative; z-index: 3; height: 100%;
  display: flex; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
}

.hero-text { max-width: 640px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1.5px; background: var(--gold); }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.08; font-weight: 700;
  color: #fff; margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--gold-light); }

.hero-sub { font-size: 17px; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 40px; max-width: 500px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  padding: 15px 32px; background: var(--gold); color: var(--navy);
  border: none; border-radius: 6px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: all .25s; font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: #b8914c; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,169,110,.4); }

.btn-secondary {
  padding: 15px 32px; background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.6); border-radius: 6px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all .25s; font-family: 'DM Sans', sans-serif;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: rgba(255,255,255,.6); font-size: 11px;
  text-transform: uppercase; letter-spacing: 2px;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-dots { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; gap: 10px; }
.hero-dot  { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: all .3s; }
.hero-dot.active { background: var(--gold); transform: scale(1.4); }

.hero-counter { position: absolute; bottom: 40px; right: 40px; z-index: 4; color: rgba(255,255,255,.6); font-size: 13px; font-weight: 600; font-family: 'Playfair Display', serif; }
.hero-counter span { color: #fff; font-size: 22px; }

.hero-slide-flavia { background-image: url('../WebsiteImages/apartmentsImages/casaFlaviaImages/DSC_6396.webp'); }


/* ── 3. STATS STRIP ─────────────────────────────────────────*/
.stats-strip { background: var(--navy); padding: 0 40px; }
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr));
  border-left: 1px solid rgba(255,255,255,.08);
}
.stat-item { padding: 32px 18px; border-right: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 14px; min-width: 0; }
.stat-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(201,169,110,.15); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon-airport { color: var(--gold-light); }
.stat-num   { font-family: 'Playfair Display', serif; font-size: clamp(24px,2.3vw,30px); font-weight: 700; color: #fff; line-height: 1; white-space: nowrap; }
.stat-label { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; text-transform: uppercase; letter-spacing: .8px; line-height: 1.25; }

@media (max-width: 1100px) { .stats-inner { grid-template-columns: repeat(3,1fr); } .stat-item { padding: 30px 24px; } }
@media (max-width: 860px)  { .stats-inner { grid-template-columns: repeat(2,1fr); } .stats-strip { padding: 0 20px; } }
@media (max-width: 520px)  { .stats-inner { grid-template-columns: 1fr; } }


/* ── 4. SEZIONI GENERICHE ───────────────────────────────────*/
.section        { padding: 60px 20px; }
.section-inner  { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 60px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 24px; height: 1.5px; background: var(--gold); }

.section-title    { font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,44px); font-weight: 700; color: var(--navy); line-height: 1.2; }
.section-title em { font-style: italic; color: var(--gold); }
.section-sub      { font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 560px; margin-top: 14px; }

.eyebrow-gold    { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }


/* ── 5. CARD STRUTTURE ──────────────────────────────────────*/
.props-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.prop-card  { border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--border); box-shadow: 0 6px 32px rgba(18,29,64,.08); transition: all .4s ease; display: flex; flex-direction: column; }
.prop-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(18,29,64,.14); }
.prop-img-wrap { position: relative; height: 280px; overflow: hidden; }
.prop-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.prop-card:hover .prop-img-wrap img { transform: scale(1.06); }
.prop-badge { position: absolute; top: 18px; left: 18px; padding: 6px 14px; border-radius: 30px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.badge-apt  { background: var(--navy); color: #fff; }
.badge-room { background: var(--gold); color: var(--navy); }
.prop-rating { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 30px; font-size: 13px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 5px; }
.prop-rating::before { content: '★'; color: #f4a823; }
.prop-body    { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.prop-name    { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.prop-address { font-size: 13px; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 5px; }
.prop-address::before { content: '📍'; font-size: 13px; }
.prop-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.prop-feat { display: flex; align-items: center; gap: 6px; background: var(--warm); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 13px; color: #444; }
.prop-desc  { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 24px; flex: 1; }
.prop-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.prop-link  { flex: 1; min-width: 140px; padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; transition: all .2s; }
.prop-link-primary       { background: var(--navy); color: #fff; }
.prop-link-primary:hover { background: var(--navy-light); color: #fff; }
.prop-link-ghost         { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.prop-link-ghost:hover   { background: var(--navy); color: #fff; }

@media (max-width: 860px) { .props-grid { grid-template-columns: 1fr; } }


/* ── 6. SEZIONE MAPPA ───────────────────────────────────────*/
.map-section {
  background: var(--navy);
  padding: 60px 20px;        /* il padding laterale garantisce i bordi su tutti i breakpoint */
}

.map-section .section-title   { color: #fff; }
.map-section .section-sub     { color: rgba(255,255,255,.6); }
.map-section .eyebrow         { color: var(--gold); }
.map-section .eyebrow::before { background: var(--gold); }

/* Layout griglia — il section-inner già limita la larghezza,
   la location-guide occupa il 100% di quel contenitore       */
.map-section .location-guide {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: stretch;
  /* NON uscire mai dal padding del section-inner */
  width: 100%;
  box-sizing: border-box;
}

/* Mappa */
.map-section .location-guide #map {
  height: 100%;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}

/* Pannello ristoranti */
.map-section .map-panel {
  background: var(--white);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 12px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
}
.map-section .map-panel-title { font-size: 20px; margin-bottom: 6px; }
.map-section .map-panel-sub   { margin-bottom: 16px; }

.map-section .poi-list {
  flex: 1; display: flex; flex-direction: column; gap: 10px;
}

.map-section .poi-list .poi-card {
  flex: 1; display: flex; flex-direction: column;
  width: auto; box-shadow: none;
}

.map-section .poi-desc   { flex: 1; margin-bottom: 0; }

.map-section .poi-footer {
  display: flex; justify-content: space-between;
  align-items: center; gap: 10px; margin-top: 10px;
}
.map-section .poi-meta    { margin-bottom: 0; }
.map-section .poi-actions { flex-wrap: nowrap; flex-shrink: 0; }

/* Legende */
.map-legend  { display: flex; gap: 28px; margin-top: 22px; justify-content: center; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500; }
.legend-dot  { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; flex-shrink: 0; }
.legend-apt       { background: var(--navy); }
.legend-room      { background: var(--gold); }
.legend-humanitas { background: #d32f2f; }
.legend-forum     { background: #1565c0; }

/* RESPONSIVE MAPPA ──────────────────────────────────────────
   Su mobile la location-guide passa a colonna singola.
   Il padding del .map-section (20px) fa già da bordo laterale:
   NON serve margin negativo, NON serve overflow:hidden extra.  */
@media (max-width: 1100px) {
  .map-section .location-guide {
    grid-template-columns: 1fr;
  }
  .map-section .location-guide #map {
    height: 460px;
    min-height: 460px;
  }
}

@media (max-width: 600px) {
  .map-section {
    padding: 40px 16px;     /* stesso bordo laterale delle altre sezioni mobile */
  }
  .map-section .location-guide #map {
    height: 320px;
    min-height: 320px;
    border-radius: 14px;
  }
  .map-section .map-panel {
    border-radius: 14px;
  }
}


/* ── 7. PERCHÉ NOI ──────────────────────────────────────────*/
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.why-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; transition: all .3s; }
.why-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 20px rgba(18,29,64,.1); }
.why-icon  { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; }
.why-title { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.why-desc  { font-size: 14px; color: #555; line-height: 1.75; }

@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .why-grid  { gap: 16px; }
  .why-card  { padding: 18px; }
  .why-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
  .why-icon  { width: 52px; height: 52px; margin-bottom: 0; flex-shrink: 0; font-size: 22px; }
  .why-title { margin: 0; font-size: 22px; line-height: 1.2; }
  .why-desc  { font-size: 14px; line-height: 1.6; }
}


/* ── 8. TESTIMONIALS ────────────────────────────────────────*/
.testi-section { background: var(--warm); padding: 40px 20px; }
.testi-grid    { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 50px; }
.testi-card    { background: var(--white); border-radius: 16px; padding: 28px; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.testi-stars   { color: #f4a823; font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-text    { font-size: 14px; color: #444; line-height: 1.8; margin-bottom: 18px; font-style: italic; }
.testi-author  { display: flex; align-items: center; gap: 12px; }
.testi-avatar  { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; font-weight: 700; font-family: 'Playfair Display', serif; flex-shrink: 0; }
.testi-name    { font-size: 14px; font-weight: 700; color: var(--navy); }
.testi-meta    { font-size: 12px; color: var(--muted); }
.testi-source  { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 4px; }

@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }


/* ── 9. CTA BANNER ──────────────────────────────────────────*/
.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a2a6e 100%); padding: 40px 20px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -40%; right: -10%; width: 600px; height: 600px; border-radius: 50%; background: rgba(201,169,110,.06); pointer-events: none; }
.cta-banner-content { position: relative; z-index: 1; }
.cta-banner h2      { font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,46px); font-weight: 700; color: #fff; margin-bottom: 14px; line-height: 1.2; }
.cta-banner p       { color: rgba(255,255,255,.7); font-size: 16px; max-width: 520px; margin: 0 auto 36px; line-height: 1.7; }
.cta-btns           { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-banner-em      { font-style: italic; opacity: .85; }
.cta-banner-note    { margin-top: 20px; font-size: 13px !important; opacity: .5; }

/* Annulla il margin negativo che common.css applica su mobile */
@media (max-width: 960px) {
  .map-section {
    margin-left: 0;
    margin-right: 0;
  }
}
