/* ==============================
   PAGINA TIPOLOGIA B
   Colle degli Ulivi Frascati
================================= */

/* Hero */
.villa-detail-hero {
  padding: 155px 0 95px;
  background:
    radial-gradient(circle at left top, rgba(79, 92, 64, 0.14), transparent 34%),
    linear-gradient(135deg, #f8f4eb 0%, #fffaf1 48%, #edf2e8 100%);
}

.villa-detail-hero-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 64px;
  align-items: center;
}

.villa-detail-hero-copy h1 {
    max-width: 700px;
    font-size: clamp(42px, 5vw, 62px);
}

.villa-detail-hero-copy p {
  max-width: 620px;
  margin-top: 24px;
  font-size: 17px;
}

.villa-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.villa-detail-hero-media {
  position: relative;
  height: 620px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.villa-detail-hero-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: min(360px, calc(100% - 56px));
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: rgba(79, 92, 64, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(38, 48, 31, 0.28);
}

.villa-detail-hero-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.villa-detail-hero-card strong {
  display: block;
  color: #fff;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 1.05;
  font-weight: 400;
}

.villa-detail-hero-card p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

/* Key cards */
.villa-key-section {
  padding: 80px 0;
  background: var(--cream-light);
}

.villa-key-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.villa-key-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(38, 48, 31, 0.06);
}

.villa-key-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.villa-key-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-family: var(--font-title);
  font-size: 29px;
  line-height: 1.05;
  font-weight: 400;
}

.villa-key-card p {
  font-size: 14px;
}

/* Intro */
.villa-intro-section {
  padding: 90px 0;
  background:
    radial-gradient(circle at right top, rgba(79, 92, 64, 0.10), transparent 30%),
    var(--green-pale);
}

.villa-intro-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--cream-light);
  box-shadow: 0 22px 70px rgba(38, 48, 31, 0.08);
}

.villa-intro-title h2 {
  max-width: 640px;
  font-size: clamp(34px, 4vw, 48px);
}

.villa-intro-text p {
  margin-bottom: 18px;
  font-size: 17px;
}

/* Titles */
.villa-section-title {
  max-width: 860px;
  margin-bottom: 50px;
}

.villa-section-title.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.villa-section-title.center .eyebrow {
  justify-content: center;
}

.villa-section-title.center .eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.villa-section-title h2 {
  font-size: clamp(34px, 4vw, 50px);
}

.villa-section-title p {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 17px;
}

/* Comprensorio */
.villa-complex-section {
  padding: 105px 0;
  background:
    radial-gradient(circle at right top, rgba(79, 92, 64, 0.12), transparent 32%),
    var(--green-pale);
}

.villa-complex-box {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: stretch;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--cream-light);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 34px;
}

.villa-complex-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.villa-complex-content h2 {
  max-width: 680px;
  font-size: clamp(34px, 4vw, 44px);
}

.villa-complex-content p {
  margin-top: 20px;
  font-size: 17px;
}

.villa-complex-highlight {
  margin-top: 30px;
  padding: 20px;
  border-radius: 22px;
  background: var(--green-soft);
  border: 1px solid rgba(79, 92, 64, 0.12);
}

.villa-complex-highlight strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 400;
}

.villa-complex-highlight span {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.villa-complex-media {
  min-height: 600px;
  border-radius: 32px;
  background: #f6f3ea;
}

.villa-complex-media img {
  object-fit: cover;
}

/* Card comprensorio */
.villa-complex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}

.villa-complex-card {
  min-height: 280px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--cream-light);
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(38, 48, 31, 0.06);
  transition: 0.35s ease;
}

.villa-complex-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 80px rgba(38, 48, 31, 0.10);
}

.villa-complex-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.villa-complex-card h3 {
  margin-bottom: 14px;
  font-size: 28px;
}

.villa-complex-card p {
  font-size: 14px;
}

/* Specs */
.villa-specs-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--green-dark);
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.villa-specs-title .eyebrow {
  color: var(--green-soft);
}

.villa-specs-title h2 {
  color: #fff;
  max-width: 620px;
  font-size: clamp(34px, 4vw, 46px);
}

.villa-specs-list {
  display: grid;
  gap: 14px;
}

.villa-spec-item {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.villa-spec-item strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 15px;
}

.villa-spec-item span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

/* Finiture */
.villa-finishes-section {
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--cream-light);
  box-shadow: 0 22px 70px rgba(38, 48, 31, 0.08);
  border: 1px solid var(--border);
}

.villa-finishes-header {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 40px;
}

.villa-finishes-header h2 {
  font-size: clamp(34px, 4vw, 46px);
}

.villa-finishes-header p {
  font-size: 17px;
}

.villa-finishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.villa-finish-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--green-pale);
  border: 1px solid var(--border);
  transition: 0.35s ease;
}

.villa-finish-card:hover {
  transform: translateY(-5px);
  background: var(--green-soft);
}

.villa-finish-card span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.villa-finish-card h3 {
  margin-bottom: 12px;
  font-size: 27px;
}

.villa-finish-card p {
  font-size: 14px;
}

/* Layout */
.villa-layout-section {
  padding: 105px 0;
  background:
    linear-gradient(180deg, var(--sand-light) 0%, var(--cream) 100%);
}

.villa-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.villa-layout-card {
  min-height: 410px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--cream-light);
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(38, 48, 31, 0.06);
  transition: 0.35s ease;
}

.villa-layout-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 80px rgba(38, 48, 31, 0.10);
}

.villa-layout-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.villa-layout-card h3 {
  margin-bottom: 14px;
  font-size: 28px;
}

.villa-layout-card p {
  margin-bottom: 18px;
  font-size: 14px;
}

.villa-layout-card ul {
  display: grid;
  gap: 9px;
  list-style: none;
}

.villa-layout-card li {
  position: relative;
  padding-left: 24px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.villa-layout-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Emotional */
.villa-emotional-section {
  padding: 105px 0;
  background: var(--cream-light);
}

.villa-emotional-box {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 24px;
  align-items: stretch;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--green-dark);
  box-shadow: var(--shadow);
}

.villa-emotional-media {
  min-height: 600px;
  border-radius: 32px;
}

.villa-emotional-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.villa-emotional-content .eyebrow {
  color: var(--green-soft);
}

.villa-emotional-content h2 {
  color: #fff;
  font-size: clamp(34px, 4vw, 46px);
}

.villa-emotional-content p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.villa-emotional-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.villa-emotional-tags span {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

/* Collegamenti e punti di interesse */
.villa-distances-section {
  padding: 105px 0;
  background:
    linear-gradient(180deg, var(--sand-light) 0%, var(--cream) 100%);
}

.villa-distances-box {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: stretch;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--cream-light);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 34px;
}

.villa-distances-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.villa-distances-content h2 {
  max-width: 680px;
  font-size: clamp(34px, 4vw, 48px);
}

.villa-distances-content p {
  margin-top: 20px;
  font-size: 17px;
}

.villa-distances-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px;
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.villa-distances-note strong {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
}

.villa-distances-note span {
  font-size: 14px;
  line-height: 1.5;
}

.villa-distances-map {
  min-height: 600px;
  border-radius: 32px;
  background: #f6f3ea;
}

.villa-distances-map img {
  object-fit: unset;
}

.villa-distances-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.distance-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--cream-light);
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(38, 48, 31, 0.06);
  transition: 0.35s ease;
}

.distance-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 80px rgba(38, 48, 31, 0.10);
}

.distance-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.distance-card-top span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.distance-card-top small {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.distance-card h3 {
  margin-bottom: 14px;
  font-size: 28px;
}

.distance-card p {
  margin-bottom: 18px;
  font-size: 14px;
}

.distance-card ul {
  display: grid;
  gap: 9px;
  list-style: none;
}

.distance-card li {
  position: relative;
  padding-left: 24px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.distance-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Planimetrie */
.villa-plans-section {
  padding: 105px 0;
  background:
    radial-gradient(circle at left bottom, rgba(79, 92, 64, 0.12), transparent 32%),
    var(--green-pale);
}

.villa-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.villa-plan-card {
  display: block;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--cream-light);
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(38, 48, 31, 0.07);
  transition: 0.35s ease;
}

.villa-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 80px rgba(38, 48, 31, 0.12);
}

.villa-plan-media {
  height: 420px;
  border-radius: 28px;
  background: #fff;
}

.villa-plan-media img {
  object-fit: contain;
  padding: 10px;
}

.villa-plan-content {
  padding: 24px 14px 10px;
}

.villa-plan-content span {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.villa-plan-content h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

.villa-plan-content p {
  font-size: 14px;
}

/* Gallery */
.villa-gallery-section {
  padding: 105px 0;
  background: var(--cream-light);
}

.villa-gallery-header {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 40px;
}

.villa-gallery-header h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.villa-gallery-header p {
  font-size: 17px;
}

.villa-gallery-slider {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr 0.85fr;
  gap: 22px;
  overflow: hidden;
}

.villa-gallery-item {
  height: 480px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 70px rgba(38, 48, 31, 0.09);
}

.villa-gallery-item:nth-child(2),
.villa-gallery-item:nth-child(3),
.villa-gallery-item:nth-child(4) {
  height: 370px;
  margin-top: 70px;
}

/* Contact */
.villa-contact-section {
  padding: 105px 0;
  background:
    radial-gradient(circle at left bottom, rgba(79, 92, 64, 0.16), transparent 32%),
    var(--sand-light);
}

.villa-contact-box {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.villa-contact-copy {
  padding: 46px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(79, 92, 64, 0.96), rgba(37, 48, 31, 0.98)),
    url("../18.webp") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.villa-contact-copy .eyebrow {
  color: var(--green-soft);
}

.villa-contact-copy h2 {
  color: #fff;
  font-size: clamp(34px, 4vw, 50px);
}

.villa-contact-copy p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
}

.villa-contact-points {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.villa-contact-points div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.villa-contact-points strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.villa-contact-points span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.villa-contact-form {
  padding: 42px;
  border-radius: var(--radius-xl);
  background: var(--cream-light);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  color: var(--green-dark);
  background: #fbf8f0;
  transition: 0.3s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: #fff;
}

.privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 22px;
}

.privacy input {
  margin-top: 5px;
  accent-color: var(--green);
}

.privacy label {
  font-size: 13px;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 1160px) {
  .villa-detail-hero-grid,
  .villa-intro-box,
  .villa-complex-box,
  .villa-specs-box,
  .villa-emotional-box,
  .villa-distances-box,
  .villa-contact-box {
    grid-template-columns: 1fr;
  }

  .villa-detail-hero-media {
    height: 540px;
  }

  .villa-key-grid,
  .villa-layout-grid,
  .villa-complex-grid,
  .villa-finishes-grid,
  .villa-distances-grid,
  .villa-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .villa-gallery-header,
  .villa-finishes-header {
    grid-template-columns: 1fr;
  }

  .villa-gallery-slider {
    grid-template-columns: repeat(2, 1fr);
  }

  .villa-gallery-item,
  .villa-gallery-item:nth-child(2),
  .villa-gallery-item:nth-child(3),
  .villa-gallery-item:nth-child(4) {
    height: 380px;
    margin-top: 0;
  }

  .villa-complex-media,
  .villa-distances-map {
    min-height: 500px;
  }
}

@media (max-width: 900px) {
  .villa-detail-hero {
    padding: 135px 0 76px;
  }

  .villa-detail-hero-media {
    height: 450px;
    border-radius: 30px;
  }

  .villa-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .villa-detail-actions .btn {
    width: 100%;
  }

  .villa-key-section,
  .villa-intro-section,
  .villa-complex-section,
  .villa-layout-section,
  .villa-emotional-section,
  .villa-distances-section,
  .villa-plans-section,
  .villa-gallery-section,
  .villa-contact-section {
    padding: 40px 0;
  }

  .villa-key-grid,
  .villa-layout-grid,
  .villa-complex-grid,
  .villa-finishes-grid,
  .villa-distances-grid,
  .villa-plans-grid,
  .villa-gallery-slider {
    grid-template-columns: 80%;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    align-content: start;
  }

  .villa-intro-box,
  .villa-complex-content,
  .villa-specs-box,
  .villa-finishes-section,
  .villa-emotional-content,
  .villa-distances-content,
  .villa-contact-copy,
  .villa-contact-form {
    padding: 32px;
  }

  .villa-emotional-media,
  .villa-complex-media,
  .villa-distances-map {
    min-height: 410px;
  }

  .villa-plan-media {
    height: 410px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 560px) {
  .villa-detail-hero-copy h1 {
    font-size: 40px;
  }

  .villa-detail-hero-media {
    height: 370px;
  }

  .villa-detail-hero-card {
    left: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
    padding: 22px;
  }

  .villa-detail-hero-card strong {
    font-size: 27px;
  }

  .villa-key-card,
  .villa-intro-box,
  .villa-layout-card,
  .villa-complex-content,
  .villa-complex-card,
  .villa-specs-box,
  .villa-finishes-section,
  .villa-finish-card,
  .villa-emotional-content,
  .villa-distances-content,
  .distance-card,
  .villa-contact-copy,
  .villa-contact-form {
    padding: 26px;
  }

  .villa-emotional-box,
  .villa-complex-box,
  .villa-distances-box,
  .villa-plan-card {
    padding: 12px;
    border-radius: 30px;
  }

  .villa-emotional-media,
  .villa-complex-media,
  .villa-distances-map {
    min-height: 320px;
    border-radius: 22px;
  }

  .villa-plan-media {
    height: 320px;
    border-radius: 22px;
  }

  .villa-gallery-item,
  .villa-gallery-item:nth-child(2),
  .villa-gallery-item:nth-child(3),
  .villa-gallery-item:nth-child(4) {
    height: 310px;
  }

  .villa-layout-card h3,
  .villa-complex-card h3,
  .villa-finish-card h3,
  .distance-card h3 {
    font-size: 27px;
  }

  .distance-card-top {
    align-items: flex-start;
    flex-direction: column;
  }
}