/*
Theme Name: AggiustaCasa
Theme URI: https://aggiustacasa.it
Author: AggiustaCasa
Description: Tema per AggiustaCasa: home con listino, stima del prezzo e modulo di richiesta con foto. Impostazioni in Aspetto › AggiustaCasa – Impostazioni.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: aggiustacasa
*/

/* AggiustaCasa – home */
:root{--ink:#10201B;--green:#12382F;--green2:#2E7D5B;--soft:#F2F6F4;--line:#E3E8E5;--muted:#5A6863;--accent:#F5B83D}
.ac *,.ac *::before,.ac *::after{box-sizing:border-box}
body.ac{margin:0;background:#fff;color:var(--ink);font-family:'Onest',system-ui,sans-serif;font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
.ac h1,.ac h2,.ac p,.ac figure,.ac blockquote{margin:0}
.ac a{color:var(--green)}
.ac img{max-width:100%;display:block}
.ac [hidden]{display:none!important}
.ac-wrap{max-width:1180px;margin:0 auto;padding-left:20px;padding-right:20px}
.ac-muted{color:var(--muted);font-size:15px;display:block}
.ac-center{text-align:center}
.ac-green{color:var(--green2)}
.ac-accent-t{color:var(--accent)!important}

/* bottoni */
.ac-btn{font:inherit;cursor:pointer;border:0;text-decoration:none;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 20px;border-radius:16px}
.ac-pill{border-radius:999px}
.ac-big{width:100%;min-height:58px;font-size:18px}
.ac-btn-accent{background:var(--accent);color:var(--ink)!important}
.ac-btn-dark{background:var(--green);color:#fff!important}
.ac-btn-ink{background:var(--ink);color:#fff!important}
.ac-btn:disabled{opacity:.6;cursor:default}
.ac-link{font:inherit;background:none;border:0;color:var(--green2);font-weight:700;cursor:pointer;min-height:44px;padding:0}

/* nav */
.ac-nav{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line)}
.ac-nav-in{display:flex;gap:16px;justify-content:space-between;align-items:center;padding-top:14px;padding-bottom:14px}
.ac-logo{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;font-size:21px;letter-spacing:-.4px;color:var(--ink)!important}
.ac-logo-ic{width:38px;height:38px;border-radius:12px;background:var(--green);display:flex;align-items:center;justify-content:center}
.ac-menu{display:flex;gap:28px;font-weight:500}
.ac-menu a{text-decoration:none}

/* hero */
.ac-hero{background:var(--soft)}
.ac-hero-in{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start;padding-top:56px;padding-bottom:64px}
.ac-hero-text{flex:1 1 440px;display:flex;flex-direction:column;gap:22px;padding-top:12px}
.ac-chip{align-self:flex-start;background:#fff;border:1px solid #D5DED9;border-radius:999px;padding:6px 14px;font-size:14px;font-weight:600;color:#2E5B4C}
.ac h1{font-weight:800;font-size:clamp(38px,5.4vw,66px);line-height:1.02;letter-spacing:-2px}
.ac-lead{font-size:20px;color:#3B4A45;max-width:520px}
.ac-proof{display:flex;align-items:center;gap:14px;background:#fff;border-radius:18px;padding:16px 18px;max-width:520px;border:1px solid var(--line);font-size:15px;color:#3B4A45}
.ac-avs{display:flex;flex:0 0 auto}
.ac-avs span{width:40px;height:40px;border-radius:50%;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center;border:2px solid #fff;margin-left:-10px}
.ac-avs span:first-child{margin-left:0}

/* card richiesta */
.ac-card{flex:1 1 440px;background:#fff;border-radius:28px;padding:28px;box-shadow:0 1px 2px rgba(16,32,27,.06),0 12px 32px rgba(16,32,27,.08);scroll-margin-top:80px}
.ac-card h2{font-size:24px;font-weight:800;letter-spacing:-.5px}
.ac-step{display:flex;flex-direction:column;gap:16px}
.ac-steps{display:flex;gap:8px;font-size:13px;font-weight:700;margin-bottom:18px}
.ac-steps span{flex:1 1 0;padding:8px 0;text-align:center;border-radius:999px;background:var(--soft);color:var(--muted)}
.ac-steps span.is-on{background:var(--green);color:#fff}
.ac-row-b{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.ac-rail{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.ac-rail::-webkit-scrollbar{display:none}
.ac-cat{font:inherit;cursor:pointer;white-space:nowrap;border-radius:999px;padding:8px 14px;min-height:40px;font-size:14px;font-weight:700;background:#fff;color:var(--ink);border:1.5px solid #D5DED9}
.ac-cat.is-on{background:var(--green);color:#fff;border-color:var(--green)}
.ac-jobs{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.ac-job{font:inherit;text-align:left;cursor:pointer;border-radius:16px;padding:14px;min-height:84px;display:flex;flex-direction:column;justify-content:space-between;gap:6px;background:#fff;border:2px solid var(--line);color:var(--ink)}
.ac-job-n{font-weight:600;font-size:15px;line-height:1.3}
.ac-job-b{display:flex;justify-content:space-between;align-items:center;font-size:17px}
.ac-dot{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid #C9D3CE;background:#fff}
.ac-job[aria-pressed=true]{background:#E7F1EC;border-color:var(--green2)}
.ac-job[aria-pressed=true] .ac-dot{background:var(--green2);border-color:var(--green2)}
.ac-total{background:var(--soft);border-radius:18px;padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.ac-total strong{display:block;font-weight:800;font-size:30px;letter-spacing:-1px}
.ac-save{background:#D8F0E2;color:#1C5C3F;border-radius:999px;padding:6px 12px;font-size:14px;font-weight:700}
.ac-note{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:#3B4A45;background:#FFF6E0;border-radius:14px;padding:12px 14px}
.ac-note svg{flex:0 0 auto;margin-top:2px}
.ac-summary{background:var(--soft);border-radius:14px;padding:12px 14px;font-size:15px}
.ac-grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.ac-step label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:15px}
.ac-step input[type=text],.ac-step input[type=tel],.ac-step input[type=date],.ac-step select,.ac-step textarea{font:inherit;font-weight:400;font-size:16px;border:1.5px solid #C9D3CE;border-radius:12px;padding:12px 14px;min-height:48px;background:#fff;color:var(--ink);width:100%}
.ac-step textarea{resize:vertical}
.ac-step input:focus,.ac-step select:focus,.ac-step textarea:focus{outline:3px solid rgba(46,125,91,.35);border-color:var(--green2)}
.ac-drop{align-items:center;text-align:center;border:2px dashed #9FB5AB;border-radius:16px;padding:20px;cursor:pointer;background:#F7FAF8}
.ac-drop input{font-size:14px;max-width:100%}
.ac-thumbs{display:flex;gap:8px;flex-wrap:wrap}
.ac-thumbs img{width:64px;height:64px;object-fit:cover;border-radius:10px}
.ac-check{flex-direction:row!important;gap:10px!important;align-items:flex-start;font-weight:400!important;font-size:14px!important;color:#3B4A45}
.ac-check input{width:20px;height:20px;margin:2px 0 0;flex:0 0 auto}
.ac-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ac-err{color:#A4291D;font-weight:600;font-size:15px;margin-bottom:12px}
.ac-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:24px 8px}
.ac-done-ic{width:64px;height:64px;border-radius:50%;background:#D8F0E2;display:flex;align-items:center;justify-content:center}

/* promesse */
.ac-promises{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;padding-top:56px;padding-bottom:56px}
.ac-promise{display:flex;gap:14px;align-items:flex-start}
.ac-promise strong{display:block;font-size:18px}
.ac-promise-ic{flex:0 0 auto;width:44px;height:44px;border-radius:14px;background:#E7F1EC;display:flex;align-items:center;justify-content:center}

/* squadra */
.ac-team{background:var(--green);color:#fff}
.ac-team .ac-wrap{padding-top:80px;padding-bottom:80px;display:flex;flex-direction:column;gap:36px}
.ac-head{display:flex;flex-direction:column;gap:12px;max-width:680px}
.ac-head h2{font-weight:800;font-size:clamp(32px,4.4vw,52px);line-height:1.05;letter-spacing:-1.5px}
.ac-head p{font-size:19px;color:#CFE0D8}
.ac-kicker{font-weight:700;color:var(--green2);font-size:15px;display:block}
.ac-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}
.ac-person{background:#1B4A3E;border-radius:24px;overflow:hidden}
.ac-person img,.ac-ph{height:320px;width:100%;object-fit:cover}
.ac-ph{background:#DCE7E2;color:#2E5B4C;font-weight:600;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px}
.ac-person-t{padding:20px;display:flex;flex-direction:column;gap:4px;color:#CFE0D8}
.ac-person-t strong{font-size:22px;color:#fff}
.ac-big-job{background:var(--accent);color:var(--ink);border-radius:24px;padding:28px;display:flex;flex-direction:column;gap:16px;justify-content:space-between;align-items:flex-start}
.ac-big-job strong{display:block;font-size:26px;line-height:1.15;letter-spacing:-.5px;margin-bottom:10px}

/* sezioni */
.ac-sec{padding-top:80px;padding-bottom:80px;display:flex;flex-direction:column;gap:28px}
.ac-h2{font-weight:800;font-size:clamp(30px,4vw,46px);letter-spacing:-1.2px;line-height:1.1}
.ac-how{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.ac-how>div{background:var(--soft);border-radius:24px;padding:28px;display:flex;flex-direction:column;gap:10px;color:#3B4A45}
.ac-how strong{font-size:21px;color:var(--ink)}
.ac-num{width:44px;height:44px;border-radius:50%;background:var(--green);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}
.ac-soft{background:var(--soft)}
.ac-reviews{gap:16px;scroll-snap-type:x mandatory;padding-bottom:8px}
.ac-review{flex:0 0 300px;scroll-snap-align:start;background:#fff;border-radius:24px;padding:24px;display:flex;flex-direction:column;gap:16px;justify-content:space-between}
.ac-review figcaption{display:flex;align-items:center;gap:12px;line-height:1.3}
.ac-review small{display:block;font-size:14px;color:var(--muted)}
.ac-av{width:40px;height:40px;border-radius:50%;background:#E7F1EC;color:var(--green);font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.ac-two{flex-direction:row;flex-wrap:wrap;gap:20px}
.ac-box{flex:1 1 440px;border:1px solid var(--line);border-radius:28px;padding:32px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.ac-box h2{font-weight:800;font-size:32px;letter-spacing:-1px;line-height:1.1}
.ac-zones{display:flex;flex-wrap:wrap;gap:8px}
.ac-zones span{background:var(--soft);border-radius:999px;padding:8px 14px;font-weight:500;font-size:15px}
.ac-faq{max-width:820px;margin:0 auto;padding:0 20px 80px;display:flex;flex-direction:column;gap:10px}
.ac-faq h2{margin-bottom:10px}
.ac-faq details{background:var(--soft);border-radius:18px;padding:0 20px}
.ac-faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;font-weight:700;min-height:44px}
.ac-faq summary::-webkit-details-marker{display:none}
.ac-chev{flex:0 0 auto;transition:transform .2s}
.ac-faq details[open] .ac-chev{transform:rotate(180deg)}
.ac-faq details p{padding:0 0 18px;color:#3B4A45}

/* footer */
.ac-foot{background:#0B231D;color:#CFE0D8;font-size:15px}
.ac-foot a{color:#CFE0D8}
.ac-foot-in{padding-top:48px;padding-bottom:48px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:28px}
.ac-foot-in>div{display:flex;flex-direction:column;gap:8px}
.ac-foot strong{color:#fff}
.ac-foot-logo{font-size:21px}

/* barra fissa telefono */
.ac-mbar{display:none}
@media (max-width:720px){
  .ac-menu{display:none}
  .ac-card{padding:20px;border-radius:22px}
  .ac-hero-in{padding-top:32px;gap:28px}
  body.ac{padding-bottom:84px}
  .ac-mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;gap:10px;padding:12px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(16,32,27,.08)}
  .ac-mbar .ac-btn{flex:1 1 auto;min-height:54px;border-radius:14px;font-weight:800}
  .ac-call{flex:0 0 54px;background:var(--soft);color:var(--ink)!important;border-radius:14px;min-height:54px;display:flex;align-items:center;justify-content:center}
}
@media (prefers-reduced-motion:reduce){.ac-chev{transition:none}}

/* pagine interne */
body.ac{min-height:100vh}
.admin-bar .ac-nav{top:32px}
@media (max-width:782px){.admin-bar .ac-nav{top:46px}}
.ac-page{max-width:820px;margin:0 auto;padding:56px 20px 80px}
.ac-content{margin-bottom:40px}
.ac-content h1{font-weight:800;font-size:clamp(32px,5vw,48px);letter-spacing:-1.2px;line-height:1.1;margin-bottom:24px}
.ac-content h2{font-weight:800;font-size:24px;letter-spacing:-.4px;margin:32px 0 10px}
.ac-content p,.ac-content ul,.ac-content ol{margin:0 0 16px;color:#3B4A45}
.ac-content img{height:auto;border-radius:16px}
.ac-page-cta{background:var(--soft);border-radius:24px;padding:24px;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center}
.ac-page-cta strong{font-size:20px}

/* i nostri lavori */
.ac-wrapflex{flex-wrap:wrap}
.ac-job-case{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start;border:1px solid var(--line);border-radius:28px;padding:24px}
.ac-case-text{flex:1 1 260px;display:flex;flex-direction:column;gap:10px}
.ac-case-text h3{margin:0;font-weight:800;font-size:26px;letter-spacing:-.5px;line-height:1.15}
.ac-case-text p{margin:0;color:#3B4A45}
.ac-case-photos{flex:3 1 560px;gap:12px;scroll-snap-type:x mandatory;min-width:0}
.ac-case-ph{position:relative;flex:0 0 240px;scroll-snap-align:start;border-radius:18px;overflow:hidden;display:block;background:var(--soft)}
.ac-case-ph img{width:100%;height:320px;object-fit:cover}
.ac-tag{position:absolute;left:10px;top:10px;background:#fff;color:var(--ink);font-weight:800;font-size:13px;padding:5px 10px;border-radius:999px}
.ac-tag-dopo{background:var(--accent)}
.ac-tag-prima{background:var(--ink);color:#fff}
@media (max-width:720px){.ac-job-case{padding:16px;border-radius:22px}.ac-case-ph{flex-basis:72%}}
