/*
Theme Name: Fabio Antichi
Theme URI: https://www.fabioantichi.it/
Author: Fabio Antichi
Description: Tema su misura per fabioantichi.it, della stessa famiglia di otellino.it, con i colori del logo. Home con elenco articoli, consulenze, articoli, negozio WooCommerce.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: fabioantichi
*/

:root {
  --plum: #342043; --plum-2: #4A3360; --rasp: #C43768; --rasp-deep: #A82A57; --ochre: #DE9645; --sky: #73BDD0;
  --paper: #FAF7F4; --paper-2: #F1EBE5; --card: #FFFFFF;
  --ink: #24182F; --ink-soft: #4E4358; --muted: #8A8093;
  --line: rgba(52,32,67,.13);
  --display: 'Jost', 'Century Gothic', 'Futura', sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.08; color: inherit; text-wrap: balance; }
p { color: var(--ink-soft); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 768px) { .wrap { padding-left: 20px; padding-right: 20px; } }
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--rasp); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.hand { font-family: var(--hand); font-weight: 600; letter-spacing: 0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--rasp); outline-offset: 3px; }

/* Bottoni */
.btn, .button, button.button, input.button, .wc-block-components-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--plum); color: #fff; padding: 13px 24px; border-radius: 100px; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; white-space: nowrap; font-family: var(--body); transition: transform .2s, background .2s, color .2s; text-decoration: none; line-height: 1.2; }
.btn:hover, .button:hover { transform: translateY(-2px); background: var(--rasp); color: #fff; }
.btn.r { background: var(--rasp); } .btn.r:hover { background: var(--plum); }
.btn.o { background: var(--ochre); color: var(--plum); } .btn.o:hover { background: var(--plum); color: #fff; }
.btn.ghost { background: transparent; color: var(--plum); border: 1.5px solid var(--plum); }
.btn.ghost:hover { background: var(--plum); color: #fff; }
.btn.ghost.w { color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost.w:hover { background: #fff; color: var(--plum); }
.btn.sm { padding: 9px 16px; font-size: 13px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(250,247,244,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.admin-bar .topbar { top: 32px; }
.topbar .row { display: flex; align-items: center; gap: 40px; padding: 12px 32px; max-width: 1400px; margin: 0 auto; }
.topbar .logo img { height: 42px; width: auto; display: block; }
.topbar ul { list-style: none; display: flex; gap: 26px; margin-right: auto; }
.topbar ul a { font-family: var(--display); font-size: 17px; font-weight: 500; opacity: .75; transition: opacity .2s; }
.topbar ul a:hover, .topbar ul a.on { opacity: 1; }
.topbar ul a.on { color: var(--rasp); font-weight: 600; }
.topbar .cart { position: relative; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 100px; border: 1.5px solid var(--line); white-space: nowrap; }
.topbar .cart b { background: var(--rasp); color: #fff; border-radius: 100px; padding: 0 7px; margin-left: 6px; font-size: 12px; }
.menu-mobile { display: none; position: relative; margin-left: auto; }
.menu-mobile summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 100px; border: 1.5px solid var(--plum); }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] summary { background: var(--plum); color: #fff; }
.menu-mobile nav { position: absolute; right: 0; top: calc(100% + 10px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 10px; min-width: 230px; box-shadow: 0 20px 40px -20px rgba(52,32,67,.4); display: flex; flex-direction: column; z-index: 5; }
.menu-mobile nav a { padding: 10px 14px; border-radius: 12px; font-family: var(--display); font-weight: 500; font-size: 17px; }
.menu-mobile nav a:hover { background: var(--paper-2); }
@media (max-width: 1080px) {
  .topbar ul, .topbar .head-cta, .topbar .cart { display: none; }
  .menu-mobile { display: block; }
  .topbar .row { padding: 10px 20px; }
  .topbar .logo img { height: 36px; }
}

/* Footer */
.site-footer { background: var(--plum); color: rgba(255,255,255,.72); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .logo-row img { height: 52px; width: auto; margin-bottom: 18px; }
.site-footer h5 { font-family: var(--display); font-size: 13px; color: var(--ochre); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 16px; font-weight: 600; }
.site-footer p, .site-footer a { font-size: 14px; color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom small, .footer-bottom a { color: rgba(255,255,255,.55); font-size: 13px; }
.pills { position: relative; width: 120px; height: 56px; flex-shrink: 0; }
.pills i { position: absolute; border-radius: 100px; height: 22px; width: 84px; transform: rotate(-38deg); }
.pills i:nth-child(1) { background: var(--ochre); left: 0; top: 30px; }
.pills i:nth-child(2) { background: var(--sky); left: 36px; top: 6px; }
.pills b { position: absolute; left: 30px; top: 6px; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--rasp) 50%, var(--plum-2) 50%); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ===== HOME ===== */
.h-hero { position: relative; overflow: hidden; }
.h-hero::before { content: ""; position: absolute; right: -8%; top: -30%; width: 60%; height: 130%; background: radial-gradient(circle, rgba(115,189,208,.26), transparent 62%); }
.h-hero::after { content: ""; position: absolute; left: -12%; bottom: -40%; width: 50%; height: 100%; background: radial-gradient(circle, rgba(222,150,69,.16), transparent 62%); }
.h-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding-top: 64px; padding-bottom: 56px; position: relative; z-index: 1; }
@media (max-width: 860px) { .h-hero .wrap { grid-template-columns: 1fr; padding-top: 40px; } }
.h-hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 300; letter-spacing: -.025em; color: var(--plum); }
.h-hero h1 b { font-weight: 800; }
.h-hero h1 em { font-style: normal; font-weight: 800; color: var(--rasp); }
.h-hero .note-h { font-family: var(--hand); font-size: 28px; color: var(--rasp); display: inline-block; transform: rotate(-2deg); margin-top: 8px; }
.h-hero p.l { font-size: 18px; margin: 16px 0 24px; max-width: 54ch; }
.h-hero .row { display: flex; gap: 12px; flex-wrap: wrap; }
.h-photo { position: relative; justify-self: center; width: min(100%, 380px); }
.h-photo .ph { aspect-ratio: 4 / 5; border-radius: 220px 220px 28px 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(52,32,67,.55); }
.h-photo .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-photo .sticker { position: absolute; left: -18px; bottom: 30px; background: var(--plum); color: #fff; border-radius: 16px; padding: 12px 16px; transform: rotate(-4deg); font-size: 13px; line-height: 1.3; box-shadow: 0 12px 24px -10px rgba(0,0,0,.4); }
.h-photo .sticker b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--ochre); }
.h-photo .bubble { position: absolute; right: -6px; top: 22px; background: var(--sky); color: var(--plum); font-family: var(--hand); font-size: 24px; font-weight: 700; padding: 8px 16px; border-radius: 18px 18px 4px 18px; transform: rotate(5deg); }
.stats { background: var(--plum); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: 1fr 1fr; } }
.stats .s { padding: 24px 22px; border-right: 1px solid rgba(255,255,255,.12); min-width: 0; }
.stats .s:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); color: var(--ochre); line-height: 1; }
.stats span { font-size: 13px; color: rgba(255,255,255,.75); }
.stats a { text-decoration: underline; text-underline-offset: 3px; color: var(--sky); font-size: 13px; }
.h-sec { padding: 70px 0 10px; }
.h-sec h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 8px; }
.h-sec h2 b { color: var(--rasp); font-weight: 800; }
.serv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 960px) { .serv { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .serv { grid-template-columns: 1fr; } }
.serv a { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.serv a:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(52,32,67,.5); }
.serv a::before { content: ""; position: absolute; right: -20px; top: -20px; width: 70px; height: 70px; border-radius: 50%; opacity: .9; }
.serv a:nth-child(1)::before { background: var(--ochre); } .serv a:nth-child(2)::before { background: var(--sky); } .serv a:nth-child(3)::before { background: var(--rasp); } .serv a:nth-child(4)::before { background: var(--plum); }
.serv b { display: block; font-family: var(--display); font-size: 21px; font-weight: 700; margin-bottom: 6px; color: var(--plum); }
.serv span { font-size: 14.5px; color: var(--ink-soft); }
.book { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; background: var(--paper-2); border-radius: 26px; padding: 34px; }
@media (max-width: 640px) { .book { grid-template-columns: 1fr; padding: 24px; } }
.cover { width: 150px; aspect-ratio: 2 / 3; border-radius: 6px 14px 14px 6px; background: var(--plum); color: #fff; padding: 16px 14px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 14px 18px 32px -12px rgba(52,32,67,.6); transform: rotate(-3deg); position: relative; overflow: hidden; }
.cover::before { content: ""; position: absolute; left: -20px; bottom: 34px; width: 130px; height: 28px; border-radius: 30px; background: var(--ochre); transform: rotate(-38deg); }
.cover::after { content: ""; position: absolute; right: -26px; top: 44px; width: 130px; height: 28px; border-radius: 30px; background: var(--sky); transform: rotate(-38deg); }
.cover b { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1; position: relative; z-index: 1; }
.cover small { font-size: 10px; position: relative; z-index: 1; opacity: .9; }
.book h3 { font-size: 30px; font-weight: 700; color: var(--plum); }
.book p { font-size: 16px; margin: 8px 0 16px; max-width: 60ch; }
.search-box { display: flex; gap: 10px; max-width: 560px; margin-top: 18px; }
.search-box input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 18px; border-radius: 100px; border: 1.5px solid var(--line); background: var(--card); }

/* Elenco articoli */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(52,32,67,.5); }
.pcard .cv { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--plum), var(--plum-2)); display: block; }
.pcard .cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .cv.noimg { display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #fff; }
.pcard .cv.noimg::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--rasp) 50%, var(--ochre) 50%); opacity: .85; }
.pcard .cv.noimg span { font-family: var(--hand); font-size: 22px; color: var(--sky); position: relative; z-index: 1; }
.pcard .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rasp); }
.pcard h3 { font-size: 19px; font-weight: 600; line-height: 1.22; }
.pcard h3 a:hover { color: var(--rasp); }
.pcard p { font-size: 14px; }
.pcard .btn { align-self: flex-start; margin-top: auto; }
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 40px 0 10px; }
.pager a, .pager span { padding: 8px 15px; border-radius: 100px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; background: var(--card); }
.pager .current { background: var(--plum); color: #fff; border-color: var(--plum); }
.pager .dots { border: 0; background: none; }
.archive-head { padding: 60px 0 10px; }
.archive-head h1 { font-size: clamp(38px, 6vw, 70px); font-weight: 300; color: var(--plum); }
.archive-head h1 b { font-weight: 800; color: var(--rasp); }
.archive-head p { font-size: 17px; max-width: 64ch; margin-top: 12px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cats a { font-size: 13.5px; font-weight: 600; padding: 7px 15px; border-radius: 100px; border: 1.5px solid var(--plum); }
.cats a:hover, .cats a.on { background: var(--plum); color: #fff; }

/* ===== CONSULENZA (pagine locali) ===== */
.c-hero { background: linear-gradient(120deg, var(--plum) 0%, var(--plum-2) 100%); color: #fff; position: relative; overflow: hidden; }
.c-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(222,150,69,.45), transparent 65%); }
.c-hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: center; padding-top: 54px; padding-bottom: 54px; position: relative; z-index: 1; }
@media (max-width: 860px) { .c-hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; } }
.c-hero .crumb { font-size: 13px; color: var(--sky); }
.c-hero .crumb a:hover { color: #fff; }
.c-hero h1 { font-size: clamp(32px, 4.8vw, 58px); font-weight: 600; margin: 12px 0 14px; color: #fff; }
.c-hero p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 56ch; }
.c-hero .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.c-hero .ph { border-radius: 24px; overflow: hidden; aspect-ratio: 1; max-width: 300px; justify-self: center; border: 6px solid rgba(255,255,255,.12); }
.c-hero .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badges { background: var(--card); border-bottom: 1px solid var(--line); }
.badges .wrap { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.badges span { font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 100px; background: var(--paper-2); color: var(--plum); }
.badges span b { color: var(--rasp); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps div { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.steps .n { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--sky); line-height: 1; }
.steps b { display: block; font-family: var(--display); font-size: 20px; margin: 8px 0 4px; }
.steps span { font-size: 14.5px; color: var(--ink-soft); }
.hub-group { margin-top: 34px; }
.hub-group h3 { font-size: 24px; margin-bottom: 12px; color: var(--plum); }
.hub-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .hub-list { grid-template-columns: 1fr; } }
.hub-list a { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-family: var(--display); font-weight: 500; font-size: 16.5px; line-height: 1.25; display: flex; gap: 10px; transition: border-color .2s; }
.hub-list a::before { content: "→"; color: var(--rasp); font-weight: 700; }
.hub-list a:hover { border-color: var(--rasp); }

/* ===== ARTICOLO ===== */
.a-head { max-width: 820px; margin: 0 auto; padding: 56px 24px 10px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--rasp); font-weight: 600; }
.a-head h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 600; margin: 14px 0 18px; letter-spacing: -.015em; color: var(--plum); }
.a-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.a-meta .av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--ochre); }
.a-meta .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.a-hero { max-width: 1040px; margin: 28px auto 0; padding: 0 24px; }
.a-hero img { width: 100%; border-radius: 20px; display: block; }
.a-body { max-width: 740px; margin: 0 auto; padding: 36px 24px 20px; }
.a-body > * + * { margin-top: 18px; }
.a-body p, .a-body li { font-size: 18px; line-height: 1.74; color: var(--ink-soft); }
.a-body h1 { font-size: 34px; margin-top: 42px; }
.a-body h2 { font-size: 32px; margin-top: 44px; color: var(--plum); }
.a-body h3 { font-size: 25px; margin-top: 34px; color: var(--plum); }
.a-body h4 { font-size: 20px; margin-top: 28px; }
.a-body ul, .a-body ol { padding-left: 1.3em; }
.a-body ul li::marker { color: var(--rasp); }
.a-body ol li::marker { color: var(--rasp); font-weight: 700; }
.a-body a { color: var(--rasp); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.a-body strong { color: var(--ink); }
.a-body img { border-radius: 14px; }
.a-body blockquote { border-left: 4px solid var(--ochre); background: var(--card); border-radius: 0 16px 16px 0; padding: 16px 20px; font-size: 18px; }
.a-body .wp-block-table, .a-body table { display: block; overflow-x: auto; }
.a-body table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); }
.a-body th, .a-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.a-body th { background: var(--paper-2); font-size: 13px; }
.a-body hr { border: 0; border-top: 1px dashed var(--line); margin: 34px 0; }
.a-body iframe, .a-body video { max-width: 100%; border-radius: 14px; }
.a-body .elementor { margin-top: 0; }
.readmore { max-width: 1040px; margin: 0 auto; padding: 10px 24px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .readmore { grid-template-columns: 1fr; } }
.readmore a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; transition: border-color .2s; }
.readmore a:hover { border-color: var(--rasp); }
.readmore .k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rasp); }
.readmore b { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; margin-top: 6px; line-height: 1.2; }

/* Pagina generica / pagine Elementor */
.page-head { padding: 56px 0 10px; }
.page-head h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 300; color: var(--plum); }
.page-head h1 b { font-weight: 800; color: var(--rasp); }
.page-body { padding: 20px 0 40px; }
.page-body.narrow { max-width: 820px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.page-body.narrow > * + * { margin-top: 16px; }
.page-body.narrow p, .page-body.narrow li { font-size: 17px; line-height: 1.7; }
.page-body.narrow ul, .page-body.narrow ol { padding-left: 1.3em; }
.page-body.narrow a { color: var(--rasp); text-decoration: underline; }

/* Blocco CTA "parliamone" */
.cta-wrap { padding: 40px 0 90px; }
.cta { border-radius: 28px; padding: 42px; position: relative; overflow: hidden; }
.cta-a { background: var(--plum); color: #fff; }
.cta-a::after { content: ""; position: absolute; right: -70px; top: -70px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(196,55,104,.5), transparent 65%); }
.cta-b { background: linear-gradient(120deg, #FDE9D3, #E3F3F7); }
.cta-c { background: var(--card); border: 2px dashed rgba(52,32,67,.25); }
.cta-grid { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; position: relative; z-index: 1; }
.cta .pic { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; border: 5px solid var(--ochre); transform: rotate(-4deg); }
.cta .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.cta h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); font-weight: 300; letter-spacing: -.02em; line-height: 1.03; }
.cta h2 b { font-weight: 800; }
.cta-a h2 { color: #fff; } .cta-a h2 b { color: var(--ochre); }
.cta-b h2 { color: var(--plum); } .cta-b h2 b { color: var(--rasp); }
.cta-c h2 b { color: var(--rasp); }
.cta p { font-size: 16.5px; margin: 12px 0 20px; max-width: 60ch; }
.cta-a p { color: rgba(255,255,255,.8); }
.cta .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta .scribble { font-family: var(--hand); font-size: 23px; margin-left: 6px; }
.cta-a .scribble { color: var(--sky); } .cta-b .scribble, .cta-c .scribble { color: var(--rasp); }
.cta .where { margin-top: 14px; font-size: 13px; opacity: .75; }
@media (max-width: 700px) { .cta { padding: 30px 22px; } .cta-grid { grid-template-columns: 1fr; gap: 18px; } .cta .pic { width: 100px; height: 100px; } }

/* 404 */
.nf .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 40px; }
.nf h1 { font-size: clamp(64px, 12vw, 150px); color: var(--rasp); font-weight: 800; }
.nf p { font-size: 19px; margin: 12px 0 24px; max-width: 46ch; }
.nf .ph { width: 280px; border-radius: 24px; overflow: hidden; transform: rotate(3deg); }
.nf .ph img { display: block; width: 100%; }
@media (max-width: 760px) { .nf .wrap { grid-template-columns: 1fr; } .nf .ph { width: 200px; } }

/* ===== WOOCOMMERCE ===== */
.shop-head { padding: 54px 0 6px; }
.shop-head h1 { font-size: clamp(38px, 6vw, 70px); font-weight: 300; color: var(--plum); }
.shop-head h1 b { font-weight: 800; color: var(--rasp); }
.shop-head .note-h { font-family: var(--hand); font-size: 26px; color: var(--ochre); display: block; transform: rotate(-1deg); }
.wc-wrap { padding-top: 20px; padding-bottom: 50px; }
.woocommerce ul.products { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .woocommerce ul.products { grid-template-columns: 1fr; } }
.woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; position: relative; padding: 0 !important; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; }
.fa-cv { aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 18px; color: #fff; position: relative; overflow: hidden; }
.fa-cv b { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.12; position: relative; z-index: 1; max-width: 82%; }
.fa-cv::after { content: "▶"; position: absolute; right: 16px; top: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.fa-cv.c0 { background: linear-gradient(135deg, var(--rasp), var(--plum)); }
.fa-cv.c1 { background: linear-gradient(135deg, var(--sky), #3E8EA6); }
.fa-cv.c2 { background: linear-gradient(135deg, var(--ochre), #B66A1F); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--display); font-size: 18px !important; font-weight: 600; padding: 16px 18px 4px !important; color: var(--ink); }
.woocommerce ul.products li.product .price { padding: 0 18px; color: var(--rasp) !important; font-family: var(--display); font-weight: 800; font-size: 26px !important; display: flex; gap: 10px; align-items: baseline; margin-bottom: 14px !important; }
.woocommerce ul.products li.product .price del { color: var(--muted); font-size: 15px; font-weight: 500; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin: auto 18px 18px !important; align-self: flex-start; }
.woocommerce span.onsale { background: var(--ochre) !important; color: var(--plum) !important; border-radius: 100px !important; min-height: 0 !important; min-width: 0 !important; line-height: 1 !important; padding: 7px 12px !important; font-size: 12px !important; font-weight: 700; top: 12px !important; left: 12px !important; right: auto !important; margin: 0 !important; z-index: 2; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 18px !important; font-size: 14px; color: var(--muted); }
.woocommerce .woocommerce-ordering select { font: inherit; padding: 8px 12px; border-radius: 100px; border: 1.5px solid var(--line); background: var(--card); }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .woocommerce div.product { grid-template-columns: 1fr; } }
.woocommerce div.product .fa-cv { border-radius: 24px; aspect-ratio: 4 / 3; }
.woocommerce div.product .fa-cv b { font-size: 30px; }
.woocommerce div.product .woocommerce-product-gallery { display: none; }
.woocommerce div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .product_title { font-size: clamp(30px, 4vw, 46px); font-weight: 600; color: var(--plum); }
.woocommerce div.product p.price { color: var(--rasp) !important; font-family: var(--display); font-weight: 800; font-size: 34px !important; margin: 14px 0 !important; }
.woocommerce div.product p.price del { color: var(--muted); font-size: 18px; font-weight: 500; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: center; margin: 20px 0 !important; }
.woocommerce .quantity .qty { font: inherit; padding: 11px; border-radius: 12px; border: 1.5px solid var(--line); width: 72px; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 16px !important; display: flex; gap: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 1.5px solid var(--line) !important; border-radius: 100px !important; background: var(--card) !important; margin: 0 !important; padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 8px 16px !important; font-weight: 600 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--plum) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.woocommerce div.product .woocommerce-tabs .panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.woocommerce div.product .related { grid-column: 1 / -1; }
.woocommerce div.product .related > h2 { font-size: 28px; margin-bottom: 16px; }
.woocommerce .product_meta { font-size: 13px; color: var(--muted); }
.woocommerce-cart table.shop_table, .woocommerce-checkout table.shop_table, .woocommerce table.shop_table { background: var(--card); border-radius: 18px !important; border: 1px solid var(--line) !important; border-collapse: separate !important; overflow: hidden; }
.woocommerce table.shop_table th { font-family: var(--display); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection--single { font: inherit; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); min-height: 46px; }
.woocommerce form .form-row label { font-weight: 600; font-size: 14px; color: var(--plum); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 16px; border-top-color: var(--rasp) !important; background: var(--card) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--rasp) !important; }
.woocommerce #payment { background: var(--paper-2) !important; border-radius: 18px !important; }
.woocommerce #payment #place_order, .woocommerce .checkout-button, .woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--rasp) !important; color: #fff !important; border-radius: 100px !important; padding: 15px 28px !important; font-size: 15px !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--plum); color: #fff; border-radius: 100px; padding: 12px 22px; font-weight: 600; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--rasp); color: #fff; }
.trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Moduli Elementor (contatti, newsletter) allineati al tema */
.elementor-form .elementor-field-group .elementor-field-textual, .elementor-form input[type=email], .elementor-form input[type=text], .elementor-form input[type=tel], .elementor-form textarea { font-family: var(--body) !important; font-size: 16px !important; border-radius: 14px !important; border: 1.5px solid var(--line) !important; background: var(--card) !important; padding: 13px 16px !important; color: var(--ink) !important; }
.elementor-form .elementor-field-textual:focus { border-color: var(--rasp) !important; box-shadow: 0 0 0 3px rgba(196,55,104,.15) !important; }
.elementor-form .elementor-button, .elementor-button { font-family: var(--body) !important; background: var(--rasp) !important; color: #fff !important; border-radius: 100px !important; padding: 14px 26px !important; font-weight: 600 !important; }
.elementor-form .elementor-button:hover, .elementor-button:hover { background: var(--plum) !important; }
.elementor-field-type-acceptance label { font-size: 14px; color: var(--ink-soft); }
.page-body .elementor-heading-title { font-family: var(--display) !important; color: var(--plum); }

/* Pagina del libro: il titolo "Cosa troverai nel libro" si sovrapponeva al sottotitolo (difetto preesistente) */
.ct-title-wrap { padding-bottom: 34px; }

/* ===== Tre passi come sequenza (non bottoni) ===== */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 30px; counter-reset: step; }
.steps div { background: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 34px 0 0 !important; position: relative; box-shadow: none !important; }
.steps .n { width: 66px; height: 66px; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; font-size: 30px !important; color: #fff !important; position: relative; z-index: 1; box-shadow: 0 10px 22px -10px rgba(52,32,67,.55); margin-bottom: 18px; }
.steps div:nth-child(1) .n { background: var(--sky); }
.steps div:nth-child(2) .n { background: var(--rasp); }
.steps div:nth-child(3) .n { background: var(--plum); }
.steps div::before { counter-increment: step; content: "Passo " counter(step); display: block; font-family: var(--hand); font-size: 22px; color: var(--rasp); position: absolute; left: 80px; top: 18px; }
.steps div:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: 80px; right: 18px; height: 3px; margin-top: 18px; background: repeating-linear-gradient(90deg, var(--ochre) 0 10px, transparent 10px 18px); }
.steps div:not(:last-child) .n::after { content: "›"; position: absolute; left: calc(100% + 14px); top: 50%; }
.steps b { font-size: 22px !important; margin: 0 0 6px !important; color: var(--plum); }
.steps span { display: block; max-width: 30ch; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps div { padding: 0 0 0 84px !important; min-height: 66px; }
  .steps .n { position: absolute; left: 0; top: 0; margin: 0; }
  .steps div::before { position: static; margin-bottom: 2px; }
  .steps div:not(:last-child)::after { top: 74px; left: 32px; right: auto; width: 3px; height: calc(100% - 50px); margin-top: 0; background: repeating-linear-gradient(180deg, var(--ochre) 0 10px, transparent 10px 18px); }
}
.steps div:not(:last-child) .n::after { display: none; }

/* ===== Ogni bottone mostra che è cliccabile ===== */
a.btn:not(:has(.arrow)):not([href^="mailto:"]):not([href^="tel:"])::after,
button.btn:not(:has(.arrow))::after,
.woocommerce a.button::after, .woocommerce button.button::after,
.elementor-button .elementor-button-text::after { content: "→"; display: inline-block; margin-left: 2px; transition: transform .2s; }
a.btn:hover::after, button.btn:hover::after, .woocommerce a.button:hover::after, .woocommerce button.button:hover::after, .elementor-button:hover .elementor-button-text::after { transform: translateX(4px); }
a.btn[href^="mailto:"]::before { content: "✉"; font-size: 15px; line-height: 1; }
a.btn[href^="tel:"]::before { content: "☎"; font-size: 15px; line-height: 1; }
.woocommerce a.added_to_cart::after { content: " →"; }
.woocommerce #payment #place_order::after { content: none; }
.hub-list a { cursor: pointer; }
.badges span { cursor: default; }

/* Etichette informative sotto la testata: testo con spunte, non pillole */
.badges .wrap { gap: 8px 26px; }
.badges span { background: none !important; padding: 0 !important; border-radius: 0 !important; font-weight: 500; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.badges span::before { content: "✓"; color: var(--rasp); font-weight: 800; }

/* Home: foto rettangolare con angoli arrotondati */
.h-photo .ph { border-radius: 28px; aspect-ratio: 4 / 5; }
.h-photo .ph img { object-position: 50% 30%; }

/* Chi sono: foto accanto al titolo */
.chi-head { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; padding: 0 24px; }
.chi-head .a-head { padding-left: 0; padding-right: 0; margin: 0; }
.chi-photo { position: relative; margin: 50px 0 0; }
.chi-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 28px; display: block; box-shadow: 0 30px 60px -30px rgba(52,32,67,.55); }
.chi-photo figcaption { position: absolute; left: -16px; bottom: 26px; background: var(--sky); color: var(--plum); font-family: var(--hand); font-size: 24px; font-weight: 700; padding: 8px 16px; border-radius: 18px 18px 18px 4px; transform: rotate(-4deg); }
@media (max-width: 800px) { .chi-head { grid-template-columns: 1fr; } .chi-photo { margin: 10px 0 0; max-width: 340px; } }

/* Foto consulenze: già ritagliata quadrata sul volto */
.c-hero .ph img { object-position: 50% 50%; }
