/* Colori presi dalle vetrofanie Ruocco Cosmos */
:root {
  --blue: #0368B4;
  --blue-dark: #024F8A;
  --red: #DF1D23;
  --red-dark: #B8151A;
  --gray: #E6E6E6;      /* il grigio chiaro dei pannelli */
  --light: #F3F3F3;
  --ink: #1C232B;
  --muted: #56606B;
  --line: #DADADA;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.blue { color: var(--blue); }
.red, .red-light { color: var(--red); }

/* Bottoni */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blue); }
.btn-white { background: #fff; color: var(--red); }
.btn-small { padding: 9px 20px; font-size: 14px; }

/* Header con la doppia striscia blu/rossa delle vetrofanie */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; display: block; height: 5px;
  background: linear-gradient(90deg, var(--blue) 50%, var(--red) 50%);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 46px; height: 46px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.main-nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 14px; }
.main-nav a:hover { color: var(--blue); }

/* Apertura (pagina principale e pagine servizi) */
.hero, .page-hero { background: var(--gray); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 72px 0 80px;
}
.page-hero .hero-grid { padding: 48px 0 64px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2px;
  font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 16px;
}
.eyebrow-dark { color: var(--red); }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.1; font-weight: 800; color: var(--blue); margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); }
.lead { font-size: 18px; color: #3B4652; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost, .page-hero .btn-ghost { border-color: var(--blue); color: var(--blue); }
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover { background: var(--blue); color: #fff; }
.hero-photo img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 18px; box-shadow: 0 24px 50px rgba(0,0,0,.18);
  border-bottom: 6px solid var(--red);
}
/* Foto dei vostri mezzi su sfondo bianco: intera, non ritagliata */
.hero-photo.own img {
  aspect-ratio: auto; max-height: 560px; object-fit: contain;
  background: #fff; padding: 18px;
}
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

/* Logo grande a destra nell'apertura, come la vetrofania */
.hero-logo {
  background: #fff; border-radius: 18px; padding: 44px 32px 40px;
  text-align: center; box-shadow: 0 24px 50px rgba(0,0,0,.14);
  border-bottom: 6px solid var(--red);
}
.hero-logo img { width: min(260px, 70%); display: block; margin: 0 auto 10px; }
.hero-logo .wordmark { font-weight: 800; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; letter-spacing: 1px; }
.hero-logo .tagline { margin-top: 14px; font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); color: var(--red); }

/* Apertura senza riquadro a destra: testo su tutta la larghezza */
.hero-solo { grid-template-columns: 1fr; }
.hero-solo .hero-text { max-width: 1020px; }

/* Nome dell'azienda in grande nel banner iniziale */
.hero-brand { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: 2px; line-height: 1; margin-bottom: 14px; }

/* Piccolo mondo accanto al titolo principale */
.hero-title { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.hero-title h1 { margin-bottom: 0; }
.title-globe { flex: none; width: 96px; height: 96px; }
@media (max-width: 600px) { .title-globe { width: 60px; height: 60px; } .hero-title { gap: 12px; } }

/* Striscia pronto intervento */
.alert-strip { background: var(--red); color: #fff; }
.alert-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; font-size: 15px; }
.alert-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.alert-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Sezioni */
.section { padding: 96px 0; }
.section-light { background: var(--light); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 800; color: var(--blue); margin-bottom: 16px; }
.section-intro { color: var(--muted); font-size: 17px; max-width: 640px; margin-bottom: 48px; }

/* Servizi con foto */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-color: var(--blue); box-shadow: 0 14px 34px rgba(0,0,0,.10); transform: translateY(-3px); }
.service-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 4px solid var(--blue); }
.service:nth-child(even) .service-img { border-bottom-color: var(--red); }
.service-text { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.service h3 { font-size: 19px; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15px; }
.more { display: inline-block; margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 14px; color: var(--blue); }
.more::after { content: " →"; }
.more:hover { color: var(--red); }

/* Scheda larga: alberi pericolanti */
.service-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 3fr; background: var(--gray); }
.service-wide .service-img { height: 100%; aspect-ratio: auto; min-height: 260px; border-bottom: 0; border-right: 4px solid var(--red); }
.service-wide .service-body { padding: 32px 36px; display: flex; flex-direction: column; gap: 6px; }
.service-wide .service-body p { color: #3B4652; }
.service-wide .actions { display: flex; align-items: center; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.service-wide .more { margin-top: 0; padding-top: 0; }

/* Sezione piattaforma aerea */
.section-platform { background: var(--gray); }
.platform-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.platform-text { color: #3B4652; font-size: 17px; margin-bottom: 24px; }
.section-platform .checklist { margin-bottom: 32px; }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* Sezioni blu (consulenza immobili, come lavoriamo) */
.section-feature { background: var(--blue); color: #fff; }
.section-feature h2 { color: #fff; }
.section-feature .eyebrow { color: #CFE3F5; }
.section-feature.with-photo {
  background:
    linear-gradient(90deg, rgba(3,104,180,.97) 0%, rgba(3,104,180,.9) 50%, rgba(3,104,180,.72) 100%),
    url("img/casa-toscana.jpg") center / cover;
}
.feature-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.feature-text p:not(.eyebrow) { color: #E1EDF8; font-size: 17px; margin-bottom: 32px; }
.steps { list-style: none; display: grid; gap: 14px; }
.steps li {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 20px;
}
.steps span {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; font-weight: 800;
}
.steps div { color: #E1EDF8; font-size: 14px; }
.steps strong { display: block; font-size: 16px; color: #fff; }
.steps-grid { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }

/* Zona */
.towns { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.towns li {
  background: #fff; border: 1px solid var(--line);
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
}
.towns li:first-child { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Contatti */
.section-contact { background: var(--red); color: #fff; }
.section-contact h2 { color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.contact-inner p { font-size: 17px; color: #FFE3E4; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .15s;
}
a.contact-card:hover { transform: translateY(-2px); }
.contact-card small { text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 700; color: var(--muted); }
.contact-card strong { font-size: 17px; color: var(--blue); }
.contact-card.todo strong { color: var(--muted); font-weight: 600; font-size: 15px; }

/* Pagine dei servizi */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.two-col h2 { margin-bottom: 28px; }
.checklist { list-style: none; display: grid; gap: 16px; }
.checklist li { position: relative; padding-left: 38px; font-size: 17px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.box { background: var(--gray); border-left: 6px solid var(--red); border-radius: var(--radius); padding: 30px; }
.box h3 { font-size: 19px; margin-bottom: 16px; color: var(--red); }
.box ul { padding-left: 20px; display: grid; gap: 10px; color: #3B4652; }
.narrow { max-width: 820px; }
.faq { margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: 12px; }
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.related a {
  border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 18px 20px;
  font-weight: 700; font-size: 15px; transition: border-color .15s, color .15s;
}
.related a:nth-child(even) { border-left-color: var(--red); }
.related a:hover { color: var(--blue); }

/* Piè di pagina */
.site-footer { background: #fff; padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); font-size: 14px; text-align: right; }
.footer-services {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer-services a:hover { color: var(--blue); }

/* ---------------------------------------------------------------
   Il mondo del logo, ripetuto in tutto il sito
   --------------------------------------------------------------- */
/* accanto a ogni etichetta di sezione */
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 22px;
  margin-right: 8px; vertical-align: -6px;
  background: url("img/logo-mondo.svg") center / contain no-repeat;
}
.section-feature .eyebrow::before, .section-contact .eyebrow::before { background-image: url("img/logo-mondo-bianco.svg"); }

/* grande filigrana sullo sfondo delle sezioni */
.hero, .page-hero, .section-feature, .section-contact, .section-platform, .alert-strip { position: relative; overflow: hidden; }
.hero > *, .page-hero > *, .section-feature > *, .section-contact > *, .section-platform > *, .alert-strip > * { position: relative; z-index: 1; }
.hero::after, .page-hero::after, .section-platform::after, .section-feature::after, .section-contact::after {
  content: ""; position: absolute; pointer-events: none;
  width: 560px; height: 560px;
  background: url("img/logo-mondo.svg") center / contain no-repeat;
  opacity: .07;
}
.hero::after, .page-hero::after { left: -170px; top: -90px; }
.section-platform::after { right: -150px; bottom: -170px; }
.section-feature::after, .section-contact::after { background-image: url("img/logo-mondo-bianco.svg"); opacity: .12; right: -130px; top: -110px; }

/* bollino sulle foto principali */
.hero-photo { position: relative; }
.hero-photo::after {
  content: ""; position: absolute; left: -14px; bottom: -20px;
  width: 86px; height: 86px; border-radius: 50%;
  background: #fff url("img/logo-mondo.svg") center / 62px no-repeat;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

/* bollino su ogni scheda dei servizi */
.service { position: relative; }
.service::before {
  content: ""; position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff url("img/logo-mondo.svg") center / 32px no-repeat;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* elenchi puntati con il mondo */
.checklist li::before {
  background: url("img/logo-mondo.svg") center / contain no-repeat;
  border-radius: 0; width: 26px; height: 26px; top: 0;
}
.box ul { list-style: none; padding-left: 0; }
.box li { position: relative; padding-left: 30px; }
.box li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  background: url("img/logo-mondo.svg") center / contain no-repeat;
}

/* link agli altri servizi e striscia pronto intervento */
.related a::before {
  content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 8px; vertical-align: -5px;
  background: url("img/logo-mondo.svg") center / contain no-repeat;
}
.alert-inner p::before {
  content: ""; display: inline-block; width: 24px; height: 24px; margin-right: 10px; vertical-align: -6px;
  background: url("img/logo-mondo-bianco.svg") center / contain no-repeat;
}

/* separatore con il mondo in fondo alle pagine */
.site-footer .footer-services { position: relative; }
.site-footer .footer-services::before {
  content: ""; position: absolute; left: 50%; top: -15px; transform: translateX(-50%);
  width: 30px; height: 30px; background: #fff url("img/logo-mondo.svg") center / 26px no-repeat;
  padding: 0 8px; box-sizing: content-box;
}

/* Tablet */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-inner .btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 56px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service-wide { grid-template-columns: 1fr; }
  .service-wide .service-img { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 4px solid var(--red); }
  .feature-inner, .contact-inner, .two-col, .platform-inner { grid-template-columns: 1fr; gap: 40px; }
  .related { grid-template-columns: 1fr 1fr; }
  .alert-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
/* Telefono */
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero::after, .page-hero::after, .section-platform::after, .section-feature::after, .section-contact::after { width: 340px; height: 340px; }
  .services, .contact-cards, .steps-grid, .related { grid-template-columns: 1fr; }
  .brand-name { font-size: 16px; }
  .footer-inner p { text-align: left; }
  .service-wide .service-body { padding: 26px; }
}

/* Facciata celeste: un filo più scura e piena, come la tinta che usa Angelo */
img[src*="facciata-celeste"] { filter: brightness(.9) saturate(1.25); }

/* L'indirizzo email lungo va a capo sui telefoni piccoli */
.contact-card strong { overflow-wrap: anywhere; }
