/* tool-pages.css — pagine-strumento (dicembre 2026). Solo aggiunte, styles.css non toccato. */
.tool-start {
  background: linear-gradient(135deg, rgba(15, 159, 123, 0.08), rgba(240, 178, 63, 0.10));
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 22px 0 10px;
  padding: 18px;
}
.tool-start-title {
  color: var(--ink, #16211c) !important;
  font-size: 1rem !important;
  font-weight: 800;
  margin: 0 0 12px !important;
}
.tool-start-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.page a.tool-start-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink, #16211c);
  display: flex;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.page a.tool-start-btn:hover,
.page a.tool-start-btn:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(24, 34, 29, 0.10);
  transform: translateY(-1px);
}
.tool-start-btn .shape {
  background: var(--accent);
  border-radius: 3px;
  flex: 0 0 auto;
  opacity: .85;
}
.tool-start-btn .shape.r-1-1 { height: 30px; width: 30px; }
.tool-start-btn .shape.r-4-5 { height: 34px; width: 27px; }
.tool-start-btn .shape.r-9-16 { height: 38px; width: 21px; }
.tool-start-btn .shape.r-3-4 { height: 36px; width: 27px; }
.tool-start-btn .shape.r-16-9 { height: 20px; width: 36px; }
.tool-start-btn .shape.r-a4 { height: 38px; width: 27px; }
.tool-start-btn span.txt { display: grid; line-height: 1.25; }
.tool-start-btn strong { font-size: 1rem; }
.tool-start-btn small { color: var(--muted); font-size: .85rem; font-weight: 600; }
.tool-usp {
  color: var(--muted-strong);
  display: flex;
  flex-wrap: wrap;
  font-size: .92rem;
  font-weight: 700;
  gap: 6px 16px;
  list-style: none;
  margin: 12px 0 0 !important;
  padding: 0;
}
.tool-usp li { font-size: .92rem !important; line-height: 1.4 !important; }
.tool-usp li::before { color: var(--accent); content: "✓ "; }
.toc {
  border-left: 3px solid var(--accent);
  margin: 18px 0 8px;
  padding: 4px 0 4px 14px;
}
.toc p { font-size: .95rem !important; line-height: 1.9 !important; margin: 0; }
.toc a { font-weight: 700; white-space: nowrap; }
.page h2[id], .page .faq[id] { scroll-margin-top: 80px; }
.size-table-wrap { overflow-x: auto; }
.size-table { border-collapse: collapse; margin: 14px 0; width: 100%; }
.size-table th, .size-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.size-table th { font-size: .9rem; }
.size-table td { color: var(--muted-strong); }
.examples-gallery {
  align-items: start;
  display: grid;
  gap: 18px 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin: 16px 0 10px;
}
.examples-gallery figure { margin: 0; }
.examples-gallery img {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
  height: auto;
  width: 100%;
}
.examples-gallery figcaption { color: var(--muted-strong); font-size: .9rem; line-height: 1.45; margin-top: 7px; }
.examples-gallery figcaption a { font-size: .9rem; }
@media (max-width: 520px) {
  .examples-gallery { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .examples-gallery figcaption { font-size: .82rem; }
}
.styles-gallery { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.compare-gallery { grid-template-columns: repeat(2, minmax(0, 220px)); }
.tag-good, .tag-bad { border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 800; margin-right: 4px; padding: 2px 8px; }
.tag-good { background: #0f9f7b; }
.tag-bad { background: #c0392b; }
.wide-figure { margin: 16px 0; }
.wide-figure img { border-radius: 10px; display: block; height: auto; max-width: 100%; }
.wide-figure figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.story-guide { align-items: start; display: grid; gap: 18px; grid-template-columns: 120px 1fr; }
.story-diagram { height: auto; width: 120px; }
@media (max-width: 520px) { .story-guide { grid-template-columns: 90px 1fr; gap: 12px; } .story-diagram { width: 90px; } }
.layout-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin: 14px 0;
}
.layout-cards > div {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  padding: 12px;
}
.layout-cards svg { flex: 0 0 34px; height: 42px; width: 34px; }
.layout-cards svg rect { fill: var(--accent); opacity: .8; }
.layout-cards p { font-size: .9rem !important; line-height: 1.45 !important; margin: 0; }
.layout-cards strong { display: block; color: var(--ink, #16211c); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 6px; }
.page .page-cta-alt { background: #fff; border: 2px solid var(--accent); color: var(--accent); }
.examples-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 16px 0 6px;
}
.examples-row figure { margin: 0; }
.examples-row img {
  background: #eef2ee;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
  height: auto;
  width: 100%;
}
.examples-row figcaption { color: var(--muted-strong); font-size: .9rem; font-weight: 700; margin-top: 6px; }
.examples-row figcaption a { font-size: .88rem; }

/* ---- Home (dicembre 2026): riga "quick start", sezioni sotto l'editor, barra lingua ---- */
.home-quick { width: min(760px, 100%); }
.home-quick-title { color: var(--muted-strong); font-size: .95rem; font-weight: 800; margin: 0 0 10px; }
.home-quick-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .home-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-quick a.tool-start-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink, #16211c);
  display: flex;
  gap: 10px;
  min-height: 56px;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.home-quick a.tool-start-btn:hover,
.home-quick a.tool-start-btn:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(24, 34, 29, 0.10);
  transform: translateY(-1px);
}
.home-quick .tool-start-btn strong { font-size: .92rem; }
.home-quick .tool-start-btn small { font-size: .78rem; }
.tool-start-btn .shape.r-pair { height: 30px; width: 30px; background: linear-gradient(90deg, var(--accent) 0 44%, transparent 44% 56%, var(--accent) 56%); }
.tool-start-btn .shape.r-grid4 {
  height: 30px; width: 30px;
  background:
    linear-gradient(90deg, transparent 44%, #fff 44% 56%, transparent 56%),
    linear-gradient(0deg, transparent 44%, #fff 44% 56%, transparent 56%),
    var(--accent);
}
.home-content .examples-gallery figcaption a { color: #0f7a5f; font-weight: 700; }
.home-content .examples-gallery { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 520px) { .home-content .examples-gallery { grid-template-columns: 1fr 1fr; } }
.home-content .layout-cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.home-content .layout-cards > div { background: #fff; }
.home-tools { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); list-style: none; margin: 24px 0 0; padding: 0; }
.home-tools a { background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink, #16211c); display: block; height: 100%; padding: 14px 16px; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.home-tools a:hover, .home-tools a:focus-visible { border-color: var(--accent); box-shadow: 0 8px 22px rgba(24, 34, 29, 0.08); }
.home-tools strong { color: #0f7a5f; display: block; font-size: 1rem; margin-bottom: 4px; }
.home-tools span { color: var(--muted-strong); display: block; font-size: .92rem; line-height: 1.45; }
.home-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 0; }
.home-cta { align-items: center; background: var(--accent); border: 2px solid var(--accent); border-radius: 999px; color: #fff; display: inline-flex; font-weight: 800; padding: 12px 24px; text-decoration: none; }
.home-cta:hover { filter: brightness(0.95); }
.home-cta.home-cta-alt { background: #fff; color: #0f7a5f; }
.home-app { text-align: center; }
.home-app-title { color: var(--ink, #16211c); font-size: 1.1rem; font-weight: 800; margin: 0 0 10px; }
.lang-notice {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(24, 34, 29, 0.08);
  display: inline-flex;
  font-size: .9rem;
  gap: 4px;
  justify-self: center;
  max-width: 100%;
  padding: 3px 4px 3px 14px;
}
.lang-notice-link { color: #0f7a5f; font-weight: 800; text-decoration: none; }
.lang-notice-link:hover { text-decoration: underline; }
.lang-notice-x { color: var(--muted); font-size: 1.15rem; line-height: 1; padding: 4px 9px; text-decoration: none; }

/* ---- Home statiche /it/ e /es/ (dic 2026): pulsanti rapidi e vantaggi a tutta larghezza nel riquadro .hub-hero ---- */
.hub-hero .home-quick, .hub-hero .tool-usp { grid-column: 1 / -1; }
.hub-hero .home-quick { width: 100%; }
@media (max-width: 860px) { .hub-hero .tool-usp { justify-content: center; } }
.page .home-content { margin-top: 8px; }
.page .home-content h2 { margin-top: 44px; }

/* ---- Guida stampa A4 (print-): schema Riempi/Adatta ---- */
.layout-cards svg.print-wide { flex: 0 0 50px; height: 42px; width: 50px; }
.layout-cards svg rect.print-ghost { fill: var(--accent); opacity: .22; }
.layout-cards svg rect.print-cell { fill: none; opacity: 1; stroke: var(--accent); stroke-width: 1.5; }

/* ---- Guida prima/dopo (ba-): riquadri Sì / No ---- */
.ba-dodont { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin: 12px 0 8px; }
.ba-dodont > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.ba-dodont > div > p { margin: 0 0 6px; }
.ba-dodont ul { margin: 0; padding-left: 18px; }
.ba-dodont li { font-size: .95rem; line-height: 1.5; }

/* ---- Guida template + moodboard (tpl-): galleria dei layout con link ---- */
.tpl-cards { grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); }
.tpl-cards > div { background: #fff; }
.layout-cards.tpl-cards svg polygon { fill: var(--accent); opacity: .8; stroke: #fff; stroke-width: 1.2; }
.layout-cards.tpl-cards svg rect.tpl-in { fill: #fff; opacity: 1; stroke: var(--accent); stroke-width: 1.5; }
.layout-cards.tpl-cards svg rect.tpl-frame { fill: none; opacity: 1; stroke: var(--muted, #6b7a72); stroke-width: 1.2; }
.tpl-cards p a { display: inline-block; font-size: .85rem; font-weight: 700; margin-top: 3px; }/* Pagina app CollageImage, Chi siamo e Contatti (dic 2026) */
.apppage-badges { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.apppage-badges a { display: inline-block; line-height: 0; }
.apppage-badges .b-play { height: 62px; width: auto; }
.apppage-badges .b-apple { height: 44px; width: auto; }
.apppage-web { font-size: .95rem; margin: 6px 0 22px; }
.apppage-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .apppage-shots { grid-template-columns: 1fr 1fr; } }
.contactpage-mail { font-size: 1.35rem; font-weight: 800; margin: 14px 0 6px; overflow-wrap: anywhere; }
.contactpage-topics li { margin: 0 0 12px; }
/* 27/11: sul telefono i pulsanti di partenza stanno su due colonne (la pagina 12 foto ne ha 11) */
@media (max-width: 520px) {
  .tool-start-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .page a.tool-start-btn { padding: 10px; gap: 8px; }
  .page a.tool-start-btn small, .page a.tool-start-btn .sub { font-size: .78rem; }
}
/* 27/11: menu sul telefono (deploy/mobile-menu.js). Su computer il pulsante non si vede. */
.mm-btn { display: none; }
@media (max-width: 680px), (pointer: coarse) and (max-height: 500px) {
  .topbar { position: sticky; }
  .mm-btn {
    align-items: center; background: #fff; border: 1px solid var(--line, #d9ded8); border-radius: 10px;
    color: var(--ink, #16211c); cursor: pointer; display: inline-flex; font: 600 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
    gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px;
  }
  .mm-icon { display: inline-grid; gap: 4px; width: 18px; }
  .mm-icon span { background: currentColor; border-radius: 2px; display: block; height: 2px; transition: transform .15s ease, opacity .15s ease; }
  .topbar.mm-open .mm-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .topbar.mm-open .mm-icon span:nth-child(2) { opacity: 0; }
  .topbar.mm-open .mm-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .topbar.mm-open .topnav {
    background: #fff; border-bottom: 1px solid var(--line, #d9ded8); box-shadow: 0 12px 24px rgba(22, 33, 28, .12);
    display: grid; gap: 0; grid-template-columns: 1fr 1fr; left: 0; max-height: calc(100vh - 70px); overflow-y: auto;
    padding: 8px 14px 14px; position: absolute; right: 0; top: 100%; z-index: 60;
  }
  .topbar.mm-open .topnav a { border-bottom: 1px solid var(--line, #e6e9e4); color: var(--ink, #16211c); font-size: 16px; padding: 12px 6px; }
}
/* Home (barra con EN/IT/ES): sul telefono il pulsante menu diventa solo icona e il nome si stringe per starci. */
@media (max-width: 680px) {
  .topbar:has(.lang-switch) { gap: 8px; }
  .topbar:has(.lang-switch) .mm-btn { padding: 0; justify-content: center; width: 44px; }
  .topbar:has(.lang-switch) .mm-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 400px) {
  .topbar:has(.lang-switch) .brand-name strong { font-size: 13px; }
  .topbar:has(.lang-switch) .brand-name small { display: none; }
}
@media (max-width: 680px) {
  .topbar:has(.lang-switch) .mm-btn { flex: 0 0 44px; }
  .topbar:has(.lang-switch) .lang-switch { flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 400px) {
  .topbar:has(.lang-switch) .lang-switch button { min-width: 38px; padding-left: 0; padding-right: 0; }
  .topbar:has(.lang-switch) .brand { min-width: 0; }
}
