/*
 * Arte Camini - Pagina "Climatizzazione e Fotovoltaico"
 * Stili isolati sotto .ac-page: non toccano il resto del tema archub.
 * Caricato solo su questo template (vedi inc/climatizzazione-fotovoltaico.php).
 */

.ac-page {
  --accent: #C7012D;
  --accent-dark: #A61010;
  --black: #000;
  --ink: rgba(0, 0, 0, .75);
  --grey: #54595F;
  --line: #e6e6e6;
  --soft: #f7f6f5;
  --f-head: "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Work Sans", system-ui, sans-serif;
  --f-acc: "Playfair Display", Georgia, serif;
  font-family: var(--f-body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

.ac-page * { box-sizing: border-box }
.ac-page img { max-width: 100%; display: block }

.ac-page h1,
.ac-page h2,
.ac-page h3 {
  font-family: var(--f-head);
  color: var(--black);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}

.ac-page h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700 }
.ac-page h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem) }
.ac-page h3 { font-size: 1.25rem }
.ac-page p { margin: 0 0 1.1em }

.ac-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px }

.ac-script {
  font-family: var(--f-acc);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.ac-eyebrow {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.ac-btn {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 2px;
  text-decoration: none;
  transition: .25s;
  border: 1px solid transparent;
}

.ac-btn-primary { background: var(--accent); color: #fff }
.ac-btn-primary:hover { background: var(--accent-dark); color: #fff }
.ac-btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff }
.ac-btn-ghost:hover { background: #fff; color: var(--black) }
.ac-btn-dark { background: var(--black); color: #fff }
.ac-btn-dark:hover { background: var(--accent); color: #fff }
.ac-btn-outline { border-color: var(--black); color: var(--black) }
.ac-btn-outline:hover { background: var(--black); color: #fff }

.ac-page .ac-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ac-sec,
.ac-feature { padding: 96px 0 }

@media (max-width: 768px) {
  .ac-sec,
  .ac-feature { padding: 60px 0 }
}

/* ---------- HERO ---------- */
.ac-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #111;
  overflow: hidden;
}

.ac-hero-bg { position: absolute; inset: 0 }
.ac-hero-bg img { width: 100%; height: 100%; object-fit: cover }

.ac-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, .25) 100%);
}

.ac-hero .ac-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 110px;
  padding-bottom: 110px;
}

.ac-hero-inner { max-width: 660px }
.ac-hero .ac-eyebrow { color: #fff; opacity: .9 }
.ac-hero h1 { color: #fff; margin-bottom: 22px }
.ac-hero h1 em { font-family: var(--f-acc); font-style: italic; font-weight: 500; color: #fff }

.ac-lead {
  font-size: 1.13rem;
  color: rgba(255, 255, 255, .85);
  max-width: 560px;
  margin-bottom: 34px;
}

.ac-hero-cta { display: flex; gap: 14px; flex-wrap: wrap }

/* ---------- INTRO ---------- */
.ac-intro { background: #fff }

.ac-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .ac-intro-grid { grid-template-columns: 1fr; gap: 36px }
}

.ac-intro-media { position: relative }
.ac-intro-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 2px }

.ac-stamp {
  position: absolute;
  right: -18px;
  bottom: -18px;
  background: var(--accent);
  color: #fff;
  padding: 22px 26px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .85rem;
  line-height: 1.3;
  max-width: 210px;
}

.ac-stamp b { display: block; font-size: 1.7rem; font-weight: 700; margin-bottom: 2px }

@media (max-width: 900px) {
  .ac-stamp { right: 12px; bottom: -14px }
}

/* ---------- CARDS ---------- */
.ac-services { background: var(--soft) }

.ac-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px }

.ac-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }

@media (max-width: 900px) { .ac-cards { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 600px) { .ac-cards { grid-template-columns: 1fr } }

.ac-card {
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: .3s;
}

.ac-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .12); border-color: transparent }
.ac-card-img { aspect-ratio: 3/2; overflow: hidden; background: #eee }
.ac-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease }
.ac-card:hover .ac-card-img img { transform: scale(1.06) }
.ac-card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column }
.ac-card-body h3 { margin-bottom: 8px }
.ac-card-body p { font-size: .93rem; color: var(--grey); margin-bottom: 18px; flex: 1 }

.ac-card-link {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.ac-card-link::after { content: " \2192" }

/* ---------- FEATURE ---------- */
.ac-feature { border-bottom: 1px solid var(--line) }
.ac-feature--alt { background: var(--soft) }

.ac-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.ac-feature--alt .ac-feature-media { order: 2 }

@media (max-width: 900px) {
  .ac-feature-grid { grid-template-columns: 1fr; gap: 32px }
  .ac-feature--alt .ac-feature-media { order: 0 }
}

.ac-feature-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 2px }

.ac-ticks { list-style: none; padding: 0; margin: 0 0 28px }
.ac-ticks li { padding-left: 30px; position: relative; margin-bottom: 11px; font-size: .96rem }

.ac-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
}

.ac-ticks li b { color: var(--black); font-weight: 600 }

.ac-note {
  background: #fff;
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  font-size: .9rem;
  color: var(--grey);
  margin-bottom: 26px;
}

/* CTA di contatto + rimando alla pagina di approfondimento.
 * Il link e' volutamente piu' leggero del bottone: la conversione resta il
 * contatto, l'approfondimento e' navigazione. Stessa resa del "Scopri di piu'"
 * delle card, cosi' il linguaggio della pagina non cambia. */
.ac-feature-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.ac-feature-link {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.ac-feature-link::after { content: " \2192" }
.ac-feature-link:hover { border-bottom-color: var(--accent) }
.ac-page .ac-feature-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }

/* ---------- VIESSMANN ---------- */
.ac-partner { background: var(--black); color: rgba(255, 255, 255, .72) }

.ac-partner-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .ac-partner-grid { grid-template-columns: 1fr; gap: 38px }
}

.ac-partner h2 { color: #fff }
.ac-partner h2 em { font-family: var(--f-acc); font-style: italic; color: var(--accent); font-weight: 500 }
.ac-partner .ac-ticks li b { color: #fff }
.ac-partner-logo { border: 1px solid rgba(255, 255, 255, .22); padding: 52px 30px; text-align: center }
.ac-viessmann { width: 190px; height: auto; color: #fff; margin: 0 auto; display: block }
.ac-rule { width: 54px; height: 3px; background: var(--accent); margin: 20px auto }
.ac-partner-logo p { font-size: .85rem; margin: 0; color: rgba(255, 255, 255, .6) }

/* ---------- INCENTIVI ---------- */
.ac-incentivi { background: #fff }

.ac-inc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px }

@media (max-width: 900px) { .ac-inc-grid { grid-template-columns: 1fr } }

.ac-inc-box { border: 1px solid var(--line); padding: 34px 30px; transition: .25s }
.ac-inc-box:hover { border-color: var(--accent) }

.ac-num {
  font-family: var(--f-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}

.ac-inc-box h3 { font-size: 1.05rem }
.ac-inc-box p { font-size: .9rem; color: var(--grey); margin: 0 }

.ac-fineprint { margin-top: 34px; font-size: .85rem; color: var(--grey) }
.ac-fineprint a { color: var(--accent); font-weight: 500 }

/* ---------- STEPS ---------- */
.ac-steps { background: var(--soft) }

.ac-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
  counter-reset: s;
}

@media (max-width: 900px) { .ac-steps-grid { grid-template-columns: 1fr 1fr } }
@media (max-width: 560px) { .ac-steps-grid { grid-template-columns: 1fr } }

.ac-step { background: #fff; padding: 34px 26px; border-top: 3px solid var(--accent); counter-increment: s }

.ac-step::before {
  content: "0" counter(s);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 12px;
}

.ac-step h3 { font-size: 1.02rem; margin-bottom: 8px }
.ac-step p { font-size: .88rem; color: var(--grey); margin: 0 }

/* ---------- FAQ ---------- */
.ac-faq { background: #fff }
.ac-faq-list { max-width: 820px; margin: 44px auto 0 }
.ac-faq details { border-bottom: 1px solid var(--line); padding: 22px 0 }

.ac-faq summary {
  font-family: var(--f-head);
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  font-size: 1.02rem;
}

.ac-faq summary::-webkit-details-marker { display: none }

.ac-faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  flex-shrink: 0;
}

.ac-faq details[open] summary::after { content: "\2013" }
.ac-faq details p { margin: 14px 0 0; font-size: .94rem; color: var(--grey) }

/* ---------- CTA STRIP ---------- */
.ac-cta-strip { background: var(--soft); border-top: 1px solid var(--line); padding: 64px 0 }

.ac-cta-strip .ac-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.ac-cta-strip h2 { margin-bottom: 10px }
.ac-cta-strip p { margin: 0; color: var(--grey) }
.ac-cta-actions { display: flex; gap: 14px; flex-wrap: wrap }

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .ac-page { line-height: 1.5 }
  .ac-page h1,
  .ac-page h2,
  .ac-page h3 { line-height: 1.1 }
  .ac-page p { margin-bottom: .9em }
  .ac-hero { min-height: 0 }
  .ac-hero .ac-wrap { padding-top: 76px; padding-bottom: 76px }
  .ac-hero h1 { font-size: 1.85rem; margin-bottom: 16px }
  .ac-eyebrow { font-size: .68rem; letter-spacing: .14em; margin-bottom: 10px }
  .ac-lead { font-size: .97rem; margin-bottom: 26px; line-height: 1.55 }
  /* pulsanti piu' compatti: si dimensionano sul testo invece di occupare tutta la riga */
  .ac-btn { padding: 13px 20px; font-size: .72rem; letter-spacing: .04em }
  .ac-hero-cta { gap: 10px }
  .ac-ticks li { margin-bottom: 9px; line-height: 1.5 }
  .ac-section-head { margin-bottom: 36px }
  .ac-stamp { padding: 16px 18px; font-size: .78rem }
  .ac-stamp b { font-size: 1.35rem }
}

/* ---------- INNESTO NEL TEMA ----------
 * archub chiude il contenuto in <main class="content"><div class="container">,
 * e quel .container Bootstrap ha una larghezza FISSA (750/970/1170px). Le
 * sezioni di questa pagina devono correre da bordo a bordo, quindi qui lo
 * annullo: solo su questo template, il resto del sito non si tocca.
 */
/* Selettore volutamente lungo: archub-elementor-addons dichiara
 * `body:not(.elementor-page) #lqd-contents-wrap{padding-top:70px;padding-bottom:70px}`
 * con specificita' (1,1,1). Aggiungendo `body` e `.container` arrivo a (1,2,1)
 * e vinco senza ricorrere a !important. E' lo stesso trattamento che il tema
 * riserva alle pagine Elementor per mandarle a tutta larghezza.
 */
body.page-template-template-climatizzazione-fotovoltaico #lqd-contents-wrap.container {
  width: 100%;
  max-width: none;
  padding: 0;
}

/* Sotto i 1024px l'header di archub passa a position:absolute e si sovrappone
 * al contenuto: la barra mobile e' bianca opaca, quindi coprirebbe la prima
 * riga dell'hero. Il tema compensa gia' cosi' sugli articoli singoli
 * (`body.single-post #wrap{padding-top:84px}` nello style.css del child).
 */
@media (max-width: 1024px) {
  body.page-template-template-climatizzazione-fotovoltaico #wrap { padding-top: 84px }
}

/* Il titlebar del tema e' ridondante: l'hero fa gia' da testata. */
.page-template-template-climatizzazione-fotovoltaico .titlebar { display: none }
