/* ==========================================================================
   Alu Trading 2026 — tema frontend (Bootstrap 5.3)
   ========================================================================== */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); }

:root {
  --at-ink: #15191E;
  --at-dark: #1E252D;
  --at-dark-2: #27303A;
  --at-dark-3: #3A4552;
  --at-accent: #B8441E;
  --at-accent-hover: #8F3415;
  --at-accent-soft: #FBEDE7;
  --at-accent-light: #F0A486;
  --at-grey: #F2F4F6;
  --at-grey-2: #E6EAEE;
  --at-border: #DDE1E5;
  --at-muted: #545B64;
  --at-muted-2: #9AA3AD;
  --at-muted-light: #C9CFD6;
  --at-input-border: #9AA3AD;
  --at-success-bg: #E7F4EC;
  --at-success: #14532D;
  --at-danger: #B42318;
  --at-font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --at-font-cond: 'Barlow Condensed', 'Barlow', sans-serif;

  --bs-body-font-family: var(--at-font);
  --bs-body-color: var(--at-ink);
  --bs-body-bg: #FFFFFF;
  --bs-body-line-height: 1.5;
  --bs-primary: #B8441E;
  --bs-primary-rgb: 184, 68, 30;
  --bs-link-color: #B8441E;
  --bs-link-color-rgb: 184, 68, 30;
  --bs-link-hover-color: #8F3415;
  --bs-link-hover-color-rgb: 143, 52, 21;
  --bs-border-color: #DDE1E5;
  --bs-secondary-color: #545B64;
  --bs-focus-ring-color: rgba(184, 68, 30, .3);
}

body { font-family: var(--at-font); color: var(--at-ink); background: #FFFFFF; font-size: 16px; }
a { color: var(--at-accent); }
a:hover { color: var(--at-accent-hover); }
h1, h2, h3, h4, h5, h6 { color: inherit; }
img { max-width: 100%; }

.container-at { max-width: 1320px; margin: 0 auto; padding-left: 12px; padding-right: 12px; }
.font-cond { font-family: var(--at-font-cond); font-weight: 700; }
.text-muted-at { color: var(--at-muted) !important; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--at-accent); }
.on-dark .eyebrow, .eyebrow-light { color: var(--at-accent-light); }
.at-h1 { font-family: var(--at-font-cond); font-weight: 700; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.01em; margin: 0; }
.at-h2 { font-family: var(--at-font-cond); font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin: 6px 0 0; }
.at-h2-sm { font-family: var(--at-font-cond); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin: 0; }
.lead-at { font-size: 18px; color: var(--at-muted); }
.on-dark .lead-at { color: var(--at-muted-light); }
.section-pad { padding-top: 88px; padding-bottom: 56px; }
.bg-grey-at { background: var(--at-grey); }
.bg-dark-at { background: var(--at-dark); color: #FFFFFF; }
.border-y-at { border-top: 1px solid var(--at-border); border-bottom: 1px solid var(--at-border); }

/* Bottoni ------------------------------------------------------------------ */
.btn { font-weight: 600; border-radius: 6px; }
.btn-primary, .btn-at {
  --bs-btn-color: #FFFFFF; --bs-btn-bg: #B8441E; --bs-btn-border-color: #B8441E;
  --bs-btn-hover-color: #FFFFFF; --bs-btn-hover-bg: #8F3415; --bs-btn-hover-border-color: #8F3415;
  --bs-btn-active-color: #FFFFFF; --bs-btn-active-bg: #8F3415; --bs-btn-active-border-color: #8F3415;
  --bs-btn-disabled-color: #545B64; --bs-btn-disabled-bg: #C9CFD6; --bs-btn-disabled-border-color: #C9CFD6;
  --bs-btn-focus-shadow-rgb: 184, 68, 30;
}
.btn-at { padding: 11px 20px; }
.btn-at-lg { padding: 14px 26px; }
.btn-xl { padding: 16px 30px; font-size: 17px; }
.btn-outline-at-light { color: #FFFFFF; border: 1.5px solid #8B95A1; padding: 14px 26px; }
.btn-outline-at-light:hover { color: #FFFFFF; border-color: #FFFFFF; background: rgba(255,255,255,.06); }
.btn-outline-at { color: var(--at-ink); background: #FFFFFF; border: 1.5px solid var(--at-ink); }
.btn-outline-at:hover, .btn-outline-at:focus-visible { color: #FFFFFF; background: var(--at-ink); border-color: var(--at-ink); }
.btn-white-at { background: #FFFFFF; color: var(--at-accent-hover); font-weight: 700; }
.btn-white-at:hover { background: var(--at-accent-soft); color: var(--at-accent-hover); }
.btn-ghost-white { color: #FFFFFF; border: 1.5px solid #FFFFFF; }
.btn-ghost-white:hover { color: var(--at-accent-hover); background: #FFFFFF; border-color: #FFFFFF; }
.btn-dark-at { background: var(--at-dark); border: 1px solid var(--at-dark); color: #FFFFFF; }
.btn-dark-at:hover { background: var(--at-ink); color: #FFFFFF; }
.btn-secondary { --bs-btn-bg: #545B64; --bs-btn-border-color: #545B64; --bs-btn-hover-bg: #3A4552; --bs-btn-hover-border-color: #3A4552; }

/* Form --------------------------------------------------------------------- */
.form-control, .form-select { border-color: var(--at-input-border); border-radius: 6px; color: var(--at-ink); }
.form-control:focus, .form-select:focus { border-color: var(--at-accent); box-shadow: 0 0 0 .2rem rgba(184,68,30,.2); }
.form-control-at, .form-select-at { min-height: 48px; padding: 0 14px; font-size: 16px; }
textarea.form-control-at { padding: 12px 14px; min-height: 150px; }
.form-label-at { font-weight: 600; margin-bottom: 6px; }
.form-check-input:checked { background-color: var(--at-accent); border-color: var(--at-accent); }
input[type=checkbox].at-check { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--at-accent); flex: none; }

/* Top bar + header ---------------------------------------------------------- */
.at-topbar { background: var(--at-ink); color: var(--at-muted-light); font-size: 14px; }
.at-topbar .container-at { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.at-topbar a { color: #E6EAEE; text-decoration: none; }
.at-topbar a:hover { color: #FFFFFF; text-decoration: underline; }

.at-header { background: #FFFFFF; border-bottom: 1px solid var(--at-border); position: sticky; top: 0; z-index: 1030; }
.at-header .navbar { padding: 10px 0; }
.at-header .navbar-brand { padding: 0; margin-right: 24px; }
.at-header .navbar-brand img { width: 84px; height: 84px; display: block; transition: width .2s, height .2s; }
.at-header.is-scrolled .navbar-brand img { width: 60px; height: 60px; }
.at-header .nav-link { padding: 10px 14px !important; color: var(--at-ink); font-weight: 500; border-bottom: 2px solid transparent; }
.at-header .nav-link:hover, .at-header .nav-link:focus { color: var(--at-accent); }
.at-header .nav-link.active, .at-header .nav-link.show { font-weight: 600; color: var(--at-ink); border-bottom-color: var(--at-accent); }
.at-header .dropdown-toggle::after { display: none; }
.at-header .dropdown-toggle .chev { margin-left: 6px; transition: transform .15s; }
.at-header .dropdown-toggle.show .chev { transform: rotate(180deg); }
.at-header .dropdown-menu { border: 1px solid var(--at-border); border-radius: 10px; box-shadow: 0 12px 32px rgba(21,25,30,.12); padding: 8px; }
.at-header .dropdown-menu.mega { min-width: 520px; columns: 2; column-gap: 8px; }
.at-header .dropdown-item { border-radius: 6px; padding: 8px 12px; font-weight: 500; text-transform: capitalize; break-inside: avoid; }
.at-header .dropdown-item:hover, .at-header .dropdown-item:focus { background: var(--at-accent-soft); color: var(--at-accent-hover); }
.at-header .dropdown-item.active { background: var(--at-accent); color: #FFFFFF; }
.at-icon-btn { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--at-ink); background: transparent; border: 0; text-decoration: none; }
.at-icon-btn:hover { background: var(--at-grey); color: var(--at-accent); }
.at-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--at-accent); color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.at-header .navbar-toggler { border: 1px solid var(--at-border); padding: 8px 10px; border-radius: 8px; }
.at-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(184,68,30,.2); }
.at-header .user-menu .dropdown-item { text-transform: none; }

@media (max-width: 991.98px) {
  .at-header .navbar-brand img { width: 60px; height: 60px; }
  .at-header .navbar-collapse { padding: 12px 0 8px; }
  .at-header .nav-link.active { border-bottom-color: transparent; color: var(--at-accent); }
  .at-header .dropdown-menu.mega { min-width: 0; columns: 1; box-shadow: none; border: 0; padding-left: 12px; }
}

/* Breadcrumb */
.at-breadcrumb { font-size: 14px; color: var(--at-muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.at-breadcrumb a { color: var(--at-muted); }
.at-breadcrumb .current { color: var(--at-ink); font-weight: 600; }

/* Hero carousel ------------------------------------------------------------- */
.at-hero { background: var(--at-dark); color: #FFFFFF; position: relative; overflow: hidden; }
.at-hero .carousel-item .container-at { padding-top: 72px; padding-bottom: 112px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.at-hero .hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.at-hero .hero-text p { margin: 0; font-size: 19px; color: var(--at-muted-light); max-width: 520px; }
.at-hero .hero-visual { flex: 1 1 460px; min-width: 0; height: 380px; border-radius: 12px; background: var(--at-dark-2); border: 1px solid var(--at-dark-3); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.at-hero .hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.at-hero .hero-visual svg { width: 260px; height: 260px; max-width: 70%; }
.at-hero .hero-controls { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 3; }
.at-hero .hero-controls .container-at { display: flex; align-items: center; gap: 12px; }
.at-round-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid #5A6672; background: transparent; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.at-round-btn:hover { border-color: #FFFFFF; }
.at-hero .hero-dot { width: 12px; height: 12px; padding: 0; border-radius: 6px; border: 0; background: #5A6672; transition: width .2s, background .2s; }
.at-hero .hero-dot.active { width: 32px; background: var(--at-accent-light); }
.at-hero .carousel-item { transition: opacity .5s ease; }

/* Value strip */
.at-values { background: var(--at-grey); border-bottom: 1px solid var(--at-border); }
.at-values .grid { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.at-values .item { display: flex; gap: 16px; align-items: flex-start; }
.at-values h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.at-values p { margin: 0; color: var(--at-muted); }
.at-icon-box { flex: none; width: 48px; height: 48px; border-radius: 8px; background: #FFFFFF; border: 1px solid var(--at-border); display: flex; align-items: center; justify-content: center; color: var(--at-accent); }

/* Categorie */
.at-cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.at-cat-head p { margin: 0; max-width: 440px; color: var(--at-muted); }
.at-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 24px; }
.at-cat-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: #FFFFFF; border: 1px solid var(--at-border); border-radius: 10px; color: var(--at-ink); text-decoration: none; box-shadow: 0 1px 2px rgba(21,25,30,.04); transition: border-color .15s, box-shadow .15s, transform .15s; }
.at-cat-card:hover { color: var(--at-ink); border-color: var(--at-accent); box-shadow: 0 10px 24px rgba(21,25,30,.08); transform: translateY(-2px); }
.at-cat-card .visual { height: 120px; border-radius: 6px; background: var(--at-grey); display: flex; align-items: center; justify-content: center; }
.at-cat-card .visual img { max-height: 96px; max-width: 80%; object-fit: contain; }
.at-cat-card h3 { margin: 0; font-size: 20px; font-weight: 700; }
.at-cat-card h3 small { display: block; font-size: 13px; font-weight: 600; color: var(--at-muted); margin-top: 2px; }
.at-cat-card p { margin: 0; color: var(--at-muted); font-size: 15px; flex-grow: 1; }
.at-cat-card .go { font-weight: 600; color: var(--at-accent); display: inline-flex; align-items: center; gap: 6px; }

/* CTA box */
.at-cta { background: var(--at-accent); color: #FFFFFF; border-radius: 14px; padding: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.at-cta > div:first-child { flex: 1 1 520px; min-width: 0; }
.at-cta h2 { margin: 0 0 10px; font-family: var(--at-font-cond); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; font-weight: 700; }
.at-cta p { margin: 0; font-size: 18px; color: #FCE7DF; max-width: 640px; }
.at-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 575.98px) { .at-cta { padding: 32px 24px; } }

/* Page header (pagine interne) */
.at-page-head { background: var(--at-dark); color: #FFFFFF; }
.at-page-head .container-at { padding-top: 56px; padding-bottom: 56px; }
.at-page-head h1 { margin: 6px 0 10px; font-family: var(--at-font-cond); font-size: clamp(38px, 4.6vw, 56px); line-height: 1.02; font-weight: 700; }
.at-page-head p { margin: 0; font-size: 18px; color: var(--at-muted-light); max-width: 640px; }

/* Contatti */
.at-info-card { background: var(--at-grey); border: 1px solid var(--at-border); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.at-info-card h2 { margin: 0; font-size: 22px; font-weight: 700; }
.at-info-row { display: flex; gap: 12px; align-items: flex-start; }
.at-info-row svg { flex: none; margin-top: 2px; }
.at-map { height: 260px; border-radius: 12px; border: 1px solid var(--at-border); background: var(--at-grey-2); overflow: hidden; }
.at-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.at-alert-ok { padding: 16px 20px; border-radius: 8px; background: var(--at-success-bg); color: var(--at-success); font-weight: 600; }

/* Servizi e qualità */
.at-iso { width: 280px; height: 280px; border-radius: 50%; border: 2px solid var(--at-accent-light); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.at-iso .k { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--at-muted-light); }
.at-iso .v { font-family: var(--at-font-cond); font-size: 64px; line-height: 1; font-weight: 700; }
.at-iso .y { font-size: 24px; font-weight: 600; color: var(--at-accent-light); }
.at-iso .s { margin-top: 6px; font-size: 14px; color: var(--at-muted-light); }
.at-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.at-numbers .n { font-family: var(--at-font-cond); font-size: 56px; line-height: 1; font-weight: 700; color: var(--at-accent); display: block; }
.at-numbers .l { font-weight: 600; display: block; margin-top: 4px; }
.at-numbers .d { font-size: 14px; color: var(--at-muted); display: block; }
.at-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.at-service { border: 1px solid var(--at-border); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.at-service .ic { align-self: center; padding: 16px; border-radius: 12px; background: var(--at-accent-soft); color: var(--at-accent); display: flex; align-items: center; justify-content: center; }
.at-service h3 { margin: 0; font-size: 22px; font-weight: 700; }
.at-service p { margin: 0; color: var(--at-muted); }
.at-tile-dark { background: var(--at-dark); color: #FFFFFF; border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.at-tile-dark .t { font-family: var(--at-font-cond); font-size: 28px; font-weight: 700; }
.at-tile-dark .d { color: var(--at-muted-light); }
.at-photo { border-radius: 12px; background: var(--at-grey) center/cover no-repeat; border: 1px solid var(--at-border); min-height: 180px; }
.at-sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.at-sector { background: #FFFFFF; border: 1px solid var(--at-border); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.at-sector h3 { margin: 0; font-size: 20px; font-weight: 700; text-align: center; }
.at-sector > span { display: flex; justify-content: center; }
.at-service .ic svg, .at-sector > span svg { stroke-width: 1; }

/* Scheda prodotto / categoria ---------------------------------------------- */
.at-product { padding-top: 24px; padding-bottom: 96px; }
.at-product .layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.at-product .col-visual { flex: 7 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.at-product .col-order { flex: 5 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 992px) { .at-product .col-visual { position: sticky; top: 130px; } }
.at-stage { position: relative; height: 520px; border-radius: 12px; background: var(--at-grey); border: 1px solid var(--at-border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 56px 24px; overflow: hidden; }
.at-stage img { max-width: 100%; max-height: 380px; object-fit: contain; mix-blend-mode: multiply; }
.at-stage .tag { position: absolute; top: 16px; left: 16px; padding: 4px 10px; border-radius: 4px; background: #FFFFFF; border: 1px solid var(--at-border); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--at-muted); }
.at-stage .caption { font-size: 15px; color: var(--at-muted); text-align: center; }
@media (max-width: 767.98px) { .at-stage { height: 360px; } .at-stage img { max-height: 240px; } }
.at-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.at-thumb { height: 96px; border-radius: 8px; border: 1px solid var(--at-border); background: var(--at-grey); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px; }
.at-thumb.active { border: 2px solid var(--at-accent); }
.at-thumb img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.at-product .code { font-size: 14px; color: var(--at-muted); }
.at-product .code strong { color: var(--at-ink); }
.at-product h1 { margin: 0; font-family: var(--at-font-cond); font-size: clamp(38px, 4.2vw, 52px); line-height: 1.02; font-weight: 700; }
.at-product .intro { margin: 0; font-size: 18px; color: var(--at-muted); }

.at-order { border: 1px solid var(--at-border); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 8px 24px rgba(21,25,30,.06); background: #FFFFFF; }
@media (max-width: 575.98px) { .at-order { padding: 20px 16px; } }
.at-order fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.at-order legend, .at-order .lbl { padding: 0; margin-bottom: 0; font-weight: 700; font-size: 16px; float: none; width: auto; }
.at-order legend span, .at-order .lbl span { font-weight: 400; color: var(--at-muted); }
.at-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.at-pills.scroll { max-height: 236px; overflow-y: auto; padding: 2px 4px 2px 2px; }
.at-pill { min-height: 44px; padding: 10px 18px; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--at-input-border); background: #FFFFFF; color: var(--at-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; }
.at-pill:hover { border-color: var(--at-accent); color: var(--at-accent-hover); }
.at-pill[aria-pressed=true], .at-pill.active { border: 2px solid var(--at-accent); background: var(--at-accent-soft); color: var(--at-accent-hover); padding: 9px 17px; }
.at-pill .stock { width: 8px; height: 8px; border-radius: 4px; background: #2F9E5B; flex: none; }
.at-pill .stock.low { background: var(--at-muted-2); }
.at-variant-search { min-height: 40px; }
.at-stepper { display: flex; align-items: stretch; border: 1px solid var(--at-input-border); border-radius: 6px; overflow: hidden; height: 48px; }
.at-stepper button { width: 48px; border: 0; background: var(--at-grey); font: inherit; font-size: 20px; cursor: pointer; color: var(--at-ink); }
.at-stepper button:hover { background: var(--at-grey-2); }
.at-stepper input, .at-unit input { flex: 1; min-width: 0; border: 0; text-align: center; font: inherit; font-size: 18px; font-weight: 600; color: var(--at-ink); -moz-appearance: textfield; }
.at-stepper input::-webkit-outer-spin-button, .at-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.at-stepper input:focus, .at-unit input:focus { outline: none; }
.at-stepper:focus-within, .at-unit:focus-within { border-color: var(--at-accent); box-shadow: 0 0 0 .2rem rgba(184,68,30,.2); }
.at-unit { display: flex; align-items: stretch; height: 48px; border-radius: 6px; overflow: hidden; border: 1px solid var(--at-input-border); }
.at-unit input { text-align: left; padding: 0 14px; }
.at-unit .u { display: flex; align-items: center; padding: 0 14px; background: var(--at-grey); color: var(--at-muted); font-weight: 600; }
.at-unit.is-invalid { border: 2px solid var(--at-danger); }
.at-bar { position: relative; height: 14px; border-radius: 7px; background: var(--at-grey-2); overflow: hidden; }
.at-bar > div { height: 100%; width: 0; border-radius: 7px; background: var(--at-accent); transition: width .2s; }
.at-bar.is-invalid > div { background: var(--at-danger); }
.at-help { margin: 0; font-size: 14px; color: var(--at-muted); }
.at-help strong { color: var(--at-ink); }
.at-alert-err { margin: 0; font-size: 14px; font-weight: 600; color: var(--at-danger); }
.at-total { border-top: 1px solid var(--at-border); padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.at-total .row-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.at-total .price { font-family: var(--at-font-cond); font-size: 32px; font-weight: 700; white-space: nowrap; }
.at-total .price small { font-family: var(--at-font); font-size: 13px; font-weight: 500; color: var(--at-muted); display: block; text-align: right; }
.at-add { min-height: 52px; font-size: 17px; font-weight: 700; }
.at-status-ok { margin: 0; padding: 12px 16px; border-radius: 6px; background: var(--at-success-bg); color: var(--at-success); font-weight: 600; }
.at-specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.at-specs caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 12px; color: var(--at-ink); }
.at-specs tr { border-top: 1px solid var(--at-border); }
.at-specs tr:last-child { border-bottom: 1px solid var(--at-border); }
.at-specs th { text-align: left; padding: 12px 0; font-weight: 500; color: var(--at-muted); }
.at-specs td { padding: 12px 0; text-align: right; font-weight: 600; }
.at-tech { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 48px; }
.at-tech > div:first-child { flex: 7 1 560px; min-width: 0; }
.at-tech > div:last-child { flex: 5 1 400px; min-width: 0; }
.at-tech h2 { margin: 0 0 16px; font-family: var(--at-font-cond); font-size: 36px; font-weight: 700; }
.at-tech p { color: var(--at-muted); }

/* Modali */
.modal-content { border-radius: 12px; border: 0; box-shadow: 0 24px 64px rgba(0,0,0,.35); }
.modal-header { border-bottom: 1px solid var(--at-border); padding: 16px 24px; }
.modal-title { font-weight: 700; }

/* Footer ------------------------------------------------------------------- */
.at-footer { background: var(--at-ink); color: var(--at-muted-light); font-size: 15px; }
.at-footer .grid { padding-top: 56px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.at-footer .col-f { display: flex; flex-direction: column; gap: 6px; }
.at-footer .col-f:first-child { gap: 12px; }
.at-footer img.logo { width: 112px; height: 112px; display: block; }
.at-footer h2 { margin: 0 0 6px; color: #FFFFFF; font-size: 16px; font-weight: 700; }
.at-footer a { color: #E6EAEE; text-decoration: none; }
.at-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.at-footer p { margin: 0; }
.at-footer .legal { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid #2E3740; font-size: 13px; color: var(--at-muted-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.at-footer .legal a { color: var(--at-muted-2); }
.at-footer .iubenda-white, .at-footer .iubenda-embed { margin-right: 8px; }

/* Pagine CMS generiche e flussi e-commerce --------------------------------- */
.at-cms { padding-top: 48px; padding-bottom: 72px; }
.at-cms h1, .at-cms h2, .at-cms h3 { font-family: var(--at-font-cond); font-weight: 700; }
.editPageButton { position: fixed; right: 16px; bottom: 16px; z-index: 1050; }
#main { flex: 1 0 auto; }
#main > .container, #main > div > .container { padding-top: 32px; padding-bottom: 48px; }
.headline h1, .sf-h1 h1 { font-family: var(--at-font-cond); font-weight: 700; font-size: clamp(34px, 4vw, 48px); }
.table { --bs-table-striped-bg: var(--at-grey); }
.card { border-color: var(--at-border); border-radius: 12px; }
.swal2-styled.swal2-confirm { background-color: var(--at-accent) !important; }
#loading { display: none; }
.material-symbols-outlined { vertical-align: middle; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #FFFFFF; padding: 8px 16px; }
.skip-link:focus { left: 16px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Scheda prodotto: viste (disegno / sezione / 3D) ------------------------ */
.at-view { display: none; flex: 1 1 auto; width: 100%; min-height: 0; align-items: center; justify-content: center; }
.at-view.active { display: flex; }
.at-view img { max-width: 100%; max-height: 380px; object-fit: contain; mix-blend-mode: multiply; }
.at-stage.is-3d { padding: 0; }
.at-stage.is-3d .caption { position: absolute; left: 16px; right: 16px; bottom: 14px; pointer-events: none; }
.at-view-3d { position: absolute; inset: 0; }
.at-3d { position: absolute; inset: 0; cursor: grab; touch-action: none; outline: none; }
.at-3d:focus-visible { box-shadow: inset 0 0 0 2px var(--at-accent); border-radius: 12px; }
.at-3d.dragging { cursor: grabbing; }
.at-3d.mode-pan { cursor: move; }
.at-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.at-3d-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--at-muted); font-size: 15px; }
.at-3d-toggle { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--at-border); background: #FFFFFF; color: var(--at-ink); display: flex; align-items: center; justify-content: center; }
.at-3d-toggle[aria-expanded=true], .at-3d-toggle:hover { border-color: var(--at-accent); color: var(--at-accent); }
.at-3d-menu { position: absolute; top: 60px; right: 12px; z-index: 3; width: 236px; max-height: calc(100% - 108px); overflow-y: auto; background: #FFFFFF; border: 1px solid var(--at-border); border-radius: 10px; box-shadow: 0 8px 24px rgba(21,25,30,.12); padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.at-3d-menu[hidden] { display: none; }
.at-3d-menu .grp { display: flex; flex-direction: column; gap: 6px; }
.at-3d-menu .h { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--at-muted); }
.at-3d-menu .seg, .at-3d-menu .row-b { display: flex; gap: 6px; align-items: center; }
.at-3d-menu button { flex: 1 1 0; min-width: 0; height: 34px; border-radius: 6px; border: 1px solid var(--at-border); background: var(--at-grey); color: var(--at-ink); font-weight: 600; font-size: 15px; line-height: 1; }
.at-3d-menu button:hover { border-color: var(--at-accent); color: var(--at-accent); }
.at-3d-menu button[aria-pressed=true] { background: var(--at-accent); border-color: var(--at-accent); color: #FFFFFF; }
.at-3d-menu button.wide { font-size: 13px; }
.at-3d-menu .axis .ax { flex: 0 0 22px; font-weight: 700; text-align: center; }
.at-3d-menu .auto { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.at-3d-menu .hint { margin: 0; font-size: 12px; color: var(--at-muted); line-height: 1.4; }
.at-stage:fullscreen { height: 100vh; border-radius: 0; }
button.at-thumb { cursor: pointer; color: var(--at-ink); }
button.at-thumb:hover { border-color: var(--at-accent); }
.at-thumb-3d { flex-direction: column; gap: 2px; }
.at-thumb-3d .lbl3d { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.at-thumb-3d.active { color: var(--at-accent); }

/* Conclusione ordine ------------------------------------------------------ */
.at-checkout { padding: 40px 0 96px; }
.container-at.at-checkout { padding-left: 12px; padding-right: 12px; } /* login, registrazione, errore, bonifico: il padding sopra azzerava i margini laterali del contenitore */
.at-co-empty { padding: 12vh 0 18vh; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.at-co-empty p { margin: 0; font-size: 18px; color: var(--at-muted); }
.at-co-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.at-co-top h1 { margin: 0; font-family: var(--at-font-cond); font-size: clamp(38px, 4.2vw, 52px); line-height: 1.02; font-weight: 700; }
.at-co-top p { margin: 6px 0 0; color: var(--at-muted); font-size: 18px; }
.at-co-top p a { font-weight: 600; }
.at-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 600; }
.at-steps li { display: flex; align-items: center; gap: 8px; color: var(--at-muted); }
.at-steps li a { color: inherit; text-decoration: none; }
.at-steps .dot { width: 28px; height: 28px; border-radius: 14px; border: 2px solid #9AA3AD; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--at-muted); }
.at-steps .done .dot { border-color: var(--at-border); background: var(--at-border); color: var(--at-ink); }
.at-steps .current { color: var(--at-ink); }
.at-steps .current .dot { border-color: var(--at-accent); background: var(--at-accent); color: #FFFFFF; }
.at-steps .bar { width: 32px; height: 2px; background: #9AA3AD; margin: 0 4px; }

.at-co-form { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.at-co-main { flex: 8 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.at-co-card { margin: 0; min-width: 0; background: #FFFFFF; border: 1px solid var(--at-border); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 575.98px) { .at-co-card { padding: 20px 16px; } }
.at-co-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.at-co-head h2 { margin: 0; font-size: 24px; font-weight: 700; }
.at-co-num { flex: none; width: 36px; height: 36px; border-radius: 18px; background: var(--at-ink-2, #1E252D); color: #FFFFFF; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.at-co-grid, .at-co-sub { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 20px; }
.at-co-sub { padding: 20px; border-radius: 8px; background: var(--at-grey); }
.at-co-sub[hidden] { display: none; }
.at-co-grid .f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.at-co-grid .f > label { font-weight: 600; }
.at-co-grid .f .help { font-size: 13px; color: var(--at-muted); }
.at-co-grid .f.check { flex-direction: row; align-items: center; gap: 12px; }
.at-co-grid .f.check label { margin: 0; }
.at-co-grid textarea.form-control { min-height: 96px; padding: 12px 14px; font-size: 16px; }
.at-co-grid .c-2 { grid-column: span 2; } .at-co-grid .c-3 { grid-column: span 3; } .at-co-grid .c-4 { grid-column: span 4; }
.at-co-grid .c-5 { grid-column: span 5; } .at-co-grid .c-6 { grid-column: span 6; } .at-co-grid .c-7 { grid-column: span 7; }
.at-co-grid .c-12 { grid-column: 1 / -1; }
@media (max-width: 991.98px) {
  .at-co-grid .c-2, .at-co-grid .c-3, .at-co-grid .c-4, .at-co-grid .c-5, .at-co-grid .c-7 { grid-column: span 6; }
}
@media (max-width: 575.98px) {
  .at-co-grid .f { grid-column: 1 / -1 !important; }
  .at-co-sub { padding: 16px; }
}

.at-co-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.at-choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--at-border); border-radius: 8px; cursor: pointer; margin: 0; }
.at-choice:hover { border-color: #9AA3AD; }
.at-choice:has(input:checked) { border: 2px solid var(--at-accent); background: #FBEDE7; padding: 15px; }
.at-choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--at-accent); flex: none; }
.at-choice .body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.at-choice .t { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.at-choice .d { font-size: 14px; color: var(--at-muted); }
.at-choice svg { flex: none; }
.at-co-note { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--at-muted); }
.at-co-note svg { flex: none; margin-top: 2px; }
.at-co-info { padding: 14px 16px; border-radius: 8px; background: var(--at-grey); font-size: 14px; color: var(--at-muted); }
.at-co-info[hidden] { display: none; }

.at-co-summary { flex: 4 1 380px; min-width: 0; position: sticky; top: 104px; background: #FFFFFF; border: 1px solid var(--at-border); border-radius: 12px; overflow: hidden; }
@media (max-width: 991.98px) { .at-co-summary { position: static; } }
.at-co-summary .hd { padding: 20px 24px; background: #1E252D; color: #FFFFFF; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.at-co-summary .hd h2 { margin: 0; font-size: 20px; font-weight: 700; }
.at-co-summary .hd a { color: #F0A486; font-size: 14px; font-weight: 600; }
.at-co-summary .bd { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.at-co-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; max-height: 420px; overflow-y: auto; }
.at-co-items li { display: flex; gap: 16px; }
.at-co-items .thumb { flex: none; width: 64px; height: 64px; border-radius: 8px; background: var(--at-grey); border: 1px solid var(--at-border); display: flex; align-items: center; justify-content: center; }
.at-co-items .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.at-co-items .row-t { display: flex; justify-content: space-between; gap: 8px; }
.at-co-items .nowrap { white-space: nowrap; }
.at-co-items dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 14px; color: var(--at-muted); }
.at-co-items dd { margin: 0; color: var(--at-ink); }
.at-co-totals { margin: 0; border-top: 1px solid var(--at-border); padding-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 15px; }
.at-co-totals dt { color: var(--at-muted); font-weight: 400; }
.at-co-totals dd { margin: 0; text-align: right; }
.at-co-grand { border-top: 1px solid var(--at-border); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.at-co-grand > span:first-child { font-size: 18px; font-weight: 700; }
.at-co-grand .v { font-family: var(--at-font-cond); font-size: 36px; font-weight: 700; white-space: nowrap; }
.at-co-terms { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--at-muted); }
.at-co-terms label { margin: 0; }
.at-co-submit { min-height: 56px; font-size: 18px; font-weight: 700; width: 100%; }
.at-co-safe { margin: 0; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--at-muted); }

/* Carrello ---------------------------------------------------------------- */
.at-cart-list { padding: 0; gap: 0; }
.at-cart-list ul { list-style: none; margin: 0; padding: 0; }
.at-cart-row { display: flex; gap: 20px; align-items: flex-start; padding: 24px 28px; border-bottom: 1px solid var(--at-border); }
.at-cart-row.is-busy { opacity: .5; pointer-events: none; }
.at-cart-row .thumb { flex: none; width: 80px; height: 80px; border-radius: 8px; background: var(--at-grey); border: 1px solid var(--at-border); display: flex; align-items: center; justify-content: center; }
.at-cart-row .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.at-cart-row .name { display: flex; flex-direction: column; gap: 2px; }
.at-cart-row .name strong { font-size: 18px; }
.at-cart-row .name a { color: var(--at-ink); text-decoration: none; }
.at-cart-row .name a:hover strong { color: var(--at-accent); }
.at-cart-row .name span { font-size: 14px; color: var(--at-muted); }
.at-cart-row .ctrls { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.at-cart-row .ctrl { display: flex; flex-direction: column; gap: 6px; }
.at-cart-row .ctrl > label, .at-cart-row .ctrl .lbl { font-size: 13px; font-weight: 600; color: var(--at-muted); }
.at-cart-row .ctrl.price { margin-left: auto; align-items: flex-end; text-align: right; }
.at-cart-row .ctrl.price .lbl { font-weight: 400; }
.at-cart-row .ctrl.price strong { font-family: var(--at-font-cond); font-size: 26px; line-height: 1; white-space: nowrap; }
.at-unit-sm, .at-stepper-sm { height: 42px; }
.at-unit-sm { width: 150px; }
.at-unit-sm input { font-size: 16px; padding: 0 10px; }
.at-unit-sm .u { padding: 0 10px; }
.at-stepper-sm { width: 140px; }
.at-stepper-sm button { width: 40px; font-size: 18px; }
.at-stepper-sm input { font-size: 16px; }
.at-cart-remove { flex: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--at-border); background: #FFFFFF; color: var(--at-muted); display: flex; align-items: center; justify-content: center; }
.at-cart-remove:hover { border-color: var(--at-danger); color: var(--at-danger); }
.at-cart-list .foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 28px; }
.at-cart-list .foot .btn-link { font-size: 15px; text-decoration: underline; }
.at-cart-list .foot .btn-link:hover { color: var(--at-danger) !important; }
.at-cart .at-co-summary .at-co-submit { display: flex; align-items: center; justify-content: center; }
@media (max-width: 575.98px) {
  .at-cart-row { padding: 18px 16px; gap: 12px; flex-wrap: wrap; }
  .at-cart-row .thumb { width: 56px; height: 56px; }
  .at-cart-row .main { order: 3; flex-basis: 100%; }
  .at-cart-row .name { flex: 1; }
  .at-cart-row .ctrl.price { margin-left: 0; align-items: flex-start; text-align: left; flex-basis: 100%; }
  .at-cart-list .foot { padding: 16px; }
}

/* Accesso ----------------------------------------------------------------- */
.at-login-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
@media (max-width: 991.98px) { .at-login-grid { grid-template-columns: minmax(0, 1fr); } }
.at-login-side { background: var(--at-grey); }
.at-login-side .at-co-info { background: #FFFFFF; border: 1px solid var(--at-border); }
.at-co-grid .f .err { font-size: 14px; font-weight: 600; color: var(--at-danger); }
.at-login-alert { padding: 14px 16px; border-radius: 8px; background: #FDECEA; color: var(--at-danger); font-weight: 600; }
.at-pwd { position: relative; }
.at-pwd input { padding-right: 52px; }
.at-pwd-toggle { position: absolute; top: 0; right: 0; width: 48px; height: 100%; border: 0; background: transparent; color: var(--at-muted); display: flex; align-items: center; justify-content: center; }
.at-pwd-toggle:hover, .at-pwd-toggle[aria-pressed=true] { color: var(--at-accent); }
.at-login .at-co-submit { display: flex; align-items: center; justify-content: center; }
.at-pwd input.is-invalid { background-image: none; }

/* Registrazione / recupero password -------------------------------------- */
.at-auth-narrow { max-width: 640px; }
.at-auth-msg { padding: 14px 16px; border-radius: 8px; font-weight: 600; background: var(--at-grey); color: var(--at-ink); }
.at-auth-msg.ok { background: #E7F4EC; color: #14532D; }
.at-auth-msg.err { background: #FDECEA; color: var(--at-danger); }
.at-auth-msg.warn { background: #FFF4E5; color: #7A4B00; }
.at-seg { display: inline-flex; padding: 4px; border-radius: 8px; background: var(--at-grey); border: 1px solid var(--at-border); }
.at-seg a { padding: 8px 18px; border-radius: 6px; font-weight: 600; color: var(--at-muted); text-decoration: none; }
.at-seg a:hover { color: var(--at-ink); }
.at-seg a[aria-current=page] { background: #FFFFFF; color: var(--at-ink); box-shadow: 0 1px 3px rgba(21,25,30,.12); }
.at-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.at-benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.at-benefits svg { flex: none; color: var(--at-accent); margin-top: 1px; }
.at-signup .at-co-submit { display: flex; align-items: center; justify-content: center; }
.at-co-grid .f.check label.fw-normal { font-weight: 400; color: var(--at-muted); font-size: 15px; }

/* ---------- Area personale (pages/my-account.php) ---------- */
.at-account .at-co-grid .c-9 { grid-column: span 9; }
@media (max-width: 767.98px) { .at-account .at-co-grid .c-9 { grid-column: 1 / -1; } }
.at-account .at-co-grid > .at-co-sub { grid-column: 1 / -1; }
.at-account .at-co-sub.at-co-grid, .at-account form.at-co-sub { display: grid; }
.at-account form.at-co-sub[hidden], .at-account .at-co-sub[hidden], .at-account .f[hidden] { display: none; }
.at-acc-head-row { flex-wrap: wrap; }
.at-acc-h3 { margin: 0; font-size: 18px; font-weight: 700; }
.at-acc-actions { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 12px 16px !important; }
.at-acc-status { font-size: 14px; color: var(--at-muted); }
.text-danger-at { color: var(--at-danger) !important; }
.at-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--at-grey); color: var(--at-ink); }
.at-pill.ok { background: #E7F4EC; color: #14532D; }
.at-pill.warn { background: #FFF4E5; color: #7A4B00; }
.at-pill.err { background: #FDECEA; color: var(--at-danger); }
.at-pill.info { background: #E8F0FB; color: #1E3A8A; }
.at-pill.muted { color: var(--at-muted); }
.at-ord-list, .at-addr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.at-ord { border: 1px solid var(--at-border); border-radius: 10px; }
.at-ord[open] { border-color: var(--at-ink); }
.at-ord summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 18px; }
.at-ord summary::-webkit-details-marker { display: none; }
.at-ord summary:focus-visible { outline: 2px solid var(--at-accent); outline-offset: 2px; border-radius: 10px; }
.at-ord summary .n { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.at-ord summary .n span { font-size: 14px; color: var(--at-muted); }
.at-ord summary .t { margin-left: auto; font-family: var(--at-font-cond); font-size: 22px; white-space: nowrap; }
.at-ord summary .chev { color: var(--at-muted); transition: transform .2s; }
.at-ord[open] summary .chev { transform: rotate(180deg); }
.at-ord .bd { border-top: 1px solid var(--at-border); padding: 18px; display: flex; flex-direction: column; gap: 20px; }
.at-ord .at-co-items { max-height: none; }
.at-ord-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; }
.at-ord .at-co-totals { border-top: 0; padding-top: 0; align-content: start; }
.at-ord .at-co-totals .g { font-weight: 700; color: var(--at-ink); border-top: 1px solid var(--at-border); padding-top: 10px; }
.at-ord-meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; align-content: start; }
.at-ord-meta dt { color: var(--at-muted); font-weight: 400; }
.at-ord-meta dd { margin: 0; }
.at-addr { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--at-border); border-radius: 10px; }
.at-addr.is-default { border-color: var(--at-ink); }
.at-addr > svg { flex: none; margin-top: 2px; color: var(--at-accent); }
.at-addr .txt { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.at-addr .txt > span { font-size: 14px; color: var(--at-muted); }
.at-addr .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.at-addr .act { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.at-addr .act .btn-link { font-size: 14px; font-weight: 600; }
.at-acc-side .bd > .btn { display: flex; align-items: center; justify-content: center; }
.at-acc-who { display: flex; gap: 14px; align-items: center; }
.at-acc-who .av { flex: none; width: 52px; height: 52px; border-radius: 26px; background: var(--at-grey); display: inline-flex; align-items: center; justify-content: center; }
.at-acc-who div { display: flex; flex-direction: column; min-width: 0; }
.at-acc-who div span { font-size: 14px; color: var(--at-muted); overflow-wrap: anywhere; }
.at-account .at-seg a { scroll-margin-top: 110px; }
.at-account section[id] { scroll-margin-top: 110px; }
.at-ord-foot { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--at-border); padding-top: 16px; }
.at-ord-foot form { margin: 0; }
.at-ord .at-co-totals dt .help { font-size: 13px; color: var(--at-muted); }

/* Pagamento con bonifico (templates/banktransfer/) ----------------------- */
.at-bt-bank { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0; border: 1px solid var(--at-accent); border-radius: 8px; background: var(--at-accent-soft); overflow: hidden; }
.at-bt-bank dt, .at-bt-bank dd { margin: 0; padding: 12px 16px; border-top: 1px solid rgba(184,68,30,.18); }
.at-bt-bank dt:first-of-type, .at-bt-bank dt:first-of-type + dd { border-top: 0; }
.at-bt-bank dt { font-weight: 400; color: var(--at-muted); }
.at-bt-bank dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--at-ink); min-width: 0; }
.at-bt-bank dd .v { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) {
  .at-bt-bank { grid-template-columns: 1fr; }
  .at-bt-bank dt { padding-bottom: 0; }
  .at-bt-bank dd { border-top: 0; padding-top: 2px; }
}
.at-bt-copy { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--at-accent); border-radius: 6px; background: #FFFFFF; color: var(--at-accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.at-bt-copy:hover { background: var(--at-accent); color: #FFFFFF; }
.at-bt-addr { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; }
.at-bt-addr .lbl { display: block; font-weight: 700; margin-bottom: 4px; }
.at-bt-addr p { margin: 0; line-height: 1.5; }
.at-bt-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--at-border); padding-top: 16px; }
.at-bt-cancel { color: var(--at-danger); font-weight: 600; }
.at-bt-num { font-size: 14px; font-weight: 600; color: #F0A486; white-space: nowrap; }
.at-bt-ok { display: flex; align-items: center; gap: 12px; }
.at-bt-ok svg { flex: none; }
.at-co-submit.disabled { pointer-events: none; opacity: .7; }

/* Pagamento con PayPal (templates/paypal/, parti comuni con il bonifico) -- */
.at-pp-btn { background: #FFC439; border: 1px solid #F2B21B; color: #003087; gap: 6px; }
.at-pp-btn:hover, .at-pp-btn:focus { background: #F2B21B; border-color: #E0A40F; color: #003087; }
.at-pp-logo { font-style: italic; font-weight: 800; letter-spacing: -.01em; }
.at-pp-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.at-pp-ready { display: flex; align-items: flex-start; gap: 12px; color: var(--at-ink); }
.at-pp-ready svg { flex: none; color: var(--at-accent); }
.at-pp-debug { max-width: 720px; margin: 0; padding: 12px 16px; border-radius: 8px; background: var(--at-grey); font-size: 13px; text-align: left; white-space: pre-wrap; }
