/*
Theme Name: TuoWeb
Theme URI: https://tuoweb.eu
Author: Web Prato S.r.l.
Author URI: https://webprato.it
Description: Tema di tuoweb.eu – strumenti per domini, email e siti.
Version: 0.1.0
Requires PHP: 8.1
Text Domain: tuoweb
*/

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('assets/fonts/plex-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('assets/fonts/plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/plex-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-style: normal; font-display: swap; src: url('assets/fonts/plex-mono-600.woff2') format('woff2'); }

:root {
  --tuoweb-ink: #0f1b2d; --tuoweb-muted: #4a5568; --tuoweb-line: #e1e5eb; --tuoweb-ground: #f5f6f8;
  --tuoweb-accent: #0b7a63; --tuoweb-accent-dark: #0b5d4e; --tuoweb-mint: #8fe3cf; --tuoweb-navy-2: #132640; --tuoweb-navy-line: #1e2f48;
  --tuoweb-sans: 'IBM Plex Sans', system-ui, sans-serif; --tuoweb-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--tuoweb-ground); color: var(--tuoweb-ink); font-family: var(--tuoweb-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--tuoweb-accent-dark); }
a:hover { color: #063f35; }
img { max-width: 100%; height: auto; }
.tw-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text, .tw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tw-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 16px; background: #fff; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--tuoweb-accent); outline-offset: 2px; }

/* Header */
.tw-header { background: #fff; border-bottom: 1px solid var(--tuoweb-line); }
.tw-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.tw-logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--tuoweb-ink); }
.tw-logo__mark { font-family: var(--tuoweb-mono); font-weight: 600; font-size: 24px; letter-spacing: -0.5px; }
.tw-logo__mark b { color: var(--tuoweb-accent); font-weight: 600; }
.tw-logo__by { font-size: 13px; color: var(--tuoweb-muted); }
.tw-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.tw-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; color: var(--tuoweb-ink); font-weight: 500; font-size: 15px; border-radius: 8px; }
.tw-nav a:hover { background: var(--tuoweb-ground); }

/* Hero */
.tw-hero { background: var(--tuoweb-ink); color: #fff; overflow: hidden; }
.tw-hero__in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.tw-hero__text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tw-eyebrow { margin: 0; font-family: var(--tuoweb-mono); font-size: 14px; color: var(--tuoweb-mint); }
.tw-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -1px; }
.tw-hero__lead { margin: 0; font-size: 18px; line-height: 1.5; color: #c9d2de; }
.tw-hero__form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tw-hero__form input { flex: 1 1 260px; min-width: 0; height: 56px; padding: 0 18px; border: 2px solid #3a4a63; border-radius: 10px; background: #fff; color: var(--tuoweb-ink); font-family: var(--tuoweb-mono); font-size: 18px; }
.tw-hero__form button { height: 56px; padding: 0 28px; border: 0; border-radius: 10px; background: var(--tuoweb-accent); color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.tw-hero__form button:hover { background: #0d8c72; }
.tw-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tw-chips span { font-size: 14px; color: #c9d2de; }
.tw-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #3a4a63; border-radius: 999px; color: #fff; text-decoration: none; font-size: 14px; }
.tw-chips a:hover { border-color: var(--tuoweb-mint); color: #fff; }
.tw-hero__art { flex: 1 1 420px; min-width: 0; position: relative; min-height: 460px; }
.tw-hero__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tw-sample { position: absolute; right: 0; bottom: 0; width: 280px; max-width: 100%; background: #fff; color: var(--tuoweb-ink); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.tw-sample__head { display: flex; justify-content: space-between; align-items: center; }
.tw-sample__head span:first-child { font-family: var(--tuoweb-mono); font-weight: 600; font-size: 15px; }
.tw-sample__score { font-weight: 700; font-size: 20px; color: #8a4b00; }
.tw-sample__score small { font-size: 12px; color: var(--tuoweb-muted); }
.tw-sample__row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.tw-sample__row--ok { background: #eef8f5; } .tw-sample__row--ok b { color: #0b5d4e; }
.tw-sample__row--err { background: #fdecec; } .tw-sample__row--err b { color: #a61b1b; }
.tw-sample__row--warn { background: #fff4e5; } .tw-sample__row--warn b { color: #8a4b00; }
.tw-sample__note { font-size: 12px; color: var(--tuoweb-muted); }
@media (max-width: 560px) { .tw-hero__art { min-height: 380px; } }

@keyframes tw-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes tw-dash { to { stroke-dashoffset: -40; } }
.tw-pulse { animation: tw-pulse 2.4s ease-in-out infinite; }
.tw-flow { stroke-dasharray: 4 6; animation: tw-dash 1.6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .tw-pulse, .tw-flow { animation: none; } }

/* Sezioni */
.tw-section { padding-top: 56px; padding-bottom: 56px; }
.tw-section__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.tw-section__head h2 { margin: 0; font-size: 32px; letter-spacing: -0.5px; line-height: 1.2; }
.tw-section__head p { margin: 0; font-size: 17px; color: var(--tuoweb-muted); }
.tw-needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tw-need { background: #fff; border: 1px solid var(--tuoweb-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--tuoweb-ink); display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.tw-need:hover { color: var(--tuoweb-ink); border-color: var(--tuoweb-accent); box-shadow: 0 8px 24px rgba(15,27,45,.1); }
.tw-need__art { background: var(--area-bg); height: 150px; display: flex; align-items: center; justify-content: center; }
.tw-need__art svg { width: 200px; height: 110px; }
.tw-need__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--area-accent); }
.tw-need:hover { border-color: var(--area-accent); }
.tw-need h3 { margin: 0; font-size: 20px; }
.tw-need p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--tuoweb-muted); }
.tw-need--cta { background: var(--tuoweb-accent); color: #fff; border: 0; padding: 26px; justify-content: space-between; gap: 16px; min-height: 240px; }
.tw-need--cta:hover { color: #fff; background: var(--tuoweb-accent-dark); }
.tw-need--cta { background: var(--tuoweb-ink); }
.tw-need--cta:hover { background: #1b2c45; }
.tw-need--cta .tw-need__body { border-top: 0; }
.tw-need--cta p { color: #c9d2de; }
.tw-need--cta span { color: var(--tuoweb-mint); }
.tw-need--cta svg { width: 56px; height: 56px; background: none; }
.tw-need--cta h3 { font-size: 22px; }
.tw-need--cta p { color: #e6f4f0; }
.tw-need--cta span { font-weight: 600; }

/* Pagine interne */
/* Colori per area */
.tw-area--neutral   { --area-bg: #ffffff; --area-accent: #0f1b2d; --area-text: #0f1b2d; --area-line: #e1e5eb; --area-check: #8fe3cf; }
.tw-area--spam      { --area-bg: #eaf1fb; --area-accent: #1d5fd1; --area-text: #174ea6; --area-line: #c9daf5; }
.tw-area--posta     { --area-bg: #e6f4f0; --area-accent: #0b7a63; --area-text: #0b5d4e; --area-line: #b7dfd3; }
.tw-area--migrazione{ --area-bg: #fbf4df; --area-accent: #b8860b; --area-text: #7a5a00; --area-line: #ead9a6; }
.tw-area--sicurezza { --area-bg: #ecf0f5; --area-accent: #3b5578; --area-text: #2e4460; --area-line: #cbd5e1; }
.tw-area--ufficio   { --area-bg: #fbeaf2; --area-accent: #b0306a; --area-text: #8e2456; --area-line: #f0c6d9; }

.tw-pagehead { background: var(--area-bg, #fff); color: var(--tuoweb-ink); position: relative; overflow: hidden; border-bottom: 1px solid var(--tuoweb-line); }
.tw-pagehead__in { padding-top: 40px; padding-bottom: 44px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tw-pagehead__text { flex: 1 1 auto; min-width: 0; }
.tw-pagehead h1 { margin: 0; font-size: clamp(30px, 4.5vw, 40px); line-height: 1.15; letter-spacing: -0.5px; max-width: 820px; }
.tw-pagehead p { margin: 10px 0 0; font-size: 18px; color: #2d3a4b; max-width: 760px; }
.tw-pagehead__mark { width: 240px; height: 120px; flex: none; }
@media (max-width: 720px) { .tw-pagehead__mark { display: none; } }
@keyframes tw-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .75; } }
.tw-pulse-soft { animation: tw-breathe 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .tw-pulse-soft { animation: none; } }
.tw-crumbs { font-size: 14px; margin-bottom: 10px; font-weight: 600; }
.tw-crumbs a { color: var(--area-text, var(--tuoweb-accent-dark)); text-decoration: none; }
.tw-crumbs a:hover { text-decoration: underline; }
.tw-main { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 40px; padding-bottom: 56px; align-items: flex-start; }
.tw-content { flex: 999 1 640px; min-width: 0; }
.tw-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tw-content > *:first-child { margin-top: 0; }
.tw-content h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 12px; }
.tw-content h3 { font-size: 21px; margin: 28px 0 10px; }
.tw-content p, .tw-content li { line-height: 1.7; }
.tw-content code { font-family: var(--tuoweb-mono); font-size: .9em; background: #e9edf2; padding: 2px 6px; border-radius: 4px; }
.tw-box { background: #fff; border: 1px solid var(--tuoweb-line); border-radius: 14px; padding: 20px; }
.tw-box h2 { font-size: 17px; margin: 0 0 10px; }
.tw-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tw-box a { text-decoration: none; }
.tw-box a:hover { text-decoration: underline; }

/* Pubblicità */
.tw-ad { border: 1px dashed #a0aab8; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--tuoweb-muted); font-size: 13px; font-family: var(--tuoweb-mono); margin: 0 auto; text-align: center; padding: 8px; }
.tw-ad--leader { max-width: 728px; height: 90px; }
.tw-ad--box { width: 100%; max-width: 300px; min-height: 250px; }
.tw-ad-row { padding-top: 32px; }

/* Web Prato */
.tw-wp { background: #e6f4f0; border-radius: 18px; overflow: hidden; display: flex; flex-wrap: wrap; }
.tw-wp__media { flex: 1 1 340px; min-width: 0; min-height: 260px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 32px; }
.tw-wp__media img { max-width: 260px; }
.tw-wp__text { flex: 1 1 460px; min-width: 0; padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.tw-wp__text h2 { margin: 0; font-size: 28px; letter-spacing: -0.5px; line-height: 1.2; }
.tw-wp__text p { margin: 0; color: #2d3a4b; }
.tw-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.tw-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--tuoweb-ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; border: 2px solid var(--tuoweb-ink); }
.tw-btn:hover { background: #24344d; color: #fff; }
.tw-btn--ghost { background: transparent; color: var(--tuoweb-ink); }
.tw-btn--ghost:hover { background: var(--tuoweb-ink); color: #fff; }

/* Articoli */
.tw-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tw-post { background: #fff; border: 1px solid var(--tuoweb-line); border-radius: 14px; padding: 22px; text-decoration: none; color: var(--tuoweb-ink); display: flex; flex-direction: column; gap: 10px; }
.tw-post:hover { border-color: var(--tuoweb-accent); color: var(--tuoweb-ink); }
.tw-post__cat { font-family: var(--tuoweb-mono); font-size: 13px; color: var(--tuoweb-accent-dark); text-transform: uppercase; }
.tw-post__title { font-size: 19px; font-weight: 600; line-height: 1.3; }
.tw-post__ex { font-size: 15px; color: var(--tuoweb-muted); line-height: 1.5; }

/* Footer */
.tw-footer { background: var(--tuoweb-ink); color: #c9d2de; margin-top: 56px; }
.tw-footer__in { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.tw-footer__brand { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.tw-footer__brand .tw-logo__mark { color: #fff; font-size: 20px; }
.tw-footer__brand .tw-logo__mark b { color: var(--tuoweb-mint); }
.tw-footer a { color: #c9d2de; }
.tw-footer a:hover { color: #fff; }
.tw-footer__mail { color: var(--tuoweb-mint) !important; }
.tw-footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.tw-footer__bottom { border-top: 1px solid var(--tuoweb-navy-line); padding-top: 18px; padding-bottom: 24px; font-size: 13px; color: #8a97a8; }

/* Pagina di uno strumento: icona dello strumento nel simbolo dell'intestazione */
.tw-pagehead__tool { position: relative; width: 240px; height: 120px; flex: none; }
.tw-pagehead__tool .tw-pagehead__mark circle.tw-pulse-soft, .tw-pagehead__tool .tw-pagehead__mark path { display: none; }
.tw-pagehead__icon { position: absolute; left: 150px; top: 60px; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 18px; background: var(--area-accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(15,27,45,.15); }
.tw-pagehead__icon svg { width: 32px; height: 32px; }
@media (max-width: 720px) { .tw-pagehead__tool { display: none; } }
.tw-area--neutral .tw-pagehead__icon { background: var(--tuoweb-ink); color: var(--tuoweb-mint); }
/* Riquadro del tool con il colore dell'area */
.tw-content .tw-form, .tw-content .tw-qr__panel, .tw-content .tw-mailtest .tw-card { border-top: 4px solid var(--area-accent, var(--tuoweb-accent)); }
.tw-content .tw-button:not(.tw-button--dark):not(.tw-button--ghost):not(.tw-button--wa) { background: var(--area-accent, var(--tuoweb-accent)); }
.tw-content .tw-button:not(.tw-button--dark):not(.tw-button--ghost):not(.tw-button--wa):hover { filter: brightness(.9); }
.tw-area--neutral .tw-content .tw-button:not(.tw-button--dark):not(.tw-button--ghost):not(.tw-button--wa) { background: var(--tuoweb-accent); }

/* Pagine delle aree a tutta larghezza */
.tw-main--full .tw-content { flex-basis: 100%; }
/* Barra laterale che segue lo scorrimento (niente buchi sotto il banner) */
@media (min-width: 1000px) { .tw-aside { position: sticky; top: 24px; } .admin-bar .tw-aside { top: 56px; } }
.tw-ad-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8a97a8; text-align: center; margin-bottom: 4px; } .tw-ad-live { text-align: center; }

/* Logo vettoriale */
.tw-logo { align-items: center; }
.tw-logo__svg { flex: none; display: block; height: 54px; width: 190px; --logo-tag: transparent; }
.tw-logo__by { align-self: flex-end; margin-bottom: 12px; margin-left: -54px; }
@media (max-width: 480px) { .tw-logo__svg { height: 44px; width: 155px; } .tw-logo__by { margin-left: -44px; margin-bottom: 9px; } }
.tw-logo__svg--footer { height: 96px; width: 337px; --logo-ink: #ffffff; --logo-tag: #c9d2de; margin: -12px 0 0 -10px; }
.tw-logo { position: relative; }
.tw-logo__by { position: absolute; left: 55px; top: 35px; margin: 0; font-size: 11px; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
@media (max-width: 480px) { .tw-logo__by { left: 45px; top: 28px; margin: 0; font-size: 10px; } }

/* ------------------------------------------------------------ Menu (v0.5) */
.tw-header { position: relative; z-index: 50; }
.tw-header__in { flex-wrap: nowrap; }
.tw-nav { align-items: center; gap: 2px; }
.tw-nav__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 500; font-size: 15px; color: var(--tuoweb-ink); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.tw-nav__btn:hover, .tw-nav__btn[aria-expanded="true"] { background: var(--tuoweb-ground); }
.tw-nav__chev { width: 12px; height: 8px; transition: transform .2s; }
.tw-nav__btn[aria-expanded="true"] .tw-nav__chev { transform: rotate(180deg); }
.tw-nav a.tw-nav__cta { background: var(--tuoweb-ink); color: #fff; margin-left: 8px; padding: 0 18px; }
.tw-nav a.tw-nav__cta:hover { background: var(--tuoweb-navy-2); color: #fff; }
.tw-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--tuoweb-line); border-bottom: 1px solid var(--tuoweb-line); box-shadow: 0 18px 40px rgba(15,27,45,.12); }
.tw-mega[hidden] { display: none; }
.tw-mega__in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-top: 22px; padding-bottom: 18px; }
.tw-mega__col { background: var(--area-bg); border: 1px solid var(--area-line); border-radius: 12px; padding: 14px 12px 10px; min-width: 0; }
.tw-mega__group { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--area-text); text-decoration: none; padding: 0 6px 10px; }
.tw-mega__group:hover { text-decoration: underline; color: var(--area-text); }
.tw-mega__col ul { list-style: none; margin: 0; padding: 0; }
.tw-mega__col li a { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; font-size: 14.5px; line-height: 1.3; color: var(--tuoweb-ink); text-decoration: none; }
.tw-mega__col li a:hover { background: rgba(255,255,255,.75); }
.tw-mega__icon { flex: none; width: 26px; height: 26px; border-radius: 7px; background: #fff; color: var(--area-accent); display: inline-flex; align-items: center; justify-content: center; }
.tw-mega__icon svg { width: 16px; height: 16px; }
.tw-mega__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; padding-top: 6px; font-size: 15px; color: var(--tuoweb-muted); }
.tw-mega__foot a { font-weight: 600; }
.tw-burger { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 600; font-size: 15px; color: var(--tuoweb-ink); background: var(--tuoweb-ground); border: 1px solid var(--tuoweb-line); border-radius: 10px; cursor: pointer; }
.tw-burger__bars, .tw-burger__bars::before, .tw-burger__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.tw-burger__bars::before, .tw-burger__bars::after { content: ""; position: absolute; left: 0; }
.tw-burger__bars::before { top: -6px; } .tw-burger__bars::after { top: 6px; }
.tw-header.is-open .tw-burger__bars { background: transparent; }
.tw-header.is-open .tw-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.tw-header.is-open .tw-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) and (min-width: 900px) { .tw-mega__in { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .tw-burger { display: inline-flex; }
  .tw-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--tuoweb-line); box-shadow: 0 18px 40px rgba(15,27,45,.12); flex-direction: column; align-items: stretch; padding: 8px 16px 18px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .tw-header.is-open .tw-nav { display: flex; }
  .tw-nav > a, .tw-nav__btn { width: 100%; justify-content: space-between; font-size: 16px; }
  .tw-nav a.tw-nav__cta { margin: 8px 0 0; justify-content: center; }
  .tw-mega { position: static; box-shadow: none; border: 0; }
  .tw-mega__in { grid-template-columns: 1fr; padding: 6px 0 10px; }
  .tw-mega__foot { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .tw-nav__chev, .tw-burger__bars, .tw-burger__bars::before, .tw-burger__bars::after { transition: none; } }

/* Footer (v0.5) */
.tw-footer__in { display: grid; grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.tw-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.tw-footer__h { margin: 0 0 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.tw-footer__h--gap { margin-top: 18px; }
.tw-footer__col a { text-decoration: none; }
.tw-footer__col a:hover { text-decoration: underline; }
.tw-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.tw-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 960px) { .tw-footer__in { grid-template-columns: 1fr 1fr; } .tw-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .tw-footer__in { grid-template-columns: 1fr; } }

/* Pagine legali */
.tw-legal-meta { font-size: 14px; color: var(--tuoweb-muted); }
.tw-table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--tuoweb-line); border-radius: 12px; background: #fff; }
.tw-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tw-table th, .tw-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--tuoweb-line); }
.tw-table thead th { border-top: 0; background: var(--tuoweb-ground); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--tuoweb-muted); }
.tw-table td:first-child { white-space: nowrap; }
@media (max-width: 640px) { .tw-table td:first-child { white-space: normal; } }

/* Logo footer proporzionato (v0.5.2) */
.tw-footer .tw-logo__svg--footer { height: 62px; width: 218px; margin: 0 0 6px -3px; }
@media (max-width: 520px) { .tw-footer .tw-logo__svg--footer { height: 54px; width: 190px; } }
.tw-table td:first-child { white-space: normal; min-width: 130px; }
.tw-table td:first-child code { word-break: break-all; }
.tw-table td:last-child { white-space: nowrap; }
.tw-table td, .tw-table td:last-child { white-space: normal; }
.tw-table td:first-child { min-width: 110px; }
.tw-table code { white-space: nowrap; }

/* Figure delle guide */
.tw-figure { margin: 1.6em 0 1.8em; }
.tw-figure-link { display: block; border: 1px solid var(--tuoweb-line); border-radius: 14px; overflow: hidden; background: var(--tuoweb-ground); }
.tw-figure-link:focus-visible { outline: 3px solid var(--tuoweb-accent); outline-offset: 3px; }
.tw-figure img { display: block; width: 100%; height: auto; }
.tw-figure figcaption { margin-top: .6em; font-size: .92rem; line-height: 1.45; color: var(--tuoweb-muted); }
.tw-figure-zoom { white-space: nowrap; }
@media (hover: hover) { .tw-figure-link:hover { border-color: var(--tuoweb-accent); } }

/* Tabelle delle guide impilate su mobile */
@media (max-width: 640px) {
  .tw-table--stack thead { display: none; }
  .tw-table--stack, .tw-table--stack tbody, .tw-table--stack tr, .tw-table--stack td { display: block; width: 100%; }
  .tw-table--stack tr { padding: 12px 14px; border-top: 1px solid var(--tuoweb-line); }
  .tw-table--stack tr:first-child { border-top: 0; }
  .tw-table--stack td { padding: 3px 0; border: 0; min-width: 0; }
  .tw-table--stack td:first-child { font-weight: 600; font-size: 1.02rem; padding-bottom: 6px; }
  .tw-table--stack td:not(:first-child)::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--tuoweb-muted); margin-bottom: 2px; }
  .tw-table--stack code { white-space: normal; word-break: break-all; }
}

/* Pagina Consulenza */
.tw-svc2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 36px; }
.tw-svc3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 16px 0 36px; }
@media (max-width: 900px) { .tw-svc3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .tw-svc2 { grid-template-columns: 1fr; } }
.tw-svc2__box, .tw-svc3__box { background: #fff; border: 1px solid var(--tuoweb-line); border-radius: 16px; padding: 24px 26px; display: flex; flex-direction: column; }
.tw-svc2__box h3, .tw-svc3__box h3 { margin: 6px 0 10px; font-size: 20px; line-height: 1.3; }
.tw-svc2__box p { margin: 0 0 16px; color: var(--tuoweb-muted); }
.tw-svc2__box p:last-child { margin: auto 0 0; }
.tw-svc2__box--accent { border-color: var(--tuoweb-accent); box-shadow: 0 8px 24px rgba(11,122,99,.10); }
.tw-svc2__tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tuoweb-accent-dark); background: #e3f6f0; padding: 3px 10px; border-radius: 99px; }
.tw-svc3__box h3 { margin-top: 0; }
.tw-svc3__box ul { margin: 0; padding-left: 20px; }
.tw-svc3__box li { margin-bottom: 8px; line-height: 1.5; }
.tw-steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0 36px; display: grid; gap: 12px; }
.tw-steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; background: #fff; border: 1px solid var(--tuoweb-line); border-radius: 14px; line-height: 1.55; }
.tw-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 10px; background: var(--tuoweb-ink); color: var(--tuoweb-mint); font-weight: 700; display: grid; place-items: center; }
.tw-svc-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: var(--tuoweb-ink); color: #fff; border-radius: 16px; padding: 26px 28px; margin: 8px 0 0; }
.tw-svc-cta h2 { color: #fff; margin: 0 0 6px; font-size: 22px; }
.tw-svc-cta p { color: #c9d3e0; margin: 0; }
.tw-svc-cta .tw-btn { background: var(--tuoweb-mint); border-color: var(--tuoweb-mint); color: var(--tuoweb-ink); }
.tw-svc-cta .tw-btn--ghost { background: transparent; color: #fff; }
.tw-svc-cta .tw-btn:hover { background: #fff; border-color: #fff; color: var(--tuoweb-ink); }

/* Blocco Web Prato v2: logo piccolo e cliccabile, testo in evidenza */
.tw-wp { flex-wrap: nowrap; align-items: stretch; }
.tw-wp__media { flex: 0 0 250px; min-height: 0; padding: 28px 24px; flex-direction: column; gap: 12px; text-decoration: none; border-right: 1px solid #d3ebe4; transition: background .15s; }
.tw-wp__media:hover { background: #fafcfb; }
.tw-wp__media img { max-width: 180px; width: 100%; height: auto; }
.tw-wp__site { font-size: 14px; font-weight: 600; color: var(--tuoweb-accent-dark); }
.tw-wp__media:hover .tw-wp__site { text-decoration: underline; }
.tw-wp__text { flex: 1 1 auto; padding: 44px 48px; gap: 16px; }
.tw-wp__text h2 { font-size: 32px; }
.tw-wp__text p { font-size: 17px; line-height: 1.6; max-width: 62ch; }
@media (max-width: 760px) {
  .tw-wp { flex-direction: column-reverse; }
  .tw-wp__media { flex: none; flex-direction: row; justify-content: space-between; padding: 16px 22px; border-right: 0; border-top: 1px solid #d3ebe4; }
  .tw-wp__media img { max-width: 140px; }
  .tw-wp__text { padding: 30px 22px; }
  .tw-wp__text h2 { font-size: 26px; }
}

/* Footer: firma Web Prato */
.tw-footer__bottom { align-items: center; }
.tw-footer__info { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tw-footer__wp { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-decoration: none; padding: 4px 0; opacity: .9; transition: opacity .15s; }
.tw-footer__wp:hover { opacity: 1; }
.tw-footer__wp-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8a97a8; }
.tw-footer__wp img { width: 150px; height: auto; display: block; }
@media (max-width: 640px) { .tw-footer__wp { align-items: flex-start; margin-top: 10px; } }

.tw-nav__account { font-weight: 600; color: var(--tuoweb-accent-dark) !important; }

/* Home: invito all'account gratuito */
.tw-join { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; background: var(--tuoweb-mint-l, #e3f6f0); border: 1px solid #bfe9dc; border-radius: 18px; padding: 28px 32px; }
.tw-join h2 { margin: 4px 0 12px; font-size: 26px; }
.tw-join ul { margin: 0; padding-left: 20px; }
.tw-join li { margin: 0 0 6px; }
.tw-join__note { margin: 10px 0 0; font-size: 14px; color: var(--tuoweb-muted, #4a5568); }
.tw-join__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tw-join__login { font-size: 15px; color: var(--tuoweb-accent-dark, #0b5d4e); }
@media (max-width: 760px) { .tw-join { grid-template-columns: 1fr; padding: 22px 18px; } .tw-join__cta { align-items: stretch; text-align: center; } .tw-join__cta .tw-btn { justify-content: center; } }

/* News */
.tw-news-meta { font-size: 15px; color: var(--tuoweb-muted); margin: 8px 0 0; }
.tw-news-cover { margin: 0 0 24px; border-radius: 14px; overflow: hidden; border: 1px solid var(--tuoweb-line); }
.tw-news-cover img { display: block; width: 100%; height: auto; }
.tw-news-body h2 { margin-top: 32px; }
.tw-news-body .tw-news-sources { font-size: 14px; color: var(--tuoweb-muted); border-top: 1px solid var(--tuoweb-line); margin-top: 32px; padding-top: 14px; }
.tw-news-body .tw-news-sources ul { margin: 6px 0 0; padding-left: 18px; }
.tw-news-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.tw-news-nav a { display: block; padding: 14px 16px; border: 1px solid var(--tuoweb-line); border-radius: 12px; text-decoration: none; color: var(--tuoweb-ink); font-weight: 600; background: #fff; }
.tw-news-nav a span { display: block; font-size: 13px; font-weight: 500; color: var(--tuoweb-muted); margin-bottom: 4px; }
.tw-news-nav a:hover { border-color: var(--tuoweb-accent); }
.tw-news-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tw-news-cats a { padding: 7px 14px; border: 1px solid var(--tuoweb-line); border-radius: 99px; text-decoration: none; color: var(--tuoweb-ink); font-weight: 600; font-size: 14px; background: #fff; }
.tw-news-cats a[aria-current] { background: var(--tuoweb-ink); border-color: var(--tuoweb-ink); color: #fff; }
.tw-section__head--row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tw-box--tool { border-color: var(--tuoweb-accent); }
@media (max-width: 640px) { .tw-news-nav { grid-template-columns: 1fr; } }

/* Footer compatto: 5 colonne su desktop, 2 su tablet, elenchi più fitti */
.tw-footer__in { grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 24px 32px; padding-top: 40px; padding-bottom: 32px; }
.tw-footer__col { gap: 6px; font-size: 14px; }
.tw-footer__brand { font-size: 14px; gap: 8px; }
.tw-footer .tw-logo__svg--footer { height: 52px; width: 184px; }
@media (max-width: 1100px) { .tw-footer__in { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tw-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .tw-footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .tw-footer__in { grid-template-columns: 1fr 1fr; gap: 20px 18px; } .tw-footer__col { font-size: 14px; } }

/* Menu: pulsanti servizi */
.tw-nav__user { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; margin-right: 6px; flex: none; }
.tw-nav__ctas { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
.tw-nav .tw-nav__ctas a.tw-nav__cta { margin-left: 0; }
.tw-nav a.tw-nav__cta--ghost { background: transparent; color: var(--tuoweb-ink); box-shadow: inset 0 0 0 2px var(--tuoweb-ink); }
.tw-nav a.tw-nav__cta--ghost:hover { background: var(--tuoweb-ground); color: var(--tuoweb-ink); }
.tw-nav__short { display: none; }
@media (max-width: 1240px) and (min-width: 900px) {
  .tw-nav > a, .tw-nav__btn { padding: 0 10px; font-size: 14px; }
  .tw-nav a.tw-nav__cta { padding: 0 14px; font-size: 14px; }
  .tw-nav__long { display: none; } .tw-nav__short { display: inline; }
}
@media (max-width: 1040px) and (min-width: 900px) { .tw-nav__user + * { } .tw-nav a.tw-nav__account { font-size: 0; padding: 0 8px; } .tw-nav a.tw-nav__account .tw-nav__user { margin: 0; width: 22px; height: 22px; } }
@media (max-width: 899px) {
  .tw-nav__ctas { display: flex; flex-direction: column; align-items: stretch; margin: 10px 0 0; gap: 8px; }
  .tw-nav .tw-nav__ctas a.tw-nav__cta { margin: 0; justify-content: center; }
  .tw-nav a.tw-nav__account { justify-content: flex-start; }
}

/* Footer: dati societari leggibili */
.tw-footer__by { margin: 0 0 4px; font-size: 15px; color: #fff; }
.tw-footer__by a { color: #fff; text-decoration: none; }
.tw-footer__by a:hover { text-decoration: underline; }
.tw-footer__company { margin: 0; display: grid; gap: 3px; font-size: 13px; line-height: 1.45; }
.tw-footer__company div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.tw-footer__company dt { color: #8a97a8; font-weight: 500; }
.tw-footer__company dd { margin: 0; color: #c9d2de; overflow-wrap: anywhere; }
.tw-footer__company a { text-decoration: none; }
.tw-footer__company a:hover { text-decoration: underline; }
@media (max-width: 420px) { .tw-footer__company div { grid-template-columns: 1fr; gap: 0; margin-bottom: 4px; } }
@media (min-width: 1101px) { .tw-footer__in { grid-template-columns: minmax(310px, 1.75fr) repeat(4, minmax(0, 1fr)); gap: 24px 28px; } }
.tw-footer__company div { grid-template-columns: 78px 1fr; }
