:root {
  --navy: #121d40;
  --navy-light: #2a3453;
  --navy-mid: #1c2a5e;
  --cream: #faf8f4;
  --warm: #f5f0e8;
  --gold: #c9a96e;
  --gold-light: #e8d5a3;
  --gold-dim: #a07840;
  --white: #fff;
  --text: #2c2c2c;
  --muted: #7a7a8a;
  --border: #e5e2db;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* HERO */
.hero {
  margin-top: 66px;
  position: relative;
  height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a2a6e 100%);
}

.hero-img {
  position: absolute;
  inset: 0;
  background-image: url('../WebsiteImages/apartmentsImages/casaFlaviaImages/DSC_6396.webp');
  background-size: cover;
  background-position: center;
  opacity: .22;
}

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

.hero-eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hbadge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

@media(max-width:760px) {
  .hero {
    height: auto;
  }

  .hero-content {
    padding: 30px 20px;
    align-items: flex-start;
    padding-top: 50px;
  }
}

/* RATING STRIP */
.rating-strip {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.rating-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  height: 72px;
}

.rating-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rating-num {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.rating-stars {
  color: #f4a823;
  font-size: 13px;
  letter-spacing: 1px;
}

.rating-label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.rating-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
}

.dist-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dist-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}

@media(max-width:760px) {
  .rating-inner {
    height: auto;
    padding: 16px 20px;
  }

  .dist-chips {
    display: none;
  }
}

/* SECTIONS */
.section {
  padding: 60px 20px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dim);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--gold);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.section-title em {
  font-style: italic;
  color: var(--gold-dim);
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 600px;
  margin-top: 10px;
}

.section-header {
  margin-bottom: 52px;
}

@media(max-width:760px) {
  .section {
    padding: 56px 20px;
  }
}

/* DESCRIZIONE */
.desc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 52px;
  align-items: start;
}

.desc-body {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.desc-body p {
  margin-bottom: 18px;
}

.desc-body p:last-child {
  margin-bottom: 0;
}

.desc-body strong {
  color: var(--navy);
}

.desc-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.highlight-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201, 169, 110, .15);
}

.hl-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hl-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.hl-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

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

/* APARTMENTS CARDS */
.apt-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.apt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 380px 1fr;
  box-shadow: 0 4px 24px rgba(18, 29, 64, .07);
  transition: all .35s;
}

.apt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(18, 29, 64, .12);
  border-color: var(--gold);
}

.apt-img {
  position: relative;
  overflow: hidden;
}

.apt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}

.apt-card:hover .apt-img img {
  transform: scale(1.05);
}

.apt-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: #fff;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.apt-rating {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(4px);
  color: var(--navy);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.apt-rating::before {
  content: '★';
  color: #f4a823;
}

.apt-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

.apt-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.apt-address {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.apt-address::before {
  content: '📍';
}

.maps-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.maps-link:hover {
  color: var(--gold);
}

.apt-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.afeat {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  color: #444;
}

.apt-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 22px;
  flex: 1;
}

.apt-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.reviews-strip {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.review-quote {
  font-size: 13px;
  color: #555;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 6px;
}

.review-author {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.btn-navy {
  padding: 11px 22px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-navy:hover {
  background: var(--navy-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 11px 22px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}

.btn-wa {
  padding: 11px 22px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-wa:hover {
  background: #1ea854;
  color: #fff;
  transform: translateY(-2px);
}

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

  .apt-img {
    height: 220px;
  }

  .apt-body {
    padding: 20px;
  }
}

/* COMPARE TABLE */
.compare-section {
  background: var(--warm);
  padding: 60px 20px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(18, 29, 64, .08);
}

.compare-table th {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 16px 20px;
  text-align: left;
}

.compare-table th:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
}

.compare-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: #444;
  vertical-align: middle;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: var(--cream);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  font-size: 13px;
}

.ct-check {
  color: #25a244;
  font-size: 16px;
  font-weight: 700;
}

.ct-no {
  color: #ccc;
  font-size: 16px;
}

@media(max-width:760px) {
  .compare-section {
    padding: 56px 20px;
  }

  .compare-table th, .compare-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* SERVIZI */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  transition: all .25s;
  min-width: 0;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(201, 169, 110, .15);
}

.sc-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.sc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.sc-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media(max-width:860px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* RECENSIONI */
.reviews-section {
  background: var(--navy);
  padding: 40px 20px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.review-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 26px;
}

.rv-stars {
  color: #f4a823;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.rv-text {
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.8;
  margin-bottom: 18px;
  font-style: italic;
}

.rv-author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.rv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}

.rv-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.rv-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
}

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

  .reviews-section {
    padding: 56px 20px;
  }
}

/* FAQ */
.faq-section {
  background: var(--cream);
  padding: 40px 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  align-items: start;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: background .2s;
}

.faq-q:hover {
  background: var(--cream);
}

.faq-q .faq-arrow {
  font-size: 18px;
  color: var(--gold-dim);
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 22px 18px;
}

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

  .faq-section {
    padding: 56px 20px;
  }
}

/* CTA */
.cta-strip {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  padding: 56px 20px;
  text-align: center;
}

.cta-strip h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.cta-strip p {
  font-size: 15px;
  color: rgba(18, 29, 64, .75);
  max-width: 500px;
  margin: 0 auto 30px;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-navy-solid {
  padding: 14px 28px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-navy-solid:hover {
  background: var(--navy-light);
  color: #fff;
}

.btn-white {
  padding: 14px 28px;
  background: #fff;
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-white:hover {
  background: var(--cream);
  color: var(--navy);
}

@media(max-width:760px) {
  .cta-strip {
    padding: 40px 20px;
  }
}

/* ===== LEGGI TUTTO — solo mobile ===== */
.read-more {
  display: none;
}

/* nascosto su desktop */

@media (max-width: 768px) {
  .desc-text {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height .5s ease;
  }

  .desc-text.open {
    max-height: 2000px;
  }

  .desc-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, #faf8f4);
    pointer-events: none;
    transition: opacity .3s;
  }

  .desc-text.open::after {
    opacity: 0;
  }

  .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #121d40;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.apt-body {
  display: flex;
  flex-direction: column;
}

.apt-desc {
  flex: 1;
}
