/*
Theme Name: ComeDevoFare.it
Theme URI: https://comedevofare.it/
Author: ComeDevoFare.it
Author URI: https://comedevofare.it/
Description: Block theme editoriale per guide pratiche, procedure e servizi della vita quotidiana.
Requires at least: 6.6
Requires PHP: 8.0
Version: 1.3.9
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comedevofare
Tags: block-patterns, block-styles, blog, education, full-site-editing, news
*/

:root {
  --cdf-ink: var(--wp--preset--color--ink, #163331);
  --cdf-muted: var(--wp--preset--color--muted, #5e716f);
  --cdf-green: var(--wp--preset--color--green, #0b5d57);
  --cdf-green-dark: var(--wp--preset--color--green-dark, #083f3b);
  --cdf-green-soft: var(--wp--preset--color--green-soft, #dff2ec);
  --cdf-coral: var(--wp--preset--color--coral, #ee765e);
  --cdf-yellow: var(--wp--preset--color--yellow, #f6c85f);
  --cdf-paper: var(--wp--preset--color--paper, #fffdf7);
  --cdf-cream: var(--wp--preset--color--cream, #f5f0e4);
  --cdf-line: #d8e0dc;
  --cdf-shadow: 0 18px 50px rgba(18, 62, 57, 0.11);
  --cdf-radius-sm: 12px;
  --cdf-radius-md: 20px;
  --cdf-radius-lg: 32px;
}

/* Componenti editoriali 1.3.0 */
.cdf-guide-checklist-link {
	margin: 1rem 0 0;
}

.cdf-guide-checklist-link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: .7rem 1rem;
	border: 2px solid var(--wp--preset--color--green, #0b5d57);
	border-radius: .5rem;
	color: var(--wp--preset--color--green, #0b5d57);
	font-weight: 700;
	text-decoration: none;
}

.cdf-related-guides {
	width: 100%;
}

.cdf-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.cdf-related-grid .cdf-guide-card {
	background: #fff;
}

.cdf-author-profile {
	max-width: 760px;
	padding: 1.25rem;
	border-left: 4px solid var(--wp--preset--color--green, #0b5d57);
	background: var(--wp--preset--color--cream, #f7f3e8);
}

@media (max-width: 760px) {
	.cdf-related-grid {
		grid-template-columns: 1fr;
	}
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { text-underline-offset: 3px; }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 3px solid var(--cdf-coral); outline-offset: 3px; }

.cdf-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(11, 93, 87, .12);
  background: rgba(255, 253, 247, .94);
  backdrop-filter: blur(14px);
}
.admin-bar .cdf-site-header { top: 32px; }
.cdf-header-inner { min-height: 82px; }
.cdf-brand { gap: 10px; }
.cdf-header-logo { margin: 0; line-height: 0; }
.cdf-header-logo .custom-logo-link { display: block; }
.cdf-header-logo .custom-logo {
  display: block;
  width: min(290px, 42vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}
.cdf-main-nav .wp-block-navigation-item__content { font-size: .875rem; font-weight: 700; }
.cdf-main-nav .wp-block-navigation-item__content:hover { color: var(--cdf-green); }
.cdf-paths-home-link { margin: 18px 0 12px; }
.cdf-paths-home-link a { display: inline-block; padding: 12px 18px; border-radius: 9px; background: var(--cdf-green, #0b5d57); color: #fff; font-weight: 700; text-decoration: none; line-height: 1.4; }
.cdf-paths-home-link a:hover { background: var(--cdf-green-dark, #083f3b); color: #fff; }
.cdf-paths-home-link a:focus-visible { outline: 3px solid #ee765e; outline-offset: 4px; }
@media (min-width: 600px) and (max-width: 960px) {
  .cdf-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open),
  .cdf-main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .cdf-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}

@media (max-width: 680px) {
  .cdf-header-logo .custom-logo { width: min(220px, 62vw); max-height: 48px; }
}

.cdf-eyebrow {
  margin-bottom: 12px;
  color: var(--cdf-green);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.cdf-hero {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 78% 16%, rgba(246, 200, 95, .45) 0 120px, transparent 121px),
    radial-gradient(circle at 92% 72%, rgba(139, 198, 220, .35) 0 180px, transparent 181px),
    linear-gradient(135deg, #e5f3ec 0%, #f7f1e5 58%, #f7e9db 100%);
}
.cdf-hero-inner { min-height: 580px; padding-block: clamp(60px, 8vw, 96px); }
.cdf-hero-title {
  margin: 0;
  color: var(--cdf-green-dark);
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(3.4rem, 7.3vw, 5.75rem);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: .98;
}
.cdf-hero-lead { max-width: 680px; color: #405c59; font-size: clamp(1.125rem, 2.1vw, 1.45rem); line-height: 1.45; }
.cdf-search-box {
  max-width: 710px;
  padding: 8px;
  border: 2px solid rgba(11, 93, 87, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--cdf-shadow);
}
.cdf-search-box:focus-within { border-color: var(--cdf-green); box-shadow: 0 0 0 5px rgba(11, 93, 87, .10), var(--cdf-shadow); }
.cdf-search-box .wp-block-search__inside-wrapper { border: 0; }
.cdf-search-box .wp-block-search__input { min-height: 54px; border: 0; background: transparent; }
.cdf-search-box .wp-block-search__button {
  border: 0;
  border-radius: var(--cdf-radius-sm);
  background: var(--cdf-green);
  color: #fff;
  font-weight: 800;
}
.cdf-search-box .wp-block-search__button:hover { background: var(--cdf-green-dark); }
.cdf-quick-links { color: var(--cdf-muted); font-size: .8125rem; }
.cdf-quick-links a { color: var(--cdf-green); font-weight: 750; }

.cdf-today-card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(11, 93, 87, .13);
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 24px 70px rgba(34, 71, 67, .14);
  transform: rotate(1.5deg);
}
.cdf-today-card::before {
  content: "";
  position: absolute;
  inset: -10px 16px 10px -14px;
  z-index: -1;
  border: 2px solid rgba(11, 93, 87, .12);
  border-radius: 32px;
  transform: rotate(-3deg);
}
.cdf-today-card .wp-block-heading { font-family: var(--wp--preset--font-family--serif); }
.cdf-today-card .wp-block-list { margin: 0; padding: 0; list-style: none; }
.cdf-today-card li { padding: 15px 4px; border-top: 1px solid var(--cdf-line); font-size: .9rem; font-weight: 720; }
.cdf-today-card li a { display: block; text-decoration: none; }
.cdf-today-card li a::after { content: " →"; float: right; color: var(--cdf-coral); font-size: 1.15rem; }
.cdf-seasonal-reminders { margin: 0; padding: 0; list-style: none; }

.cdf-section { padding-block: clamp(64px, 8vw, 96px); }
.cdf-section-heading { align-items: end; margin-bottom: 36px; }
.cdf-section-heading .wp-block-heading { margin: 0; color: var(--cdf-green-dark); font-family: var(--wp--preset--font-family--serif); letter-spacing: -.035em; line-height: 1.08; }
.cdf-section-heading > p { max-width: 430px; color: var(--cdf-muted); }
.cdf-topic-grid { gap: 14px; }
.cdf-topic-card {
  min-height: 178px;
  padding: 20px 16px;
  border: 1px solid var(--cdf-line);
  border-radius: var(--cdf-radius-md);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cdf-topic-card:hover { transform: translateY(-5px); border-color: var(--cdf-green); box-shadow: 0 13px 35px rgba(20, 73, 67, .10); }
.cdf-topic-symbol {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin: 0 0 24px;
  border-radius: 13px 13px 13px 5px;
  background: var(--cdf-green-soft);
  color: var(--cdf-green);
  font-size: 1.35rem;
  font-weight: 850;
}
.cdf-topic-card .wp-block-heading { margin: 0 0 4px; font-size: .98rem; }
.cdf-topic-card p:last-child { margin: 0; color: var(--cdf-muted); font-size: .78rem; line-height: 1.4; }
.cdf-topic-card a { text-decoration: none; }

.cdf-guides-section { background: var(--cdf-cream); }
.cdf-guide-query .wp-block-post-template { gap: 18px; }
.cdf-guide-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 24px;
  border: 1px solid rgba(11, 93, 87, .10);
  border-radius: var(--cdf-radius-md);
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 62, 58, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cdf-guide-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(30, 62, 58, .10); }
.cdf-guide-meta { color: var(--cdf-muted); font-size: .75rem; font-weight: 750; }
.cdf-guide-meta .wp-block-post-terms a { display: inline-block; padding: 5px 9px; border-radius: 999px; background: var(--cdf-green-soft); color: var(--cdf-green); text-decoration: none; }
.cdf-guide-card .wp-block-post-title { margin: 24px 0 10px; font-family: var(--wp--preset--font-family--serif); font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.2; }
.cdf-guide-card .wp-block-post-title a { text-decoration: none; }
.cdf-guide-card .wp-block-post-excerpt { margin-bottom: 20px; color: var(--cdf-muted); font-size: .875rem; }
.cdf-guide-card .wp-block-post-date { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--cdf-line); color: var(--cdf-green); font-size: .75rem; font-weight: 800; }
.cdf-guide-card > .wp-block-post-date::before,
.cdf-article-meta > .wp-block-post-date::before { content: "Aggiornata il "; }
.cdf-pagination { margin-top: 42px; }
.cdf-pagination a, .cdf-pagination .current { padding: 8px 12px; border-radius: 9px; }
.cdf-pagination .current { background: var(--cdf-green); color: #fff; }

.cdf-method-panel {
  overflow: hidden;
  position: relative;
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--cdf-radius-lg);
  background: var(--cdf-green-dark);
  color: #fff;
}
.cdf-method-panel::after { content: "✓"; position: absolute; right: -20px; bottom: -145px; color: rgba(255, 255, 255, .04); font-size: 290px; font-weight: 900; transform: rotate(-12deg); }
.cdf-method-panel .cdf-eyebrow { color: var(--cdf-yellow); }
.cdf-method-panel .wp-block-heading { color: #fff; font-family: var(--wp--preset--font-family--serif); }
.cdf-method-point { position: relative; z-index: 1; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.cdf-method-point:last-child { border-bottom: 0; }
.cdf-method-number { color: var(--cdf-yellow); font-size: .75rem; font-weight: 850; }
.cdf-method-point p { margin: 0; color: rgba(255,255,255,.72); font-size: .875rem; }
.cdf-method-point strong { color: #fff; }
.cdf-method-link { margin-top: 24px; }
.cdf-method-link a { color: var(--cdf-yellow); font-size: .85rem; font-weight: 800; }

.cdf-popular-actions { background: #fff; }
.cdf-action-grid { gap: 14px; }
.cdf-action-card {
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--cdf-line);
  border-radius: var(--cdf-radius-md);
  background: var(--cdf-paper);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cdf-action-card:hover { transform: translateY(-4px); border-color: var(--cdf-green); box-shadow: 0 14px 34px rgba(20,73,67,.09); }
.cdf-action-card .wp-block-heading { margin: 0; font-family: var(--wp--preset--font-family--serif); font-size: 1.2rem; line-height: 1.2; }
.cdf-action-card .wp-block-heading a { display: block; color: var(--cdf-green-dark); text-decoration: none; }
.cdf-action-card .wp-block-heading a::after { content: " →"; color: var(--cdf-coral); }
.cdf-action-card p { margin: 10px 0 0; color: var(--cdf-muted); font-size: .8rem; line-height: 1.45; }

.cdf-site-footer { background: #092f2c; color: rgba(255,255,255,.72); }
.cdf-site-footer .wp-block-site-title a, .cdf-site-footer .wp-block-heading { color: #fff; }
.cdf-site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.cdf-site-footer a:hover { color: #fff; }
.cdf-site-footer ul.is-style-none { margin: 0; padding: 0; list-style: none; }
.cdf-site-footer ul.is-style-none li { margin-bottom: .45rem; }
.cdf-footer-main { padding-block: 58px; }
.cdf-footer-bottom { padding-block: 18px; border-top: 1px solid rgba(255,255,255,.10); font-size: .75rem; }

.cdf-page-hero { padding: 58px 0 42px; }
.cdf-page-hero .wp-block-query-title,
.cdf-page-hero .wp-block-post-title { margin: 0; color: var(--cdf-green-dark); font-family: var(--wp--preset--font-family--serif); font-size: clamp(2.8rem, 6vw, 4.5rem); letter-spacing: -.045em; line-height: 1.02; }
.cdf-breadcrumbs { color: var(--cdf-muted); font-size: .78rem; }
.cdf-breadcrumbs a { color: var(--cdf-green); }
.cdf-article-grid { align-items: start; gap: clamp(36px, 6vw, 72px); }
.cdf-article-meta { padding-bottom: 28px; border-bottom: 1px solid var(--cdf-line); color: var(--cdf-muted); font-size: .8rem; }
.cdf-article-meta .cdf-verified-date { margin: 0; }
.cdf-article-meta .wp-block-post-terms a { color: var(--cdf-green); font-weight: 800; text-decoration: none; }
.cdf-verified-badge { margin: 0; }
.cdf-verified-badge a { display: inline-flex; gap: 8px; align-items: center; padding: 7px 11px; border-radius: 999px; background: var(--cdf-green-soft); color: var(--cdf-green-dark); text-decoration: none; }
.cdf-verified-badge span { color: #46635f; font-size: .7rem; font-weight: 650; }
.cdf-article-content { font-size: 1.05rem; line-height: 1.75; }
.cdf-article-content h2 { margin-top: 2.4em; color: var(--cdf-green-dark); font-family: var(--wp--preset--font-family--serif); font-size: clamp(1.8rem, 4vw, 2.35rem); letter-spacing: -.025em; }
.cdf-article-content h3 { margin-top: 2em; color: var(--cdf-green-dark); }
.cdf-article-content a { color: var(--cdf-green); font-weight: 650; }
.cdf-article-content .wp-block-button .wp-block-button__link,
.cdf-article-content .wp-block-button .wp-element-button,
.cdf-article-content .wp-block-button .wp-block-button__link:visited {
  color: #fff;
  text-decoration: none;
}
.cdf-article-content .wp-block-button .wp-block-button__link:hover,
.cdf-article-content .wp-block-button .wp-block-button__link:focus-visible {
  background: var(--cdf-green-dark);
  color: #fff;
}
.cdf-article-content blockquote { padding: 18px 24px; border-left: 5px solid var(--cdf-coral); background: var(--cdf-cream); }
.cdf-article-content table { border-collapse: collapse; }
.cdf-article-content th { background: var(--cdf-green-dark); color: #fff; }
.cdf-article-content th, .cdf-article-content td { padding: 12px; border: 1px solid var(--cdf-line); }
.cdf-article-aside { position: sticky; top: 112px; }
.cdf-aside-card { padding: 22px; border: 1px solid var(--cdf-line); border-radius: var(--cdf-radius-md); background: #fff; }
.cdf-aside-card .wp-block-heading { margin-top: 0; }
.cdf-aside-card .wp-block-search__inside-wrapper { padding: 5px; border-color: var(--cdf-line); border-radius: 10px; }

.cdf-guide-summary { margin: 30px 0 48px; }
.cdf-guide-summary > .wp-block-column { padding: 16px; border-radius: var(--cdf-radius-sm); background: var(--cdf-green-soft); }
.cdf-guide-summary p { margin: 0; color: var(--cdf-muted); font-size: .68rem; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.cdf-guide-summary strong { display: block; margin-top: 5px; color: var(--cdf-ink); font-size: .9rem; }
.cdf-checklist { padding: 0; list-style: none; }
.cdf-checklist li { margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--cdf-line); border-radius: var(--cdf-radius-sm); background: #fff; }
.cdf-checklist li::before { content: "✓"; margin-right: 10px; color: var(--cdf-green); font-weight: 900; }
.cdf-source-box { padding: 22px; border-radius: var(--cdf-radius-md); background: var(--cdf-cream); }
.cdf-source-box p:first-child { color: var(--cdf-muted); font-size: .68rem; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.cdf-quick-facts { margin: 30px 0 0; padding: clamp(22px, 4vw, 32px); border: 1px solid rgba(11,93,87,.18); border-radius: var(--cdf-radius-md); background: #fff; box-shadow: 0 12px 34px rgba(20,73,67,.07); }
.cdf-quick-facts h2 { margin: 0 0 18px; color: var(--cdf-green-dark); font-family: var(--wp--preset--font-family--serif); font-size: 1.55rem; }
.cdf-quick-facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--cdf-line); border-radius: var(--cdf-radius-sm); background: var(--cdf-line); }
.cdf-quick-facts dl > div { padding: 15px; background: var(--cdf-paper); }
.cdf-quick-facts dt { margin: 0 0 6px; color: var(--cdf-green); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.cdf-quick-facts dd { margin: 0; color: var(--cdf-ink); font-size: .82rem; font-weight: 700; line-height: 1.4; }
.cdf-quick-facts__official { background: var(--cdf-green-soft) !important; }
.cdf-quick-facts__official a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border-radius: 9px; background: var(--cdf-green); color: #fff; font-weight: 850; text-decoration: none; }
.cdf-quick-facts__official a:hover { background: var(--cdf-green-dark); }
.cdf-official-links { display: grid; gap: 10px; padding: 0; list-style: none; }
.cdf-official-links li { margin: 0; }
.cdf-official-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 2px solid var(--cdf-green); border-radius: 12px; background: #fff; color: var(--cdf-green-dark) !important; text-decoration: none; }
.cdf-official-link::after { content: "Vai al sito ufficiale ↗"; margin-left: 18px; color: var(--cdf-green); font-size: .72rem; font-weight: 850; white-space: nowrap; }
.cdf-official-link:hover { background: var(--cdf-green); color: #fff !important; }
.cdf-official-link:hover::after { color: #fff; }
.cdf-verification-explainer { padding: 24px; border-left: 5px solid var(--cdf-green); border-radius: 0 var(--cdf-radius-md) var(--cdf-radius-md) 0; background: var(--cdf-green-soft); }
.cdf-verification-explainer p:first-child { margin-top: 0; color: var(--cdf-green-dark); font-size: 1.1rem; }
.cdf-methodology-grid { gap: 18px; margin-block: 28px; }
.cdf-methodology-card { height: 100%; padding: clamp(22px, 4vw, 30px); border: 1px solid var(--cdf-line); border-radius: var(--cdf-radius-md); background: #fff; box-shadow: 0 10px 28px rgba(20,73,67,.06); }
.cdf-methodology-card h3 { margin-top: 0; color: var(--cdf-green-dark); font-family: var(--wp--preset--font-family--serif); }
.cdf-methodology-card ul { margin-bottom: 0; }
.cdf-editorial-steps { padding-left: 1.4rem; }
.cdf-editorial-steps li { margin-bottom: 16px; padding-left: 8px; }
.cdf-methodology-note { margin-block: 28px; padding: 24px; border: 1px solid rgba(238,118,94,.35); border-radius: var(--cdf-radius-md); background: #fff3ed; }
.cdf-methodology-note p:first-child { margin-top: 0; color: #7a3326; }
.cdf-methodology-note p:last-child { margin-bottom: 0; }
.cdf-editorial-owner { margin-block: 28px; padding: 26px; border-radius: var(--cdf-radius-md); background: var(--cdf-green-dark); color: #fff; }
.cdf-editorial-owner p:first-child { margin-top: 0; color: var(--cdf-yellow); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.cdf-editorial-owner p:last-child { margin-bottom: 0; }
.cdf-editorial-owner a { color: #fff; }

.cdf-404 { min-height: 65vh; padding-block: 90px; text-align: center; }
.cdf-404-number { margin: 0; color: var(--cdf-green-soft); font-family: var(--wp--preset--font-family--serif); font-size: clamp(7rem, 22vw, 16rem); font-weight: 700; letter-spacing: -.08em; line-height: .7; }
.cdf-404 .wp-block-search { max-width: 620px; margin-inline: auto; }

@media (max-width: 1000px) {
  .cdf-today-card { transform: none; }
  .cdf-article-aside { position: static; }
  .cdf-quick-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
  .admin-bar .cdf-site-header { top: 46px; }
  .cdf-header-inner { min-height: 70px; }
  .cdf-hero-inner { min-height: auto; }
  .cdf-today-card::before { display: none; }
  .cdf-section-heading { align-items: start; }
  .cdf-footer-main { gap: 36px; }
  .cdf-guide-summary { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cdf-guide-summary { grid-template-columns: 1fr; }
  .cdf-quick-facts dl { grid-template-columns: 1fr; }
  .cdf-official-link { align-items: flex-start; flex-direction: column; gap: 7px; }
  .cdf-official-link::after { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Archivio completo e stato accessibile degli strumenti. */
[data-cdfcl] [hidden], [data-cdfa] [hidden] { display: none !important; }
.cdfcl-route-picker { padding:20px 24px; }
.cdfcl-route-picker label { display:grid; gap:8px; }
.cdfcl-route-picker select { width:100%; min-height:44px; font:inherit; padding:8px 12px; border:1px solid #819893; border-radius:8px; }
.cdfcl-route-picker select:focus-visible { outline:3px solid #b65a14; outline-offset:3px; }
.cdf-archive-filters { display:flex; flex-wrap:wrap; gap:16px; align-items:end; margin:24px 0; }
.cdf-archive-filters label { display:grid; gap:6px; flex:1 1 230px; }
.cdf-archive-filters input, .cdf-archive-filters select { box-sizing:border-box; width:100%; min-height:46px; padding:10px; border:1px solid #819893; border-radius:8px; font:inherit; }
.cdf-archive-filters button { background:#0b5d57; color:#fff; padding:12px 20px; border:0; border-radius:8px; font:inherit; cursor:pointer; }
.cdf-archive-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:20px; }
.cdf-archive-grid article { padding:22px; border:1px solid #d8e3de; border-radius:16px; background:#fff; }
.cdf-archive-grid h2 { font-size:1.25rem; margin-top:0; }
.cdf-pagination { display:flex; flex-wrap:wrap; gap:8px; margin:30px 0; }
.cdf-pagination .page-numbers { padding:9px 14px; border:1px solid #819893; border-radius:6px; }
.cdf-pagination .current { color:#fff; background:#0b5d57; }
.cdf-complete-archive :focus-visible { outline:3px solid #b65a14; outline-offset:3px; }


/* CDF 20261007: indirizzi lunghi leggibili nei box e nella checklist. */
.cdf-quick-facts dl > div { min-width: 0; }
.cdf-quick-facts dd, .cdf-quick-facts dd a { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.cdfcl-task, .cdfcl-task-copy { min-width: 0; }
.cdfcl-task-copy, .cdfcl-task-links a, .cdfcl-facts dd { overflow-wrap: anywhere; word-break: normal; }

/* CDF menu mobile: overlay a tutta altezza, 19 ottobre 2026. */
@media (max-width: 960px) {
  html.has-modal-open .cdf-site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* CDF 19 ottobre 2026: query senza spazi leggibili, senza troncare il titolo. */
body.search .cdf-page-hero .wp-block-query-title {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Solo barra amministratore del front-end: account nella prima riga.
   Nessun overflow nascosto: i sottomenu restano accessibili. */
@media (max-width: 600px) {
  body.admin-bar:not(.wp-admin) #wpadminbar #wp-toolbar {
    display: flex;
    flex-wrap: nowrap;
  }
  body.admin-bar:not(.wp-admin) #wpadminbar #wp-admin-bar-root-default {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    float: none;
  }
  body.admin-bar:not(.wp-admin) #wpadminbar #wp-admin-bar-root-default > li {
    flex: 1 1 0;
    min-width: 0;
  }
  body.admin-bar:not(.wp-admin) #wpadminbar #wp-admin-bar-root-default > li > .ab-item,
  body.admin-bar:not(.wp-admin) #wpadminbar #wp-admin-bar-root-default > li > .ab-item > .ab-icon {
    width: 100%;
    box-sizing: border-box;
  }
  body.admin-bar:not(.wp-admin) #wpadminbar #wp-admin-bar-top-secondary {
    flex: 0 0 52px;
    float: none;
  }
  body.admin-bar:not(.wp-admin) #wpadminbar #wp-admin-bar-wpseo-menu > .ab-item {
    position: relative;
    display: flex;
    align-items: center;
  }
  body.admin-bar:not(.wp-admin) #wpadminbar #yoast-ab-icon {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }
  body.admin-bar:not(.wp-admin) #wpadminbar #wp-admin-bar-wpseo-menu > .ab-item > .yoast-issue-counter {
    position: static;
    flex: 0 0 auto;
    margin: 0 2px 0 0;
  }
  body.admin-bar:not(.wp-admin) #wpadminbar #wp-admin-bar-wpseo-menu > .ab-item > .wpseo-score-icon {
    position: absolute;
    right: 0;
    bottom: 1px;
    margin: 0;
  }
}
