/*
Theme Name: A2B Vetrina Master
Theme URI: https://a2bdigit.it/
Author: A2B Digit
Author URI: https://a2bdigit.it/
Description: Tema WordPress leggero, responsive e replicabile per siti vetrina A2B.
Version: 1.3.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: a2b-vetrina-master
*/

:root {
  --a2b-blue: #123f5f;
  --a2b-blue-2: #1b5c80;
  --a2b-green: #2f963b;
  --a2b-cyan: #18a8d1;
  --a2b-page-bg: #fff;
  --a2b-ink: #12324a;
  --a2b-muted: #5b6f7e;
  --a2b-surface: #f4fafc;
  --a2b-white: #fff;
  --a2b-line: #d9e8ee;
  --a2b-shadow: 0 18px 50px rgba(18, 63, 95, .12);
  --a2b-radius: 24px;
  --a2b-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--a2b-ink);
  background: var(--a2b-page-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
a { color: var(--a2b-blue-2); }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.a2b-container { width: min(calc(100% - 40px), var(--a2b-width)); margin: 0 auto; }
.a2b-site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--a2b-line); backdrop-filter: blur(12px); }
.admin-bar .a2b-site-header { top: 32px; }
.a2b-header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.a2b-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--a2b-blue); font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.a2b-brand img { max-height: 58px; width: auto; }
.a2b-logo-placeholder { display: grid; place-items: center; min-width: 150px; height: 52px; padding: 0 18px; color: var(--a2b-blue); border: 2px dashed #9eb9c7; border-radius: 14px; font-size: 14px; letter-spacing: .08em; text-decoration: none; }
.a2b-menu { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.a2b-menu a { display: block; padding: 11px 15px; color: var(--a2b-ink); font-size: 16px; font-weight: 700; text-decoration: none; border-radius: 999px; }
.a2b-menu a:hover, .a2b-menu .current-menu-item > a { color: var(--a2b-green); background: #edf8ef; }
.a2b-menu-toggle { display: none; border: 0; background: var(--a2b-blue); color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 700; }

.a2b-main { min-height: 60vh; }
.a2b-section { padding: 88px 0; }
.a2b-section--soft { background: linear-gradient(135deg, #f3faf4, #f2f9fc 58%, #fff); }
.a2b-kicker { margin: 0 0 14px; color: var(--a2b-green); font-size: 14px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--a2b-blue); line-height: 1.1; letter-spacing: -.035em; }
h1 { margin: 0 0 22px; font-size: clamp(42px, 6vw, 70px); }
h2 { margin: 0 0 18px; font-size: clamp(34px, 4vw, 50px); }
h3 { margin: 0 0 12px; font-size: 24px; }
.a2b-lead { max-width: 760px; color: var(--a2b-muted); font-size: clamp(20px, 2vw, 25px); line-height: 1.5; }

.a2b-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 8% 15%, rgba(47,150,59,.14), transparent 28%), radial-gradient(circle at 92% 80%, rgba(24,168,209,.17), transparent 32%), #f8fbfc; }
.a2b-hero::after { content: ""; position: absolute; inset: auto -8% -55% 42%; height: 520px; background: linear-gradient(135deg, transparent 45%, rgba(18,63,95,.05) 45% 53%, transparent 53%); transform: rotate(-7deg); pointer-events: none; }
.a2b-hero-grid { min-height: 630px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; padding: 76px 0; }
.a2b-hero-visual img { width: 100%; filter: drop-shadow(0 26px 30px rgba(18,63,95,.16)); }
.a2b-company-hero .a2b-hero-grid { min-height: 560px; }
.a2b-home-subtitle { max-width: 720px; margin: 0 0 18px; font-size: clamp(28px, 3vw, 42px); }
.a2b-home-main-media { box-shadow: var(--a2b-shadow); }
.a2b-home-main-media .a2b-about-main-image { min-height: 360px; }
.a2b-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.a2b-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 24px; color: #fff; background: var(--a2b-green); border: 2px solid var(--a2b-green); border-radius: 999px; box-shadow: 0 12px 24px rgba(47,150,59,.18); font-weight: 800; text-decoration: none; }
.a2b-button:hover { color: #fff; transform: translateY(-2px); }
.a2b-button--outline { color: var(--a2b-green); background: #fff; box-shadow: none; }
.a2b-button--blue { background: var(--a2b-blue); border-color: var(--a2b-blue); box-shadow: 0 12px 24px rgba(18,63,95,.18); }

.a2b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.a2b-card { padding: 32px; background: #fff; border: 1px solid var(--a2b-line); border-radius: var(--a2b-radius); box-shadow: var(--a2b-shadow); }
.a2b-card p:last-child { margin-bottom: 0; }
.a2b-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; color: #fff; background: linear-gradient(135deg, var(--a2b-cyan), var(--a2b-blue)); border-radius: 17px; font-weight: 900; }
.a2b-home-cards { display: grid; gap: 24px; margin: 32px auto 0; }
.a2b-home-cards--count-1 { grid-template-columns: minmax(0, 760px); justify-content: center; }
.a2b-home-cards--count-2 { max-width: 920px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a2b-home-cards--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.a2b-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.a2b-split img { width: 100%; }
.a2b-checks { display: grid; gap: 12px; padding: 0; list-style: none; }
.a2b-checks li { position: relative; padding-left: 32px; }
.a2b-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--a2b-green); font-weight: 900; }
.a2b-band { padding: 46px; color: #fff; background: linear-gradient(125deg, var(--a2b-blue), var(--a2b-blue-2)); border-radius: 30px; box-shadow: var(--a2b-shadow); }
.a2b-band h2, .a2b-band h3, .a2b-band p { color: #fff; }
.a2b-band .a2b-button--outline { color: #fff; background: transparent; border-color: #fff; }

.a2b-page-head { padding: 80px 0 58px; background: linear-gradient(135deg, #eff8f1, #eff8fc); border-bottom: 1px solid var(--a2b-line); }
.a2b-page-content > *:not(.alignfull) { width: min(calc(100% - 40px), var(--a2b-width)); margin-left: auto; margin-right: auto; }
.a2b-page-content > .a2b-section { width: 100%; max-width: none; }
.a2b-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; }
.a2b-contact-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.a2b-contact-list a { font-weight: 750; text-decoration: none; }
.a2b-contact-card { padding: 36px; background: #fff; border: 1px solid var(--a2b-line); border-radius: var(--a2b-radius); box-shadow: var(--a2b-shadow); }
.a2b-contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.a2b-form-field { margin: 0; }
.a2b-form-field--wide { grid-column: 1 / -1; }
.a2b-form-field label { display: block; margin-bottom: 6px; color: var(--a2b-blue); font-size: 15px; font-weight: 800; }
.a2b-form-field input[type="text"], .a2b-form-field input[type="tel"], .a2b-form-field input[type="email"], .a2b-form-field textarea { width: 100%; padding: 13px 15px; color: var(--a2b-ink); background: #fff; border: 1px solid #b8ced8; border-radius: 12px; font: inherit; font-size: 16px; }
.a2b-form-field textarea { min-height: 132px; resize: vertical; }
.a2b-form-field input:focus, .a2b-form-field textarea:focus { outline: 3px solid rgba(24,168,209,.2); border-color: var(--a2b-cyan); }
.a2b-form-consent label { display: flex; align-items: flex-start; gap: 10px; color: var(--a2b-muted); font-size: 14px; font-weight: 500; line-height: 1.5; }
.a2b-form-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--a2b-green); }
.a2b-form-submit { display: flex; align-items: center; gap: 14px; }
.a2b-contact-form button { cursor: pointer; font: inherit; }
.a2b-form-required { grid-column: 1 / -1; margin: -8px 0 0; color: var(--a2b-muted); font-size: 13px; }
.a2b-form-notice { grid-column: 1 / -1; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.a2b-form-notice--success { color: #176e25; background: #edf8ef; border: 1px solid #9bd2a4; }
.a2b-form-notice--error { color: #8a2630; background: #fff1f2; border: 1px solid #e7aeb4; }
.a2b-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.a2b-legal { max-width: 980px; }
.a2b-legal h1 { font-size: clamp(42px, 6vw, 64px); }
.a2b-legal h2 { margin-top: 42px; font-size: clamp(25px, 3vw, 32px); }
.a2b-legal p { max-width: 860px; }
.a2b-legal-updated { display: inline-block; margin: 18px 0 8px; padding: 9px 14px; color: var(--a2b-muted); background: var(--a2b-surface); border-radius: 10px; font-size: 14px; }
.a2b-legal-disclaimer { margin: 18px 0 34px; padding: 16px 18px; color: #5e4b00; background: #fff9df; border: 1px solid #ead77e; border-radius: 14px; font-size: 15px; line-height: 1.55; }
.a2b-map-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 48px; }
.a2b-map-shell { position: relative; min-height: 420px; overflow: hidden; background: linear-gradient(135deg, #eaf5ef, #e7f4fa); border: 1px solid var(--a2b-line); border-radius: var(--a2b-radius); box-shadow: var(--a2b-shadow); }
.a2b-map-shell iframe { display: block; width: 100%; min-height: 420px; border: 0; }
.a2b-map-placeholder { min-height: 420px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 36px; text-align: center; }
.a2b-map-placeholder p { max-width: 420px; margin: 0 0 22px; color: var(--a2b-muted); }
.a2b-map-pin { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 18px; color: #fff; background: var(--a2b-green); border-radius: 50%; box-shadow: 0 14px 30px rgba(47,150,59,.25); font-size: 42px; font-weight: 900; }
.a2b-store-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.a2b-store-gallery figure { overflow: hidden; margin: 0; background: var(--a2b-surface); border: 1px solid var(--a2b-line); border-radius: 20px; box-shadow: var(--a2b-shadow); }
.a2b-store-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.a2b-about-main-media { overflow: hidden; background: var(--a2b-surface); border-radius: 28px; }
.a2b-about-main-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.a2b-about-main-image--default { object-fit: contain; }
.a2b-about-intro { padding: 30px 0 42px; }
.a2b-about-intro .a2b-split { gap: 50px; }
.a2b-about-intro .a2b-lead { margin-bottom: 0; }
.a2b-about-copy { max-width: 980px; }
.a2b-about-story { max-width: 900px; white-space: normal; }
.a2b-about-main-media { min-height: 0; }
.a2b-about-values { padding: 52px 0; }
.a2b-about-values .a2b-card { padding: 26px 28px; }
.a2b-store-gallery-section { padding: 58px 0; }
.a2b-store-gallery-section h2 { margin-bottom: 26px; }

.a2b-site-footer { margin-top: 0; padding: 58px 0 28px; color: rgba(255,255,255,.82); background: var(--a2b-blue); }
.a2b-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 44px; }
.a2b-site-footer h3 { color: #fff; font-size: 20px; }
.a2b-site-footer a { color: #fff; text-decoration: none; }
.a2b-footer-menu { margin: 0; padding: 0; list-style: none; }
.a2b-footer-menu li { margin: 7px 0; }
.a2b-copyright { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; }
.a2b-footer-legal { margin-top: 20px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.75; }

.a2b-newsletter { padding: 64px 0; background: linear-gradient(135deg, #f3faf4, #eef8fc); border-top: 1px solid var(--a2b-line); }
.a2b-newsletter-box { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 54px; padding: 42px 46px; background: #fff; border: 1px solid var(--a2b-line); border-radius: 28px; box-shadow: var(--a2b-shadow); }
.a2b-newsletter-copy h2 { margin-bottom: 14px; font-size: clamp(30px, 3vw, 42px); }
.a2b-newsletter-copy > p:last-child { margin: 0; color: var(--a2b-muted); }
.a2b-newsletter-form { display: grid; gap: 15px; }
.a2b-newsletter-email { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 0; }
.a2b-newsletter-email input { min-width: 0; padding: 14px 17px; color: var(--a2b-ink); background: #fff; border: 1px solid #b8ced8; border-radius: 999px; font: inherit; font-size: 16px; }
.a2b-newsletter-email input:focus { outline: 3px solid rgba(24,168,209,.2); border-color: var(--a2b-cyan); }
.a2b-newsletter-form .a2b-form-consent { margin: 0; }
.a2b-newsletter-form .a2b-form-notice { margin: 0 0 14px; }
.a2b-newsletter-form button { cursor: pointer; font: inherit; }

@media (max-width: 900px) {
  .admin-bar .a2b-site-header { top: 46px; }
  .a2b-menu-toggle { display: inline-flex; }
  .a2b-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--a2b-line); }
  .a2b-nav.is-open { display: block; }
  .a2b-menu { display: grid; }
  .a2b-hero-grid, .a2b-split, .a2b-contact-grid, .a2b-map-grid, .a2b-newsletter-box { grid-template-columns: 1fr; }
  .a2b-hero-grid { min-height: auto; gap: 34px; padding: 60px 0; }
  .a2b-hero-visual { max-width: 620px; }
  .a2b-grid, .a2b-footer-grid, .a2b-home-cards { grid-template-columns: 1fr; }
  .a2b-store-gallery { grid-template-columns: 1fr 1fr; }
  .a2b-section { padding: 64px 0; }
  .a2b-about-intro { padding: 28px 0 38px; }
  .a2b-about-values, .a2b-store-gallery-section { padding: 46px 0; }
  .a2b-about-intro .a2b-split { gap: 32px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .a2b-container { width: min(calc(100% - 28px), var(--a2b-width)); }
  .a2b-header-inner { min-height: 74px; }
  .a2b-logo-placeholder { min-width: 118px; height: 44px; font-size: 12px; }
  .a2b-card, .a2b-band { padding: 24px; border-radius: 20px; }
  .a2b-actions { align-items: stretch; flex-direction: column; }
  .a2b-contact-card { padding: 24px; border-radius: 20px; }
  .a2b-contact-form { grid-template-columns: 1fr; }
  .a2b-newsletter { padding: 42px 0; }
  .a2b-newsletter-box { gap: 26px; padding: 26px 22px; border-radius: 20px; }
  .a2b-newsletter-email { grid-template-columns: 1fr; }
  .a2b-newsletter-email .a2b-button { width: 100%; }
  .a2b-form-field--wide { grid-column: auto; }
  .a2b-store-gallery { grid-template-columns: 1fr; }
}
