/*
  RSA Le Palme — proposta grafica V2
  Direzione: ospitalità mediterranea + affidabilità sanitaria.
  Questo foglio estende il sito esistente senza alterarne struttura e contenuti.
*/

/* I webfont non sono piu' caricati con @import: li carica inc/enqueue.php con un <link>, cosi' partono in parallelo invece che in coda al CSS. */

:root {
  --bg: #fbf8f1;
  --bg-alt: #f0eee5;
  --surface: #fffdf8;
  --ink: #1d2c28;
  --ink-soft: #52625d;
  --ink-faint: #74827d;
  --primary: #234c40;
  --primary-dark: #18372f;
  --primary-soft: #dce9e1;
  --primary-tint: #edf4ef;
  --accent: #8f2632;
  --accent-dark: #6d1c26;
  --accent-soft: #f3dedf;
  --gold: #c59b5a;
  --gold-soft: #f2e7d3;
  --line: #dedfd8;
  --line-2: #cdd2ca;
  --hero-grad: linear-gradient(135deg, #173b33 0%, #285b4d 100%);
  --footer-bg: #102c27;
  --footer-ink: #f7f1e6;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 34px;
  --shadow: 0 24px 60px -32px rgba(16, 44, 39, .45);
  --shadow-sm: 0 12px 30px -20px rgba(16, 44, 39, .35);
  --shadow-card: 0 30px 70px -34px rgba(16, 44, 39, .48);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  --maxw: 1240px;
}

body {
  background:
    radial-gradient(circle at 3% 25%, rgba(197, 155, 90, .08), transparent 22rem),
    var(--bg);
  font-size: 17px;
  line-height: 1.68;
}

h1, h2, h3, h4 {
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.8rem, 2rem + 3.4vw, 5.25rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.35rem); font-weight: 600; }
h3 { font-weight: 600; }
.lead { line-height: 1.7; }
.wrap { padding-inline: clamp(20px, 4vw, 52px); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section.tight { padding-block: clamp(54px, 6vw, 88px); }

.eyebrow {
  gap: .8em;
  font-size: .76rem;
  letter-spacing: .18em;
}
.eyebrow::before {
  width: 38px;
  height: 1px;
  background: var(--gold);
}

/* Intestazione più calma, leggibile e autorevole */
.utilbar { background: var(--primary-dark); color: #f8f2e8; }
.utilbar .wrap { height: 42px; }
.header {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom-color: rgba(35, 76, 64, .12);
  backdrop-filter: blur(16px) saturate(1.1);
}
.header .wrap { height: 88px; }
.brand img { height: 58px; }
.nav { gap: 2px; }
.nav > a,
.nav > .has-drop > a {
  border-radius: 999px;
  font-size: .93rem;
  padding: .72em .9em;
}
.header .btn { padding-inline: 1.25em; }
.dropdown {
  border-radius: 18px;
  border-color: rgba(35, 76, 64, .14);
  padding: 10px;
}

.btn {
  min-height: 48px;
  padding: .92em 1.55em;
  border-radius: 999px;
  font-size: .95rem;
  letter-spacing: .01em;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { box-shadow: 0 12px 28px -16px rgba(24, 55, 47, .7); }
.btn-accent { box-shadow: 0 12px 28px -16px rgba(109, 28, 38, .62); }

/* Home: impatto editoriale, fotografico e mediterraneo */
.hero {
  isolation: isolate;
  min-height: min(760px, calc(100svh - 130px));
  background: var(--hero-grad);
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
}
.hero::before { width: 520px; height: 520px; left: -260px; top: -210px; }
.hero::after { width: 330px; height: 330px; right: -130px; bottom: -160px; }
.hero .wrap {
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(42px, 7vw, 100px);
  padding-top: clamp(60px, 8vw, 108px);
  padding-bottom: clamp(62px, 8vw, 112px);
}
.hero .eyebrow { color: #f1dcb8; }
.hero h1 {
  color: #fffaf0;
  margin-bottom: 1.35rem;
  line-height: .98;
}
.hero h1 .serif-it { color: #f1d6a6; font-weight: 500; }
.hero .lead { color: rgba(255, 250, 240, .82); max-width: 47ch; }
.hero .btn-primary { background: #fff9ef; color: var(--primary-dark); }
.hero .btn-primary:hover { background: #f1dcb8; }
.hero .btn-ghost {
  background: transparent;
  color: #fffaf0;
  border-color: rgba(255, 255, 255, .42);
  box-shadow: none;
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.hero-badges { margin-top: 2.15rem; gap: 8px; }
.badge {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 250, 240, .88);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
  backdrop-filter: blur(10px);
  font-size: .79rem;
}
.badge .dot { background: #f0cd8d; }
.hero-media { padding: 22px 0 22px 22px; }
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0 24px 0 0;
  border-radius: 180px 28px 180px 28px;
  background: #e5c990;
  transform: rotate(-3deg);
}
.hero-media .photo,
.hero-media img {
  position: relative;
  height: clamp(430px, 48vw, 600px);
  border-radius: 180px 28px 180px 28px;
  box-shadow: 0 40px 90px -42px rgba(0, 0, 0, .75);
  border: 8px solid rgba(255, 250, 240, .92);
}
.hero-media .float-card {
  left: -12px;
  bottom: 52px;
  border: 0;
  border-radius: 18px 18px 18px 3px;
  background: #fffaf0;
  box-shadow: 0 22px 48px -24px rgba(0, 0, 0, .55);
}
.hero-media .float-card .ico { background: var(--accent-soft); color: var(--accent); }

/* Blocco di orientamento immediatamente sotto l'hero */
.hero + .section { background: #fffdf8; }
.hero + .section .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}
.hero + .section .wrap > div:first-child { max-width: 720px !important; }
.hero + .section h2 { margin-bottom: 1.25rem; }
.contact-strip {
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  background: var(--primary-tint);
  border: 1px solid rgba(35, 76, 64, .1);
  border-radius: 26px;
  padding: 10px 24px;
}
.ci { padding: 18px 4px; align-items: center; }
.ci + .ci { border-top: 1px solid rgba(35, 76, 64, .12); }
.ci .gi { border-radius: 14px; background: #fffdf8; }

/* Sezioni narrative e fotografia */
.feature { gap: clamp(42px, 7vw, 100px); }
.feature .feat-media { position: relative; }
.feature .feat-media::after {
  content: '';
  position: absolute;
  inset: auto -18px -18px auto;
  width: 42%;
  height: 42%;
  border: 1px solid var(--gold);
  border-radius: 0 0 72px 0;
  pointer-events: none;
  opacity: .7;
}
.feature .feat-media .photo,
.feature .feat-media img {
  height: clamp(360px, 40vw, 520px);
  border-radius: 110px 22px 22px 22px;
  box-shadow: var(--shadow-card);
}
.feature.flip .feat-media .photo,
.feature.flip .feat-media img { border-radius: 22px 110px 22px 22px; }
.feature h2 { margin-bottom: 1.2rem; }
ul.ticks { gap: .85rem; }
ul.ticks li { padding-left: 2.15rem; }
ul.ticks li::before { background: var(--gold-soft); }
ul.ticks li::after { color: var(--primary); }

.band { background: #efeee7; }
.band.sand {
  background:
    linear-gradient(120deg, rgba(143, 38, 50, .08), transparent 48%),
    #f4e6e2;
}

/* Card meno “software”, più editoriali */
.services-grid { counter-reset: service; gap: 14px; }
.svc-card {
  counter-increment: service;
  min-height: 300px;
  padding: 28px;
  border: 0;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: inset 0 0 0 1px rgba(35, 76, 64, .1);
}
.svc-card::before {
  content: '0' counter(service);
  align-self: flex-end;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: .9rem;
  letter-spacing: .08em;
}
.svc-card:nth-child(2),
.svc-card:nth-child(5) { background: var(--primary); color: #fff; box-shadow: none; }
.svc-card:nth-child(2) h3,
.svc-card:nth-child(5) h3 { color: #fff; }
.svc-card:nth-child(2) p,
.svc-card:nth-child(5) p { color: rgba(255,255,255,.72); }
.svc-card:nth-child(2) .link-arrow,
.svc-card:nth-child(5) .link-arrow,
.svc-card:nth-child(2)::before,
.svc-card:nth-child(5)::before { color: #f1d6a6; }
.svc-card:nth-child(2) .ico,
.svc-card:nth-child(5) .ico { background: rgba(255,255,255,.12); color: #fff; }
.svc-card:hover { transform: translateY(-7px); }
.svc-card .ico { border-radius: 50%; }

.highlights { gap: 14px; }
.hl { position: relative; overflow: hidden; border-radius: 24px; background: var(--primary); min-height: 390px; }
.hl .photo,
.hl img { height: 100%; min-height: 390px; margin: 0; border-radius: 0; box-shadow: none; transition: transform .45s ease; }
.hl:hover img { transform: scale(1.035); }
.hl::after {
  content: '';
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(11, 32, 27, .9));
}
.hl b,
.hl span { position: absolute; z-index: 1; left: 22px; right: 22px; color: #fff; }
.hl b { bottom: 52px; font-size: 1.35rem; }
.hl span { bottom: 18px; opacity: .75; line-height: 1.35; }

.price-card {
  border: 0;
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(35, 76, 64, .12);
  padding: 28px;
}
.price-card.feat { background: var(--primary); color: #fff; border: 0; }
.price-card.feat .amt,
.price-card.feat .amt span { color: #fff; }
.price-card.feat .per { color: rgba(255,255,255,.68); }
.price-card.feat .tag { background: #f1d6a6; color: var(--primary-dark); }
.price-card .amt { font-family: var(--font-head); font-weight: 600; }

.cta-band {
  background:
    radial-gradient(circle at 18% 0, rgba(241, 214, 166, .16), transparent 28rem),
    var(--primary);
}
.cta-band h2 { max-width: 22ch; }

/* Pagine interne: un'identità comune più riconoscibile */
.breadcrumb { background: #e9eee9; border: 0; }
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  padding-block: clamp(64px, 8vw, 118px);
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -180px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}
.page-hero .wrap { max-width: 980px; }
.page-hero h1 { color: #fffaf0; line-height: 1; }
.page-hero .lead { color: rgba(255,250,240,.78); font-size: clamp(1.08rem, 1rem + .5vw, 1.35rem); }
.page-hero .eyebrow { color: #f1d6a6; }
.page-hero .btn-primary { background: #fffaf0; color: var(--primary-dark); }
.page-hero .btn-ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.45); }

.gallery { gap: 12px; }
.gallery .photo,
.gallery img { height: 260px; border-radius: 24px; }
.gallery .tall { height: 532px; border-radius: 110px 24px 24px 24px; }
.value-grid { gap: 12px; }
.value-card,
.step,
.box,
.form-card,
.map-card { border: 0; border-radius: 24px; box-shadow: inset 0 0 0 1px rgba(35, 76, 64, .11); }
.value-card { padding: 28px; min-height: 250px; }
.value-card .ico { border-radius: 50%; }
.value-card:nth-child(even) { background: var(--primary); }
.value-card:nth-child(even) h3 { color: #fff; }
.value-card:nth-child(even) p { color: rgba(255,255,255,.72); }
.value-card:nth-child(even) .ico { background: rgba(255,255,255,.12); color: #fff; }
.step { padding-top: 36px; }
.step::before { background: var(--accent); }
.faq-item { border-bottom-color: rgba(35, 76, 64, .18); }
.faq-q { font-family: var(--font-body); font-size: 1.08rem; }
.faq-q .pm { background: var(--gold-soft); }
.tl-item::before { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tl-item .time { color: var(--accent); }
.cta-card {
  border-radius: 34px;
  background:
    linear-gradient(120deg, transparent, rgba(255,255,255,.07)),
    var(--primary);
}

.field input,
.field select,
.field textarea { background: #fffdf8; border-radius: 14px; }
.map-card { overflow: hidden; }

.footer { padding-top: clamp(64px, 8vw, 100px); }
.footer .cols { gap: clamp(30px, 5vw, 68px); }
.footer img.flogo { height: 58px; }
.footer h5 { color: #f1d6a6; }

@media (max-width: 1080px) {
  .header .wrap { gap: 14px; }
  .nav > a,
  .nav > .has-drop > a { padding-inline: .65em; }
  .header .cta-wrap { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); }
}

@media (max-width: 960px) {
  .header .wrap { height: 76px; }
  .brand img { height: 50px; }
  .hero { min-height: auto; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { max-width: 760px; }
  .hero-media { width: min(100%, 700px); justify-self: end; padding-left: 14px; }
  .hero-media .photo,
  .hero-media img { height: min(68vw, 560px); }
  .hero + .section .wrap { grid-template-columns: 1fr; gap: 36px; }
  .contact-strip { grid-template-columns: repeat(3, 1fr); }
  .ci { display: block; padding: 20px 14px; }
  .ci + .ci { border-top: 0; border-left: 1px solid rgba(35, 76, 64, .12); }
  .ci .gi { margin-bottom: 12px; }
  .feature .feat-media .photo,
  .feature .feat-media img { height: min(70vw, 520px); }
  .hl,
  .hl .photo,
  .hl img { min-height: 360px; }
}

@media (max-width: 700px) {
  .utilbar .u-left { display: none; }
  .utilbar .wrap { justify-content: center; gap: 14px; padding-inline: 12px; }
  .utilbar a { font-size: .74rem; }
  .hero .wrap { padding-top: 48px; }
  .hero h1 { font-size: clamp(2.75rem, 12.5vw, 4.35rem); }
  .hero-media { padding: 10px 0 10px 10px; }
  .hero-media::before,
  .hero-media .photo,
  .hero-media img { border-radius: 90px 20px 90px 20px; }
  .hero-media .photo,
  .hero-media img { height: 102vw; max-height: 520px; border-width: 5px; }
  .hero-media .float-card { left: 0; bottom: 30px; padding: 13px 15px; }
  .hero-media .float-card b { font-size: 1.25rem; }
  .hero-media .float-card .ico { width: 38px; height: 38px; }
  .hero-badges { gap: 6px; }
  .badge { padding: .48em .72em; }
  .contact-strip { grid-template-columns: 1fr; }
  .ci { display: flex; }
  .ci + .ci { border-left: 0; border-top: 1px solid rgba(35, 76, 64, .12); }
  .ci .gi { margin-bottom: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 250px; }
  .highlights { grid-template-columns: 1fr; }
  .hl,
  .hl .photo,
  .hl img { min-height: 430px; }
  .feature .feat-media .photo,
  .feature .feat-media img,
  .feature.flip .feat-media .photo,
  .feature.flip .feat-media img { border-radius: 70px 18px 18px 18px; }
  .gallery .tall { border-radius: 70px 18px 18px 18px; }
  .page-hero { padding-block: 58px 68px; }
  .footer .legal { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .hl img,
  .svc-card,
  .btn { transition: none; }
}
