/*
Theme Name: Focuspesca
Theme URI: https://focuspesca.it
Author: Lorenzo
Description: Tema per il blog di pesca sportiva Focuspesca (spinning in mare e in acqua dolce). Home e pagine si costruiscono con l'editor a blocchi: stili di blocco, modelli (pattern) e shortcode per barra scorrevole, sezioni del blog, scheda dell'uscita e modulo contatti.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: focuspesca
*/

:root {
	--deep: #061f2b;
	--navy-deep: #082a39;
	--navy: #0d3b4f;
	--lagoon: #1f7a8c;
	--aqua: #52b6c4;
	--foam: #f1f6f6;
	--sand: #e9e2d0;
	--hook: #f2c230;
	--hook-dark: #d9a912;
	--ink: #14262e;
	--muted: #5a6b72;
	--line: #d8e2e1;
	--bg: #fdfefd;
	--radius: 10px;
	--hh: 76px;
	--shadow: 0 10px 30px rgba(8, 42, 57, .12);
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--ripple-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12C20 0 40 0 60 12S100 24 120 12' fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E");
	--ripple-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12C20 0 40 0 60 12S100 24 120 12' fill='none' stroke='%230d3b4f' stroke-opacity='.06' stroke-width='1.5'/%3E%3C/svg%3E");
	--wave-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23082a39' fill-opacity='.45' d='M0 60C240 0 480 120 720 60S1200 120 1440 60V120H0z'/%3E%3C/svg%3E");
	--wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23082a39' d='M0 60C240 0 480 120 720 60S1200 120 1440 60V120H0z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 12px); }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--hook); outline-offset: 2px; }
.icon { flex: none; vertical-align: middle; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); margin: 0 0 .55em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
.kicker { font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lagoon); margin-bottom: .6rem; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(740px, 100% - 2.5rem); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 200; background: var(--hook); color: var(--ink); padding: .6rem 1rem; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy-deep); transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.has-hero .site-header { margin-bottom: calc(var(--hh) * -1); background: transparent; }
.has-hero .site-header.is-scrolled { background: rgba(8, 42, 57, .94); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--hh); }
.site-title { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #fff; text-decoration: none; }
.site-title .icon { color: var(--hook); }
.site-brand .custom-logo { max-height: 46px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a { position: relative; display: block; padding: .55rem 1rem; color: #dbe9ec; text-decoration: none; font-weight: 600; border-radius: 999px; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: #fff; background: rgba(255, 255, 255, .12); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: #fff; border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.search-panel { background: var(--navy-deep); border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem 0 1.4rem; }
.search-panel[hidden] { display: none; }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 150; background: transparent; }
.read-progress__bar { display: block; height: 100%; background: var(--hook); transform: scaleX(0); transform-origin: left; }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--hook); color: var(--ink); border: 2px solid var(--hook); padding: .7rem 1.4rem; font: inherit; font-weight: 700; text-decoration: none; border-radius: 999px; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { background: #fff; border-color: #fff; color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1rem; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); border-radius: 999px; color: #fff; font-size: .95rem; margin-bottom: 1.4rem; }
.pill .icon { color: var(--hook); }
.chip { display: inline-block; align-self: flex-start; font-size: .82rem; font-weight: 700; color: var(--navy); background: var(--hook); padding: .15rem .75rem; border-radius: 999px; text-decoration: none; margin-bottom: .7rem; }
.chip:hover { background: var(--navy); color: #fff; }

/* ---------- Barra scorrevole ---------- */
.ticker { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); display: flex; align-items: stretch; background: var(--navy-deep); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); position: relative; z-index: 2; }
.ticker-label { display: flex; align-items: center; gap: .6rem; flex: none; padding: 0 1.4rem; background: var(--hook); color: var(--ink); font-weight: 800; white-space: nowrap; position: relative; z-index: 2; box-shadow: 8px 0 24px rgba(0, 0, 0, .35); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #d1343a; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(209, 52, 58, .7); } 100% { box-shadow: 0 0 0 12px rgba(209, 52, 58, 0); } }
.ticker-viewport { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; width: max-content; animation: scroll var(--dur, 40s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; flex: none; }
@keyframes scroll { to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: .85rem; padding: .8rem 2.2rem .8rem 0; margin-left: 2rem; color: #fff; text-decoration: none; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .15); }
.ticker-item:hover .ticker-title { color: var(--hook); }
.ticker-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex: none; background: var(--lagoon); }
.ticker-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ticker-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--lagoon), var(--navy)); }
.ticker-text { display: flex; flex-direction: column; line-height: 1.3; }
.ticker-cat { font-size: .78rem; color: var(--aqua); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ticker-title { font-weight: 600; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; }
.section-tint { background: var(--foam); }
.section-ripple { background: var(--bg) var(--ripple-light); }
.section-dark { background: var(--navy-deep) var(--ripple-dark); color: #dbe9ec; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; gap: .3rem; }
.section-head--center p { margin: 0; opacity: .8; }
.section-head--spaced { margin-top: 3.5rem; }
.empty { color: var(--muted); padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.soon { text-align: center; padding: 3.5rem 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); }
.soon .icon { color: var(--lagoon); margin-bottom: .6rem; }
.soon h2 { font-size: 1.7rem; }

/* Schede sezioni */
.tiles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tiles--hub { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tile, .contact-card { position: relative; display: flex; align-items: flex-end; min-height: 380px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow); }
.tiles--hub .tile { min-height: 460px; }
.tile-bg { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile-bg--empty { background: var(--ripple-dark), linear-gradient(150deg, var(--lagoon), var(--navy-deep)); }
.tile::after, .contact-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 31, 43, 0) 25%, rgba(6, 31, 43, .9) 100%); transition: opacity .3s; }
.tile:hover .tile-bg, .contact-card:hover .tile-bg { transform: scale(1.08); }
.tile:hover, .contact-card:hover { color: #fff; }
.tile-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.6rem; width: 100%; }
.tile-count { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--hook); text-transform: uppercase; letter-spacing: .05em; }
.tile-title { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.15; }
.tile-desc { font-size: .98rem; opacity: .9; }
.tile-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; margin-top: .5rem; color: #fff; }
.tile:hover .tile-cta .icon, .contact-card:hover .tile-cta .icon { transform: translateX(6px); }
.tile-cta .icon { transition: transform .25s; }

/* Card articoli */
.grid { display: grid; gap: 2.2rem 1.75rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--latest { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-placeholder { display: block; width: 100%; height: 100%; background: var(--ripple-dark), linear-gradient(135deg, var(--lagoon), var(--navy)); }
.card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.3rem; margin-bottom: .45em; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--lagoon); }
.card-excerpt { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.card-meta { margin: auto 0 0; display: flex; gap: 1rem; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.card-meta > * + * { padding-left: 1rem; border-left: 1px solid var(--line); }
.card--large { grid-column: span 3; flex-direction: row; }
.card--large .card-media { flex: 1.3; aspect-ratio: auto; min-height: 340px; }
.card--large .card-body { flex: 1; justify-content: center; padding: 2.2rem; }
.card--large .card-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* ---------- Pagine interne ---------- */
.page-hero { position: relative; isolation: isolate; padding-block: calc(3.5rem) 3.5rem; background: var(--navy-deep) var(--ripple-dark); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 85% 0%, rgba(31, 122, 140, .55), transparent 60%); }
.page-hero.has-image { padding-block: clamp(5rem, 11vw, 8rem) 4rem; background: var(--navy-deep) var(--hero-img) center / cover no-repeat; }
.page-hero.has-image::before { background: linear-gradient(180deg, rgba(6, 31, 43, .55), rgba(6, 31, 43, .88)); }
.page-title { color: #fff; margin-bottom: .3em; }
.page-lead { font-size: 1.2rem; color: #d3e4e8; max-width: 60ch; }
.page-lead p:last-child { margin: 0; }
.page-hero .search-form { margin-top: 1.4rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .9rem; margin-bottom: 1.2rem; color: #b9d0d6; }
.breadcrumbs a { color: #b9d0d6; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs .sep { opacity: .5; }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0; color: #cfe1e5; font-size: .95rem; }
.post-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.page-hero--post .page-title { font-size: clamp(2rem, 5vw, 3.2rem); }

/* Articolo */
.entry-wrap { padding-block: 3rem 1rem; }
.entry-content { font-size: 1.14rem; line-height: 1.8; }
.entry-content--wide { margin-bottom: 3rem; max-width: 800px; }
.entry-content h2 { margin-top: 2em; font-size: clamp(1.5rem, 3vw, 2rem); }
.entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption, .wp-caption-text { font-size: .9rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.entry-content blockquote { margin: 2rem 0; padding: .4rem 0 .4rem 1.5rem; border-left: 5px solid var(--hook); font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .4em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 1rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .65rem .85rem; text-align: left; }
.entry-content th { background: var(--foam); }
.alignwide { width: min(1000px, 100vw - 2.5rem); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.entry-tags { margin: 2rem 0 0; }
.entry-tags a { display: inline-block; margin: 0 .35rem .45rem 0; padding: .15rem .8rem; background: var(--foam); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; text-decoration: none; }
.entry-tags a::before { content: "#"; opacity: .5; }
.toc { background: var(--foam); border: 1px solid var(--line); border-left: 5px solid var(--lagoon); border-radius: var(--radius); padding: 1rem 1.4rem; margin: 0 0 2.2rem; font-size: 1rem; line-height: 1.5; }
.toc summary { font-weight: 800; cursor: pointer; color: var(--navy); }
.toc ol { margin: .8rem 0 0; padding-left: 1.3rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.report { background: var(--navy-deep) var(--ripple-dark); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-bottom: 2.4rem; box-shadow: var(--shadow); }
.report-title { display: flex; align-items: center; gap: .6rem; color: var(--hook); font-size: 1.25rem; margin-bottom: 1rem; }
.report-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 1.6rem; margin: 0; }
.report-list dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--aqua); font-weight: 700; }
.report-list dd { margin: .15rem 0 0; font-weight: 600; }
.share { display: flex; align-items: center; gap: .6rem; margin: 2.5rem 0; padding-block: 1.2rem; border-block: 1px solid var(--line); }
.share-label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; margin-right: auto; color: var(--navy); }
.share a, .share button { display: grid; place-items: center; position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--foam); border: 1px solid var(--line); color: var(--navy); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--navy); color: #fff; }
.copy-msg { position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .8rem; background: var(--navy); color: #fff; padding: .15rem .6rem; border-radius: 6px; }
.copy-msg:empty { display: none; }
.author-box { display: flex; gap: 1.2rem; align-items: center; background: var(--foam); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 2.5rem; }
.author-box .avatar { border-radius: 50%; flex: none; }
.author-box p { margin: 0; color: var(--muted); font-size: 1rem; }
.author-box .author-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2.5rem; }
.post-navigation a { display: block; height: 100%; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.post-navigation a:hover { border-color: var(--lagoon); box-shadow: var(--shadow); }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.nav-label { display: block; font-family: var(--font-body); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.related { margin-top: 3rem; }

/* Commenti */
.comments { margin-block: 2rem 4rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.comment-author .avatar { float: left; margin-right: .8rem; border-radius: 50%; }
.comment-metadata { font-size: .85rem; }

/* Contatti e moduli */
.contact-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.contact-card { min-height: 340px; }
.form-block { max-width: 780px; margin: 4rem auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.form-block h2 { text-align: center; }
.contact-form label { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--navy); }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.field-row { display: grid; gap: 0 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea { width: 100%; padding: .8rem 1rem; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c9c8; border-radius: 8px; }
input:focus, textarea:focus { border-color: var(--lagoon); outline: 3px solid rgba(31, 122, 140, .25); }
.contact-form .consent label { font-weight: 400; font-size: .95rem; color: var(--muted); }
.contact-form .consent input { margin-right: .5rem; }
.hp { position: absolute !important; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: 8px; font-weight: 600; }
.notice-ok { background: #e3f6ea; color: #17613a; border: 1px solid #a7dcbb; }
.notice-err { background: #fdeaea; color: #8a1f1f; border: 1px solid #f0b4b4; }
.search-form { display: flex; gap: .5rem; max-width: 560px; }
.search-form input[type="search"] { flex: 1; border-radius: 999px; }
.notfound { text-align: center; }
.notfound .icon { color: var(--lagoon); }
.notfound .search-form { margin: 1.5rem auto; }

.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; padding: 0; margin: 3.5rem 0 0; }
.pagination a, .pagination span { display: block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: #fff; }
.pagination a:hover { border-color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-deep) var(--ripple-dark); color: #b9d0d6; margin-top: 70px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 70px; background: var(--wave) repeat-x 0 0 / 1440px 100%; animation: drift 30s linear infinite; pointer-events: none; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--hook); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding-block: 3rem 2.5rem; }
.footer-grid > :first-child { grid-column: span 2; }
.footer-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: 1.6rem; color: #fff; font-weight: 700; margin-bottom: .6rem; }
.footer-logo .icon { color: var(--hook); }
.footer-heading { font-family: var(--font-body); font-size: .9rem; text-transform: uppercase; letter-spacing: .07em; color: var(--hook); margin-bottom: 1rem; }
.footer-list, .footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-list li, .footer-col ul li { margin-bottom: .5rem; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.social a:hover { background: var(--hook); border-color: var(--hook); color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--hook); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Comparsa allo scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.grid > :nth-child(3n+2), .tiles > :nth-child(3n+2), .pillars > :nth-child(4n+2) { transition-delay: .08s; }
.grid > :nth-child(3n+3), .tiles > :nth-child(3n+3), .pillars > :nth-child(4n+3) { transition-delay: .16s; }

/* ---------- Tablet e telefono ---------- */
@media (max-width: 960px) {
	.nav-toggle { display: flex; }
	.site-nav { position: fixed; inset: var(--hh) 0 0 0; margin: 0; padding: 1.5rem 1.25rem 3rem; background: var(--navy-deep) var(--ripple-dark); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s; }
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.site-nav ul { flex-direction: column; gap: .3rem; }
	.site-nav a { font-size: 1.4rem; font-family: var(--font-head); padding: .8rem 1rem; }
	.grid--latest { grid-template-columns: repeat(2, 1fr); }
	.card--large { grid-column: span 2; flex-direction: column; }
	.card--large .card-media { min-height: 0; aspect-ratio: 3 / 2; }
	.card--large .card-body { padding: 1.4rem; }
	.banner { background-attachment: scroll; }
	.footer-grid > :first-child { grid-column: auto; }
}
@media (max-width: 640px) {
	:root { --hh: 66px; }
	.grid--latest { grid-template-columns: 1fr; }
	.card--large { grid-column: auto; }
	.hero-inner { padding-bottom: 7.5rem; }
	.scroll-cue { display: none; }
	.hero-actions .btn { flex: 1 1 100%; justify-content: center; }
	.ticker-label span:last-child { display: none; }
	.ticker-label { padding: 0 1rem; }
	.ticker-title { max-width: 22ch; }
	.tiles--hub .tile { min-height: 380px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; text-align: left; }
	.author-box { flex-direction: column; text-align: center; }
	.search-form { flex-direction: column; }
	.footer-bottom { flex-direction: column; text-align: center; }
	.intro-media::before { inset: .8rem -.5rem -.8rem .5rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.ticker-viewport { overflow-x: auto; }
	.ticker-set[aria-hidden="true"] { display: none; }
}


/* ======================================================================
   CONTENUTO A BLOCCHI (Home e pagine modificabili dall'editor)
   ====================================================================== */
.home-content { width: 100%; }
.home-content > *:not(.alignfull):not(.alignwide):not(.ticker) { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.home-content > .alignwide { width: min(1400px, 100% - 2.5rem); margin-inline: auto; }
.home-content > .alignfull { width: 100%; max-width: none; margin-inline: 0; }

.page-body { padding-block: 3rem 1rem; }
.page-body .entry-content { width: 100%; max-width: none; }
.page-body .entry-content > *:not(.alignfull):not(.alignwide):not(.ticker) { width: min(740px, 100% - 2.5rem); margin-inline: auto; }
.page-body .entry-content > .alignwide { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.page-body .entry-content > .alignfull, .entry-wrap .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.home-content > :last-child, .page-body .entry-content > :last-child { margin-bottom: 0; }

.wp-block-group.alignfull { padding-inline: 1.25rem; }
.fp-section, .is-style-fp-dark, .is-style-fp-tint, .is-style-fp-ripple { padding-block: clamp(3.5rem, 8vw, 6rem); }
.wp-block-group:not(.alignfull) { padding-inline: 0; }
.fp-center { text-align: center; }
.fp-sign { font-family: var(--font-head); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--hook); }

/* Stili di gruppo */
.is-style-fp-dark { background: var(--navy-deep) var(--ripple-dark); color: #dbe9ec; }
.is-style-fp-dark :is(h1, h2, h3, h4) { color: #fff; }
.is-style-fp-dark a:not(.wp-block-button__link) { color: #fff; }
.wp-block-group:not(.alignfull).is-style-fp-dark { border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); margin-top: 3rem; }
.is-style-fp-tint { background: var(--foam); }
.is-style-fp-ripple { background: var(--bg) var(--ripple-light); }
.is-style-fp-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--hook); border-radius: var(--radius); padding: 1.6rem; color: var(--ink); }
.is-style-fp-card h3 { font-size: 1.2rem; }
.is-style-fp-card p:last-child { margin-bottom: 0; color: var(--muted); }
.wp-block-columns:has(.is-style-fp-card) > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-column > .is-style-fp-card { flex: 1; }
.is-style-fp-ripple .wp-block-columns, .is-style-fp-tint > .wp-block-columns:first-child { align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.is-style-fp-tint > .wp-block-columns + h2 { margin-top: 4rem; }
.is-style-fp-tint .wp-block-columns .wp-block-image img { border-radius: var(--radius); box-shadow: var(--shadow); }

.is-style-fp-kicker { font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lagoon); margin-bottom: .6rem; }
.wp-block-image.is-style-fp-frame { position: relative; margin-bottom: 1.5rem; }
.wp-block-image.is-style-fp-frame::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 3px solid var(--hook); border-radius: var(--radius); }
.wp-block-image.is-style-fp-frame img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Pulsanti dell'editor */
.wp-block-button__link { background: var(--hook); color: var(--ink); border: 2px solid var(--hook); border-radius: 999px; padding: .85rem 1.7rem; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--navy); border-color: var(--navy); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: none; }
:is(.is-style-fp-hero, .is-style-fp-banner, .is-style-fp-dark) .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .7); }
:is(.is-style-fp-hero, .is-style-fp-banner, .is-style-fp-dark) .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Copertina Focuspesca: foto, onde animate, testo grande */
.wp-block-cover.is-style-fp-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 900px); padding: calc(var(--hh) + 3rem) 1.25rem 9rem; color: #fff; justify-content: flex-start; background: linear-gradient(160deg, var(--lagoon), var(--navy-deep) 70%); }
.has-hero .wp-block-cover.is-style-fp-hero { min-height: 100svh; }
.is-style-fp-hero .wp-block-cover__image-background { animation: kenburns 28s ease-in-out infinite alternate; }
.is-style-fp-hero .wp-block-cover__inner-container { width: 100%; max-width: 1200px; margin-inline: auto; text-align: left; position: relative; z-index: 3; }
.is-style-fp-hero h1 { color: #fff; font-size: clamp(2.6rem, 8vw, 5.8rem); line-height: 1; letter-spacing: -.025em; max-width: 14ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.is-style-fp-hero p { color: #e4f0f2; font-size: clamp(1.1rem, 2.2vw, 1.5rem); max-width: 36ch; }
.is-style-fp-hero .is-style-fp-kicker { display: inline-flex; padding: .35rem 1rem; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); border-radius: 999px; color: #fff; font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none; max-width: none; margin-bottom: 1.4rem; }
.wp-block-cover.is-style-fp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 130px; z-index: 2; pointer-events: none; background-image: var(--wave), var(--wave-soft); background-repeat: repeat-x, repeat-x; background-size: 1440px 110px, 1800px 130px; background-position: 0 100%, 0 100%; animation: drift2 18s linear infinite; }
@keyframes drift { to { background-position-x: -1440px; } }
@keyframes drift2 { to { background-position: -1440px 100%, 1800px 100%; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-1%, -1%); } }

/* Banner Focuspesca */
.wp-block-cover.is-style-fp-banner { min-height: 420px; padding: clamp(4rem, 10vw, 8rem) 1.25rem; text-align: center; color: #fff; }
.is-style-fp-banner h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); }
.is-style-fp-banner p { max-width: 52ch; margin-inline: auto; font-size: 1.2rem; color: #e4f0f2; }
.is-style-fp-banner .wp-block-buttons { justify-content: center; }
.lead { font-size: 1.2rem; color: var(--muted); }

@media (max-width: 640px) {
	.wp-block-cover.is-style-fp-hero { padding-bottom: 7.5rem; }
	.is-style-fp-hero .wp-block-buttons .wp-block-button { width: 100%; }
	.is-style-fp-hero .wp-block-button__link { width: 100%; text-align: center; }
}

/* ======================================================================
   SCHEDE SEZIONE, ULTIMI ARTICOLI, ICONE (blocchi modificabili)
   ====================================================================== */
.wp-block-cover.is-style-fp-tile { min-height: 460px; align-items: flex-end; justify-content: flex-start; padding: 1.6rem; border-radius: var(--radius); overflow: hidden; color: #fff; box-shadow: var(--shadow); }
.is-style-fp-tile .wp-block-cover__background { background: linear-gradient(180deg, rgba(6, 31, 43, 0) 25%, rgba(6, 31, 43, .9) 100%) !important; opacity: 1 !important; }
.is-style-fp-tile .wp-block-cover__image-background { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.is-style-fp-tile:hover .wp-block-cover__image-background { transform: scale(1.08); }
.is-style-fp-tile .wp-block-cover__inner-container { width: 100%; text-align: left; }
.is-style-fp-tile .is-style-fp-kicker { color: var(--hook); margin: 0 0 .3rem; }
.is-style-fp-tile h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .4rem; }
.is-style-fp-tile h3 a { color: #fff; text-decoration: none; }
.is-style-fp-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.is-style-fp-tile p:not(.is-style-fp-kicker) { margin: 0; opacity: .92; }
.wp-block-columns:has(.is-style-fp-tile) { gap: 1.25rem; }
.is-style-fp-dark .wp-block-columns:has(.is-style-fp-tile) { margin-top: 2rem; }

/* Blocco "Ultimi articoli" di WordPress, reso come le schede del blog */
.wp-block-latest-posts.is-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; padding: 0; list-style: none; }
.wp-block-latest-posts.is-grid > li { width: auto !important; margin: 0 !important; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 1.2rem; transition: transform .3s, box-shadow .3s; }
.wp-block-latest-posts.is-grid > li:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.wp-block-latest-posts__featured-image { margin: 0 0 1rem; }
.wp-block-latest-posts__featured-image a { display: block; }
.wp-block-latest-posts__featured-image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.wp-block-latest-posts__post-title { display: block; padding: 0 1.3rem; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: var(--navy); text-decoration: none; }
.wp-block-latest-posts__post-title:hover { color: var(--lagoon); }
.wp-block-latest-posts__post-date { display: block; padding: .5rem 1.3rem 0; font-size: .875rem; color: var(--muted); }
.wp-block-latest-posts__post-excerpt { padding: .4rem 1.3rem 0; color: var(--muted); font-size: 1rem; }
.wp-block-latest-posts__post-excerpt a { display: none; }
.wp-block-latest-posts.is-grid > li:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; align-content: center; column-gap: 2rem; padding: 0 2rem 0 0; }
.wp-block-latest-posts.is-grid > li:first-child .wp-block-latest-posts__featured-image { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
.wp-block-latest-posts.is-grid > li:first-child .wp-block-latest-posts__featured-image img { aspect-ratio: auto; height: 100%; min-height: 340px; }
.wp-block-latest-posts.is-grid > li:first-child > :not(.wp-block-latest-posts__featured-image) { grid-column: 2; padding-inline: 0; }
.wp-block-latest-posts.is-grid > li:first-child .wp-block-latest-posts__post-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: auto; }
.wp-block-latest-posts.is-grid > li:first-child .wp-block-latest-posts__post-excerpt { margin-bottom: auto; }

/* Icone delle quattro schede "In questo sito troverai" */
.is-style-fp-card > h3::before { content: ""; display: block; width: 54px; height: 54px; margin-bottom: 1rem; border-radius: 14px; background-color: var(--navy); background-repeat: no-repeat; background-position: center; background-size: 28px; }
.wp-block-column:nth-child(1) > .is-style-fp-card > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c230' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15.5 8.5l-2 5-5 2 2-5z'/%3E%3C/svg%3E"); }
.wp-block-column:nth-child(2) > .is-style-fp-card > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c230' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2.5'/%3E%3Cpath d='M12 7.5V21M7 11h10M4 14c0 4 3.5 7 8 7s8-3 8-7'/%3E%3C/svg%3E"); }
.wp-block-column:nth-child(3) > .is-style-fp-card > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c230' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.wp-block-column:nth-child(4) > .is-style-fp-card > h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c230' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19C5 10 10 5 20 4c0 10-5 15-14 15z'/%3E%3Cpath d='M5 19c3-5 6-8 10-10'/%3E%3C/svg%3E"); }
.is-style-fp-card.fp-center { max-width: 640px; margin-inline: auto; padding: 3rem 1.5rem; }
.is-style-fp-card.fp-center .wp-block-buttons { justify-content: center; }

/* Nell'editor: niente effetti che disturbano la modifica */
.editor-styles-wrapper .ticker { width: auto; margin-left: 0; max-width: 100%; }
.editor-styles-wrapper .wp-block-cover.is-style-fp-hero { min-height: 560px; padding-top: 3rem; }

@media (max-width: 960px) {
	.wp-block-latest-posts.is-grid { grid-template-columns: repeat(2, 1fr); }
	.wp-block-latest-posts.is-grid > li:first-child { grid-column: 1 / -1; display: block; padding: 0 0 1.2rem; }
	.wp-block-latest-posts.is-grid > li:first-child .wp-block-latest-posts__featured-image img { min-height: 0; aspect-ratio: 3 / 2; height: auto; }
	.wp-block-latest-posts.is-grid > li:first-child > :not(.wp-block-latest-posts__featured-image) { padding-inline: 1.3rem; }
	.wp-block-latest-posts.is-grid > li:first-child .wp-block-latest-posts__post-title { margin-top: 0; }
}
@media (max-width: 640px) {
	.wp-block-latest-posts.is-grid { grid-template-columns: 1fr; }
	.wp-block-cover.is-style-fp-tile { min-height: 380px; }
}
