/* Studio Algozzino – tema WordPress (stesso stile del sito statico) */
:root {
  --ink: #1d1b18; --ink-2: #4a463f; --muted: #7a746a;
  --paper: #faf8f5; --paper-2: #f2eee8; --card: #fff; --line: #e4ddd3;
  --accent: #9a7b55; --accent-soft: #f3ece2; --ok: #2f7a55;
  --radius: 10px; --max: 1160px;
  --pad-x: max(24px, calc((100% - var(--max)) / 2));
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,245,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { text-decoration: none; line-height: 1.1; }
.brand strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 25px; letter-spacing: .02em; white-space: nowrap; }
.brand span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 22px; align-items: center; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav-cta { border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px; color: var(--ink) !important; font-weight: 500; }
.nav-cta:hover { background: var(--ink); color: #fff !important; }
.lang { display: flex; gap: 2px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.lang a { text-decoration: none; padding: 3px 10px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Tipografia */
.eyebrow { font-size: 12px !important; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 500; }
h1, h2, h3, .wp-block-heading { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 16px; }
h1, .sa-h1 { font-size: clamp(40px, 5.2vw, 64px); }
h2 { font-size: clamp(32px, 3.6vw, 46px); }
h3 { font-size: 25px; margin-bottom: 8px; }
.lead { font-size: 19px; color: var(--ink-2); margin: 20px 0 30px; max-width: 34em; }
.sa-intro { color: var(--ink-2); max-width: 44em; margin: 0 0 40px; }
.sa-muted { color: var(--muted); font-size: 14.5px; }

/* Sezioni (larghezza piena con contenuto centrato) */
.sa-content > * { margin-top: 0; margin-bottom: 0; }
.sa-section, .sa-hero, .sa-trust { padding: 92px var(--pad-x); }
.sa-hero { padding-top: 56px; padding-bottom: 72px; }
.sa-alt { background: var(--paper-2); }
.sa-page-hero { padding-top: 64px; padding-bottom: 56px; }
.wp-block-group.is-layout-constrained > * { max-width: none !important; }

/* Pulsanti */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; }
.wp-block-button__link, .sa-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; border: 1px solid var(--ink); transition: transform .15s, background .15s; }
.wp-block-button__link:hover, .sa-btn:hover { background: #000; color: #fff; transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.wp-block-button.is-style-wa .wp-block-button__link { background: #1fa855; border-color: #1fa855; color: #fff; }
.wp-block-button.is-style-wa .wp-block-button__link::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.66 15l-1.3 4.76 4.88-1.28A10 10 0 1 0 12 2z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.66 15l-1.3 4.76 4.88-1.28A10 10 0 1 0 12 2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.wp-block-button.is-style-wa .wp-block-button__link:hover { background: #178a45; }

/* Foto */
.sa-photo { margin: 0; }
.sa-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #d9cdbd; }
.sa-cat .sa-photo img { aspect-ratio: 4 / 3.4; }
.sa-tiles .sa-photo img { aspect-ratio: 3 / 4; }

/* Liste */
.wp-block-list { padding-left: 0; list-style: none; }
.hero-points { margin: 26px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.hero-points li::before, .checks li::before { content: "✓"; color: var(--ok); font-weight: 600; margin-right: 10px; }
.checks { display: grid; gap: 6px; margin: 8px 0 24px; }

/* Hero */
.sa-hero-cols { align-items: center !important; gap: 56px !important; }

/* Fascia fiducia */
.sa-trust { padding-top: 26px; padding-bottom: 26px; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sa-trust-cols { gap: 24px !important; margin: 0; }
.sa-trust-cols p { margin: 0; font-size: 14px; color: var(--muted); }
.sa-trust-cols strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); }

/* Servizi */
.sa-cat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin: 0 0 28px !important; }
.sa-cat-cols { gap: 36px !important; margin: 0; }
.sa-cat-cols > .wp-block-column:first-child { flex: 0 0 340px !important; }
.sa-cat p { color: var(--ink-2); }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 0; }
.svc-list li { padding-left: 16px; border-left: 2px solid var(--accent-soft); font-size: 14.5px; color: var(--muted); }
.svc-list strong { display: block; font-weight: 500; font-size: 17px; color: var(--ink); }

/* Card generiche / zona */
.sa-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; height: 100%; }
.sa-card p { color: var(--ink-2); }
.sa-area-cols { gap: 24px !important; }
.sa-near { font-weight: 500; margin: 34px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 14px; background: var(--paper); }

/* Portfolio (anteprima) */
.sa-tiles { gap: 18px !important; }
.sa-tiles h3 { font-size: 23px; margin: 12px 0 2px; }
.sa-tiles p { margin: 0; }

/* Chi sono */
.sa-about-cols { align-items: center !important; gap: 60px !important; }
.sa-about-cols > .wp-block-column:first-child { flex: 0 0 42% !important; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; color: var(--muted); }
.facts strong { display: block; font-weight: 500; font-size: 16px; color: var(--ink); }
.sign { font-family: var(--serif); font-size: 28px; margin-top: 18px; }

/* Come funziona */
.sa-steps { gap: 28px !important; counter-reset: step; }
.sa-steps > .wp-block-column { border-top: 1px solid var(--ink); padding-top: 18px; }
.sa-steps > .wp-block-column::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 30px; color: var(--accent); display: block; margin-bottom: 6px; }
.sa-steps h3 { font-size: 23px; }
.sa-steps p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* Prezzi */
.sa-prices { gap: 24px !important; }
.sa-price { display: flex; flex-direction: column; padding: 34px; }
.sa-price-main { border-color: var(--ink); }
.sa-price .amount { font-family: var(--serif); font-size: 46px; line-height: 1; margin: 14px 0 6px; color: var(--ink); }
.sa-price .amount small { font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* FAQ */
.wp-block-details { border-bottom: 1px solid var(--line); padding: 18px 0; margin: 0; }
.wp-block-details summary { cursor: pointer; font-family: var(--serif); font-size: 23px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--accent); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details p { color: var(--ink-2); margin: 10px 0 0; max-width: 46em; }

/* Contatti (shortcode [studio_contatti]) */
.sa-contact .eyebrow, .sa-contact > h2, .sa-contact .sa-intro { text-align: center; margin-left: auto; margin-right: auto; }
.reach { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 40px; }
.reach-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: transform .15s, border-color .15s; }
.reach-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.reach-card svg { width: 34px; height: 34px; fill: var(--ink); margin-bottom: 6px; }
.reach-card.wa svg { fill: #1fa855; }
.reach-card.tg svg { fill: #2a9fd8; }
.reach-card strong { font-size: 18px; font-weight: 600; }
.reach-card span { font-size: 14px; color: var(--muted); word-break: break-word; }
.contact-form { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: grid; gap: 16px; }
.contact-form h3 { margin-bottom: 4px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.contact-form input[type=text], .contact-form input[type=date], .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; color: var(--ink-2); }
.contact-form .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.contact-form button { justify-self: start; cursor: pointer; font: inherit; }
.contact-form .note { margin: 0; font-size: 14px; color: var(--muted); }
.sa-form-error { max-width: 760px; margin: 0 auto 16px; padding: 14px 18px; border-radius: var(--radius); background: #fbeaea; color: #8a1f1f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reach-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* Portfolio (pagina) */
.sa-gallery { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.sa-grid { gap: 14px !important; margin-bottom: 14px !important; }
.sa-grid .sa-photo img { aspect-ratio: 4 / 5; }
.sa-cta { text-align: center; }
.sa-cta .wp-block-buttons { justify-content: center; }

/* Listino */
.sa-table { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 0 0 16px; }
.sa-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.sa-table th, .sa-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sa-table thead th { background: var(--paper-2); font-weight: 500; }
.sa-table tbody td:first-child { font-weight: 500; }

/* Privacy */
.sa-prose h2 { font-size: 26px; margin: 30px 0 8px; }
.sa-prose p { color: var(--ink-2); max-width: 46em; margin: 0; }

/* Footer */
.site-footer { padding: 40px 0 90px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: #1fa855; color: #fff; border-radius: 999px; padding: 13px 20px; text-decoration: none; font-size: 15px; font-weight: 500; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.wa-float svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 960px) {
  .nav .hide-m { display: none; }
  .reach { grid-template-columns: 1fr 1fr; }
  .sa-cat-cols > .wp-block-column:first-child, .sa-about-cols > .wp-block-column:first-child { flex-basis: 100% !important; }
}
@media (max-width: 781px) {
  .sa-section, .sa-hero { padding-top: 64px; padding-bottom: 64px; }
  .sa-hero { padding-top: 36px; }
  .sa-hero-cols, .sa-about-cols { gap: 32px !important; }
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  .site-header .wrap { padding: 0 16px; gap: 10px; }
  .brand strong { font-size: 19px; }
  .brand span { display: none; }
  .nav { gap: 8px; }
  .nav-cta { padding: 8px 12px; font-size: 14px; }
  .lang a { padding: 8px 9px; }
  .svc-list, .facts, .contact-form .row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .wa-float { padding: 12px 16px; }
  .sa-grid { flex-wrap: wrap !important; }
}
