/*
Theme Name: Grotta delle Meraviglie
Theme URI: https://example.com/grotta-delle-meraviglie
Author: Vertigo Coop
Author URI: https://example.com
Description: Tema per il sito della Grotta delle Meraviglie, curata dal CAI Lagonegro "G. De Lorenzo".
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grotta-delle-meraviglie
Tags: custom-menu, featured-images, translation-ready, threaded-comments
*/

/* ==========================================================================
   1. Token
   ========================================================================== */

:root {
	--gdm-blue: #0B4F6C;
	--gdm-blue-light: #4FA8C9;
	--gdm-blue-pale: #DCEEF3;
	--gdm-blue-deep: #274753;
	--gdm-blue-faded: #8FBFD3;
	--gdm-cream: #F6EFE4;
	--gdm-orange: #E08A3C;
	--gdm-brown: #A0522D;
	--gdm-brown-soft: #5A4326;
	--gdm-brown-muted: #7A5A34;
	--gdm-text: #3A362F;
	--gdm-white: #FFFFFF;
	--gdm-border: #C9DCE2;

	--gdm-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--gdm-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--gdm-gutter: 32px;
	--gdm-radius: 2px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--gdm-cream);
	color: var(--gdm-text);
	font-family: var(--gdm-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--gdm-blue);
	transition: color .2s, border-color .2s;
}

a:hover,
a:focus {
	color: var(--gdm-orange);
}

img {
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4 {
	font-family: var(--gdm-serif);
	font-weight: 700;
	color: var(--gdm-blue);
	line-height: 1.25;
}

:focus-visible {
	outline: 2px solid var(--gdm-blue-light);
	outline-offset: 2px;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.gdm-container {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: var(--gdm-gutter);
	padding-right: var(--gdm-gutter);
}

.gdm-container--wide { max-width: 1100px; }
.gdm-container--medium { max-width: 900px; }
.gdm-container--intro { max-width: 840px; }
.gdm-container--prose { max-width: 800px; }
.gdm-container--article { max-width: 720px; }
.gdm-container--form { max-width: 640px; }

.gdm-section {
	padding-top: 64px;
	padding-bottom: 64px;
}

.gdm-section--lg {
	padding-top: 80px;
	padding-bottom: 80px;
}

.gdm-section--sm {
	padding-top: 56px;
	padding-bottom: 56px;
}

/* Fasce di colore a tutta larghezza. */
.gdm-band--pale { background: var(--gdm-blue-pale); }

.gdm-band--blue {
	background: var(--gdm-blue);
	color: var(--gdm-white);
}

.gdm-band--blue h1,
.gdm-band--blue h2,
.gdm-band--blue h3 {
	color: var(--gdm-white);
}

/* Pila di sezioni testuali (pagine interne). */
.gdm-stack {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.gdm-stack--tight { gap: 44px; }
.gdm-stack--loose { gap: 36px; }

/* Blocco che segue la mappa. */
.gdm-stack--after-map { margin-top: 48px; }

/* Blocco testo + immagine affiancati. */
.gdm-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 48px;
	align-items: center;
}

/* ==========================================================================
   4. Tipografia dei contenuti
   ========================================================================== */

.gdm-title-xl { font-size: clamp(32px, 6vw, 56px); }
.gdm-title-lg { font-size: 32px; }
.gdm-title-md { font-size: 28px; }
.gdm-title-sm { font-size: 24px; }
.gdm-title-xs { font-size: 22px; }

.gdm-title-brown { color: var(--gdm-brown); }

.gdm-lead {
	font-size: 17px;
	line-height: 1.8;
}

.gdm-prose p {
	font-size: 17px;
	line-height: 1.8;
	margin: 0 0 16px;
}

.gdm-prose p:last-child { margin-bottom: 0; }

.gdm-prose ul,
.gdm-prose ol {
	font-size: 17px;
	line-height: 1.9;
	margin: 0;
	padding-left: 22px;
}

.gdm-prose h2 {
	font-size: 28px;
	margin: 0 0 16px;
}

.gdm-prose h3 {
	font-size: 22px;
	margin: 0 0 12px;
}

/* Ultimo paragrafo prima di un pulsante. */
.gdm-prose p.gdm-p-before-cta { margin-bottom: 24px; }

.gdm-note {
	font-size: 13px;
	color: var(--gdm-brown-muted);
	font-style: italic;
}

.gdm-text-center { text-align: center; }

.gdm-meta-date {
	font-size: 13px;
	color: var(--gdm-brown);
	font-weight: 700;
}

/* Titoli e testi dei blocchi della home. */
.gdm-block__title { margin: 0 0 14px; }

.gdm-block__text {
	font-size: 16px;
	line-height: 1.7;
	margin: 0 0 20px;
}

.gdm-block__text--deep { color: var(--gdm-blue-deep); }

.gdm-section__title {
	margin: 0 0 32px;
	text-align: center;
}

.gdm-section__title--tight { margin: 0 0 24px; }

.gdm-map-link {
	margin-top: 28px;
	text-align: center;
}

.gdm-gallery-section { padding-bottom: 72px; }

/* Invito finale a righe. */
.gdm-cta__title {
	font-size: 30px;
	margin: 0 0 16px;
}

.gdm-cta__text {
	color: var(--gdm-brown-soft);
	max-width: 560px;
	margin: 0 auto 24px;
	line-height: 1.7;
}

/* ==========================================================================
   5. Pulsanti
   ========================================================================== */

.gdm-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: var(--gdm-radius);
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	font-family: var(--gdm-sans);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}

.gdm-btn--primary {
	background: var(--gdm-blue);
	color: var(--gdm-white);
}

.gdm-btn--primary:hover,
.gdm-btn--primary:focus {
	background: var(--gdm-blue-deep);
	color: var(--gdm-white);
}

.gdm-btn--orange {
	background: var(--gdm-orange);
	color: var(--gdm-white);
}

.gdm-btn--orange:hover,
.gdm-btn--orange:focus {
	background: var(--gdm-brown);
	color: var(--gdm-white);
}

.gdm-btn--outline {
	border-color: var(--gdm-blue);
	color: var(--gdm-blue);
	padding: 11px 26px;
}

.gdm-btn--outline:hover,
.gdm-btn--outline:focus {
	background: var(--gdm-blue);
	color: var(--gdm-white);
}

.gdm-btn--lg {
	padding: 14px 34px;
	font-size: 16px;
}

.gdm-link-arrow {
	color: var(--gdm-blue-light);
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
}

.gdm-link-back {
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

/* ==========================================================================
   6. Header e navigazione
   ========================================================================== */

.gdm-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--gdm-white);
	box-shadow: 0 1px 0 rgba(11, 79, 111, .1);
}

.gdm-nav__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px var(--gdm-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.gdm-nav__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex-shrink: 0;
}

.gdm-nav__brand:hover .gdm-nav__title { color: var(--gdm-orange); }

.gdm-nav__title {
	font-family: var(--gdm-serif);
	font-weight: 700;
	font-size: 19px;
	color: var(--gdm-blue);
	letter-spacing: .2px;
	transition: color .2s;
}

.gdm-nav__logo { display: block; }

.gdm-nav__logo img {
	max-height: 40px;
	width: auto;
}

.gdm-nav__menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: nowrap;
}

.gdm-nav__menu a {
	font-size: 15px;
	text-decoration: none;
	font-weight: 700;
	color: var(--gdm-blue);
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	display: block;
}

.gdm-nav__menu a:hover,
.gdm-nav__menu a:focus,
.gdm-nav__menu .current-menu-item > a,
.gdm-nav__menu .current_page_item > a,
.gdm-nav__menu .current-menu-parent > a,
.gdm-nav__menu .current_page_parent > a {
	color: var(--gdm-orange);
	border-color: var(--gdm-orange);
}

.gdm-nav__toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	flex-direction: column;
	gap: 5px;
}

.gdm-nav__toggle span {
	width: 26px;
	height: 2px;
	background: var(--gdm-blue);
	display: block;
}

.gdm-nav__mobile { display: none; }

.gdm-nav__mobile ul {
	list-style: none;
	margin: 0;
	padding: 8px var(--gdm-gutter) 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-top: 1px solid var(--gdm-blue-pale);
}

.gdm-nav__mobile a {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--gdm-blue);
	text-decoration: none;
	padding: 12px 0;
	border-bottom: 1px solid #F0F5F7;
}

.gdm-nav__mobile .current-menu-item > a,
.gdm-nav__mobile .current_page_item > a { color: var(--gdm-orange); }

@media (max-width: 1039px) {
	.gdm-nav__menu { display: none; }
	.gdm-nav__toggle { display: flex; }
	.gdm-nav__mobile.is-open { display: block; }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.gdm-hero {
	min-height: var(--gdm-hero-h, 380px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--gdm-gutter);
	background-color: var(--gdm-blue-deep);
	background-image: linear-gradient(180deg, rgba(11, 20, 25, .3), rgba(11, 20, 25, .5));
	background-size: cover;
	background-position: center;
}

.gdm-hero--home {
	background-image: linear-gradient(180deg, rgba(11, 20, 25, .35), rgba(11, 20, 25, .55));
}

.gdm-hero__title {
	font-size: 44px;
	color: var(--gdm-white);
	margin: 0;
	max-width: 900px;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.gdm-hero--home .gdm-hero__title {
	font-size: clamp(32px, 6vw, 56px);
	line-height: 1.15;
	margin: 0 0 20px;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

.gdm-hero__subtitle {
	font-size: 22px;
	color: #EAF3F6;
	max-width: 680px;
	margin: 0 0 12px;
	font-weight: 800;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

.gdm-hero__kicker {
	font-size: 16px;
	color: var(--gdm-blue-light);
	max-width: 560px;
	margin: 0;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .7), 0 0 4px rgba(0, 0, 0, .6);
}

/* ==========================================================================
   8. Segnaposto immagini
   ========================================================================== */

.gdm-stripe-orange {
	background: repeating-linear-gradient(135deg, #E9C79A, #E9C79A 14px, #DDB482 14px, #DDB482 28px);
}

.gdm-stripe-blue {
	background: repeating-linear-gradient(135deg, #BFE1EC, #BFE1EC 14px, #AAD6E4 14px, #AAD6E4 28px);
}

.gdm-placeholder {
	height: var(--gdm-ph-h, 320px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 12px;
}

.gdm-placeholder__label {
	font-family: monospace;
	font-size: 12px;
	color: var(--gdm-blue);
	background: rgba(255, 255, 255, .6);
	padding: 4px 10px;
}

.gdm-stripe-orange .gdm-placeholder__label {
	color: var(--gdm-brown-muted);
	background: rgba(255, 255, 255, .55);
}

.gdm-figure {
	height: var(--gdm-ph-h, 320px);
	width: 100%;
	object-fit: cover;
	display: block;
	border-radius: var(--gdm-radius);
}

/* ==========================================================================
   9. Mappa
   ========================================================================== */

.gdm-map {
	border-radius: var(--gdm-radius);
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(11, 79, 111, .15);
}

.gdm-band--blue .gdm-map {
	box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}

.gdm-map iframe {
	border: 0;
	display: block;
	width: 100%;
	height: 420px;
}

/* ==========================================================================
   10. Card e griglie
   ========================================================================== */

.gdm-news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px;
}

.gdm-card {
	text-decoration: none;
	color: inherit;
	display: block;
	background: var(--gdm-white);
	border-radius: var(--gdm-radius);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(11, 79, 111, .08);
	transition: box-shadow .2s, transform .2s;
}

.gdm-card:hover,
.gdm-card:focus {
	color: inherit;
	box-shadow: 0 6px 20px rgba(11, 79, 111, .16);
	transform: translateY(-2px);
}

.gdm-card__media {
	--gdm-ph-h: 180px;
}

.gdm-card__body { padding: 22px; }

.gdm-card__title {
	font-family: var(--gdm-serif);
	font-size: 19px;
	color: var(--gdm-blue);
	font-weight: 700;
	margin: 8px 0 10px;
	line-height: 1.3;
}

.gdm-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--gdm-brown-soft);
	margin: 0 0 14px;
}

.gdm-card__more {
	font-size: 14px;
	font-weight: 700;
	color: var(--gdm-blue);
}

/* Varianti compatte usate in home. */
.gdm-news-grid--home .gdm-card__media { --gdm-ph-h: 160px; }
.gdm-news-grid--home .gdm-card__body { padding: 20px; }
.gdm-news-grid--home .gdm-card__title { font-size: 18px; margin: 8px 0; }
.gdm-news-grid--home .gdm-card__excerpt { margin: 0; }

/* ==========================================================================
   11. Galleria e lightbox
   ========================================================================== */

.gdm-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.gdm-gallery__item {
	padding: 0;
	border: none;
	background: none;
	cursor: zoom-in;
	display: block;
}

.gdm-gallery__item img {
	height: 260px;
	width: 100%;
	object-fit: cover;
	border-radius: var(--gdm-radius);
	display: block;
}

.gdm-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(11, 20, 25, .9);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	cursor: zoom-out;
	border: none;
}

.gdm-lightbox[hidden] { display: none; }

.gdm-lightbox img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: var(--gdm-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.gdm-lightbox__close {
	position: absolute;
	top: 24px;
	right: 32px;
	background: none;
	border: none;
	color: var(--gdm-white);
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
}

/* ==========================================================================
   12. Riquadri informativi
   ========================================================================== */

.gdm-panel {
	background: var(--gdm-blue-pale);
	border-radius: var(--gdm-radius);
	padding: 32px;
}

.gdm-panel--sm { padding: 28px; }

.gdm-panel h2 { margin: 0 0 12px; }

.gdm-panel p {
	font-size: 16px;
	line-height: 1.8;
	margin: 0;
}

.gdm-databox {
	background: var(--gdm-white);
	border: 1px solid var(--gdm-blue-pale);
	border-radius: var(--gdm-radius);
	padding: 28px;
	font-size: 15px;
	line-height: 1.9;
}

.gdm-databox__row { margin-bottom: 10px; }

.gdm-databox strong { color: var(--gdm-brown); }

.gdm-databox code,
.gdm-databox .gdm-iban {
	font-family: monospace;
}

.gdm-factgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	font-size: 15px;
	line-height: 1.7;
}

.gdm-factgrid strong { color: var(--gdm-brown); }

/* Presentazione della sezione CAI. */
.gdm-org {
	display: flex;
	gap: 40px;
	align-items: center;
	flex-wrap: wrap;
}

.gdm-org__logo {
	width: 120px;
	height: 120px;
	flex-shrink: 0;
	border-radius: 4px;
	object-fit: contain;
	background: var(--gdm-white);
}

.gdm-org__body {
	flex: 1;
	min-width: 260px;
}

.gdm-org__body h2 {
	font-size: 26px;
	margin: 0 0 12px;
}

.gdm-org__body p {
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
	color: var(--gdm-blue-deep);
}

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.gdm-faq {
	display: flex;
	flex-direction: column;
}

.gdm-faq__item {
	border-bottom: 1px solid var(--gdm-blue-pale);
}

.gdm-faq__item summary {
	padding: 16px 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	font-weight: 700;
	color: var(--gdm-blue);
	font-size: 16px;
	list-style: none;
}

.gdm-faq__item summary::-webkit-details-marker { display: none; }

.gdm-faq__item summary::after {
	content: '+';
	color: var(--gdm-orange);
	font-size: 20px;
	font-weight: 700;
	flex-shrink: 0;
}

.gdm-faq__item[open] summary::after { content: '\2212'; }

.gdm-faq__answer {
	font-size: 15px;
	line-height: 1.7;
	margin: 0 4px 18px;
	color: var(--gdm-brown-soft);
}

/* ==========================================================================
   14. Form
   ========================================================================== */

.gdm-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.gdm-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.gdm-form label {
	font-size: 13px;
	font-weight: 700;
	color: var(--gdm-blue);
	margin-bottom: 6px;
	display: block;
}

.gdm-form input,
.gdm-form select,
.gdm-form textarea {
	font-family: var(--gdm-sans);
	font-size: 15px;
	padding: 11px 12px;
	border: 1px solid var(--gdm-border);
	border-radius: var(--gdm-radius);
	background: var(--gdm-white);
	color: var(--gdm-text);
	width: 100%;
}

.gdm-form input:focus,
.gdm-form select:focus,
.gdm-form textarea:focus {
	outline: 2px solid var(--gdm-blue-light);
	border-color: var(--gdm-blue-light);
}

.gdm-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.6;
}

.gdm-form__consent input {
	width: auto;
	margin-top: 3px;
}

.gdm-form__consent label {
	font-weight: 400;
	font-size: 14px;
	margin: 0;
	color: inherit;
}

.gdm-form__intro {
	text-align: center;
	margin: 0 0 32px;
}

.gdm-message--error ul {
	margin: 0;
	padding-left: 20px;
}

.gdm-form button[type="submit"] {
	margin-top: 8px;
	width: 100%;
	padding: 14px;
	font-size: 16px;
}

/* Campo anti-spam: nascosto ai visitatori, visibile ai bot. */
.gdm-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gdm-message {
	text-align: center;
	background: var(--gdm-blue-pale);
	border-radius: var(--gdm-radius);
	padding: 48px var(--gdm-gutter);
}

.gdm-message h2 {
	font-size: 26px;
	margin: 0 0 14px;
}

.gdm-message p {
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
}

.gdm-message--error {
	background: #F7E2D4;
	padding: 20px var(--gdm-gutter);
	text-align: left;
}

/* ==========================================================================
   15. Footer
   ========================================================================== */

.gdm-footer {
	background: var(--gdm-blue);
	color: var(--gdm-blue-pale);
}

.gdm-footer__top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 24px;
}

.gdm-footer__heading {
	font-family: var(--gdm-serif);
	font-weight: 700;
	font-size: 22px;
	color: var(--gdm-white);
	margin: 0 0 14px;
}

.gdm-footer__label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--gdm-blue-light);
	margin-bottom: 14px;
}

.gdm-footer p {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.6;
}

.gdm-footer strong { color: var(--gdm-blue-light); }

.gdm-footer a {
	color: var(--gdm-blue-pale);
}

.gdm-footer a:hover,
.gdm-footer a:focus {
	color: var(--gdm-white);
}

.gdm-footer__menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gdm-footer__menu a {
	text-decoration: none;
	font-size: 15px;
}

.gdm-footer__bottom {
	border-top: 1px solid rgba(79, 168, 201, .3);
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px var(--gdm-gutter);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--gdm-blue-faded);
}

.gdm-footer__bottom a {
	color: var(--gdm-blue-faded);
	text-decoration: none;
}

.gdm-footer__legal {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.gdm-footer__legal ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* ==========================================================================
   16. Paginazione e stati vuoti
   ========================================================================== */

.gdm-pagination {
	margin-top: 48px;
	text-align: center;
}

.gdm-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	text-decoration: none;
	font-weight: 700;
	color: var(--gdm-blue);
}

.gdm-pagination .page-numbers.current {
	background: var(--gdm-blue);
	color: var(--gdm-white);
	border-radius: var(--gdm-radius);
}

.no-results,
.error-404 {
	text-align: center;
}

.no-results .page-title,
.error-404 .page-title {
	font-size: 32px;
	margin: 0 0 16px;
}

.gdm-search-form {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 24px;
	flex-wrap: wrap;
}

.gdm-search-form input[type="search"] {
	font-family: var(--gdm-sans);
	font-size: 15px;
	padding: 11px 12px;
	border: 1px solid var(--gdm-border);
	border-radius: var(--gdm-radius);
	min-width: 240px;
}

/* ==========================================================================
   17. Contenuto dell'editor (pagine e articoli senza template dedicato)
   ========================================================================== */

.gdm-entry-content > * {
	margin-top: 0;
	margin-bottom: 20px;
}

.gdm-entry-content p,
.gdm-entry-content li {
	font-size: 17px;
	line-height: 1.85;
}

.gdm-entry-content h2 { font-size: 28px; margin-top: 40px; }
.gdm-entry-content h3 { font-size: 22px; margin-top: 32px; }

.gdm-entry-content img,
.gdm-entry-content figure {
	border-radius: var(--gdm-radius);
}

.gdm-entry-content blockquote {
	border-left: 3px solid var(--gdm-orange);
	margin-left: 0;
	padding-left: 20px;
	color: var(--gdm-brown-soft);
}

.gdm-comments {
	margin-top: 56px;
}

.gdm-article-title {
	font-size: 36px;
	margin: 0 0 28px;
	line-height: 1.25;
}

.gdm-article-date { margin: 24px 0 10px; }

.gdm-article-cta { margin-top: 32px; }

/* ==========================================================================
   18. Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.gdm-gallery { grid-template-columns: repeat(2, 1fr); }
	.gdm-hero { --gdm-hero-h: 340px; }
	.gdm-hero--home { --gdm-hero-h: 480px; }
	.gdm-hero__title { font-size: 34px; }
	.gdm-hero__subtitle { font-size: 19px; }
	.gdm-stack { gap: 44px; }
}

@media (max-width: 600px) {
	:root { --gdm-gutter: 20px; }

	.gdm-section { padding-top: 48px; padding-bottom: 48px; }
	.gdm-section--lg { padding-top: 56px; padding-bottom: 56px; }
	.gdm-gallery { grid-template-columns: 1fr; }
	.gdm-org { gap: 24px; }
	.gdm-title-lg { font-size: 26px; }
	.gdm-title-md { font-size: 24px; }
	.gdm-panel { padding: 24px; }
	.gdm-lightbox { padding: 16px; }
}

/* ==========================================================================
   19. Accessibilità
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	clip-path: none;
	color: #000;
	display: block;
	font-size: 1rem;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
