/*
Theme Name:   Melizie in Cucina (Blossom Recipe Child)
Theme URI:    https://www.melizieincucina.it/
Description:  Tema child di Blossom Recipe per il restyling di Melizie in Cucina.
Author:       Melizie in Cucina
Template:     blossom-recipe
Version:      0.9.18
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:  blossom-recipe-child
*/

/* ==========================================================================
   Restyling "Cucina siciliana"
   Crema calda, verde petrolio (come la cucina della foto nel logo),
   terracotta per gli accenti, un tocco di giallo limone.
   ========================================================================== */

/* ---------- 1. Palette ---------- */
:root:root {
	--mc-cream: #fbf6ee;
	--mc-paper: #ffffff;
	--mc-ink: #2e2a26;
	--mc-muted: #6f665c;
	--mc-teal: #1f4e4a;
	--mc-teal-dark: #163935;
	--mc-terracotta: #b9532f;
	--mc-terracotta-dark: #9a4224;
	--mc-lemon: #e9b949;
	--mc-line: #eadfd0;
	--mc-radius: 14px;
	--mc-shadow: 0 6px 24px rgba(46, 42, 38, 0.08);

	/* variabili del tema e di WP Delicious Recipes */
	--primary-color: #b9532f;
	--primary-color-rgb: 185, 83, 47;
	--secondary-color: #1f4e4a;
	--secondary-color-rgb: 31, 78, 74;

	/* colore dei link nei testi e dei numeri del procedimento */
	--mc-link: #2a6b64;
	--mc-link-line: rgba(42, 107, 100, 0.35);

	/* font dei titoli (file in /fonts, caricati da functions.php) */
	--mc-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--secondary-font: var(--mc-serif);
	--dr-secondary-font: var(--mc-serif);
}

/* ---------- 2. Base ---------- */
body {
	background-color: var(--mc-cream);
	color: var(--mc-ink);
}

/* ---------- 2b. Tipografia ----------
   Titoli in Playfair Display (peso 400, ospitato nel tema), testo in
   Nunito Sans. Niente grassetti sui titoli: restano eleganti e leggeri. */
/* "html body": il tema stampa body{font-size:18px} in linea dopo questo file */
html body {
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.dr-entry-title,
.dr-title,
.widget-title,
.page-title {
	font-family: var(--mc-serif) !important;
	font-weight: 400 !important;
	letter-spacing: 0.005em;
	line-height: 1.2;
}

.entry-content h2,
.dr-summary h2 {
	font-size: 1.7rem;
	margin-top: 1.6em;
	margin-bottom: 0.6em;
}

.entry-content h3,
.dr-summary h3 {
	font-size: 1.35rem;
	margin-top: 1.4em;
	margin-bottom: 0.5em;
}

.entry-content p,
.dr-summary p,
.entry-content li,
.dr-summary li {
	font-size: 1.0625rem;
	line-height: 1.8;
}

.entry-content strong,
.dr-summary strong {
	font-weight: 700;
	color: var(--mc-ink);
}

/* titoli nelle card della home e degli archivi */
.article-group .entry-title {
	font-size: 1.9rem;
}

/* titolo pagina ricetta */
.wpdelicious-recipe-banner-content .dr-entry-title {
	font-size: 2.5rem;
}

.dr-title-wrap .dr-title {
	font-size: 1.75rem;
}

/* testi di servizio: meta, breadcrumb, etichette */
.entry-meta,
.breadcrumb-wrapper,
.dr-meta-title,
.wpdelicious-recipe-banner-content .dr-entry-meta {
	font-size: 0.875rem;
	letter-spacing: 0.01em;
}

/* sidebar */
#secondary .widget-title {
	font-family: var(--mc-serif);
	font-size: 1.3rem;
}

#secondary .widget,
#secondary .widget p,
#secondary .widget a {
	font-size: 0.95rem;
	line-height: 1.65;
}

/* pulsanti: meno pesanti */
.btn-link,
input[type="submit"],
button[type="submit"],
.dr-btn,
.wp-block-button__link {
	font-family: 'Nunito Sans', sans-serif !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
}

/* footer */
.site-footer,
.site-footer .widget,
.site-footer p {
	font-size: 0.95rem;
	line-height: 1.7;
}

.site-footer .copyright {
	font-size: 0.85rem;
}

@media (max-width: 767px) {
	html body {
		font-size: 16px;
	}

	.entry-content p,
	.dr-summary p,
	.entry-content li,
	.dr-summary li {
		font-size: 1rem;
		line-height: 1.75;
	}

	.article-group .entry-title {
		font-size: 1.6rem;
	}

	.wpdelicious-recipe-banner-content .dr-entry-title {
		font-size: 1.95rem;
	}

	.entry-content h2,
	.dr-summary h2 {
		font-size: 1.45rem;
	}

	.entry-content h3,
	.dr-summary h3 {
		font-size: 1.2rem;
	}
}

a {
	color: var(--mc-terracotta);
}

a:hover,
a:focus {
	color: var(--mc-terracotta-dark);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-title a {
	color: var(--mc-teal);
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: rgba(185, 83, 47, 0.35);
	text-underline-offset: 3px;
}

.entry-content a:hover {
	text-decoration-color: currentColor;
}

/* ---------- 3. Header e menu ---------- */
/* contenitore del logo doppio (desktop/mobile), vedi functions.php */
.custom-logo-picture {
	display: block;
	line-height: 0;
}

.site-header {
	background: var(--mc-paper);
}

.site-header .main-header {
	border-bottom: 1px solid var(--mc-line);
}

.header-social-icons .social-icon-list a {
	color: var(--mc-teal);
	transition: color .2s ease;
}

.header-social-icons .social-icon-list a:hover {
	color: var(--mc-terracotta);
}

.site-header .nav-wrap {
	background: var(--mc-paper);
	border-bottom: 1px solid var(--mc-line);
}

.main-navigation ul li a {
	color: var(--mc-ink);
	transition: color .2s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li:hover > a,
.main-navigation ul .current-menu-item > a,
.main-navigation ul .current_page_item > a {
	color: var(--mc-terracotta);
}

.main-navigation ul ul {
	background: var(--mc-paper);
	border-top: 2px solid var(--mc-terracotta);
	border-radius: 0 0 10px 10px;
	box-shadow: var(--mc-shadow);
}

.main-navigation ul ul li a {
	font-size: 0.9rem;
	font-weight: 500;
}

/* Testata desktop: più compatta e leggera */
@media (min-width: 1025px) {
	.site-header .main-header {
		padding: 18px 0;
	}

	/* Logo a sinistra, social e ricerca a destra */
	.site-header .main-header .container {
		align-items: center;
		flex-wrap: nowrap;
		gap: 24px;
	}

	/* il logo può stringersi un po' per lasciare spazio a social e ricerca */
	#masthead .main-header .site-branding {
		order: 1;
		flex: 0 1 auto;
		min-width: 0;
		width: auto;
		justify-content: flex-start;
		margin-left: 0;
		margin-right: auto;
	}

	#masthead .main-header .site-branding > * {
		text-align: left;
	}

	#masthead .main-header .header-social-icons {
		order: 2;
		flex: 0 0 auto;
		width: auto;
	}

	#masthead .main-header .search-wrap {
		order: 3;
		flex: 0 0 auto;
		width: auto;
		padding-left: 20px;
		border-left: 1px solid var(--mc-line);
	}

	/* vale sia per il logo normale sia per il "Logo per desktop" (1600×440 → 800×220) */
	.site-header .custom-logo {
		max-height: 220px;
		width: auto;
		height: auto;
		max-width: 100%;
	}

	.header-social-icons .social-icon-list a {
		font-size: 0.85rem;
		color: var(--mc-muted);
	}

	.site-header .search-btn {
		color: var(--mc-muted);
	}

	.site-header .search-btn:hover {
		color: var(--mc-terracotta);
	}

	/* "Homepage" non serve: il logo porta già alla home */
	#primary-menu > li:first-child:has(> a[href$="melizieincucina.it/"]) {
		display: none;
	}

	#primary-menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		column-gap: 4px;
		padding: 6px 0;
	}

	#primary-menu > li > a {
		position: relative;
		padding: 8px 10px;
		font-size: 0.82rem;
		font-weight: 500;
		letter-spacing: 0.01em;
		text-transform: none;
	}

	/* sottolineatura sottile al passaggio del mouse */
	#primary-menu > li > a::before {
		content: "";
		position: absolute;
		left: 10px;
		right: 10px;
		bottom: 4px;
		height: 1px;
		background: var(--mc-terracotta);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .25s ease;
	}

	#primary-menu > li > a:hover::before,
	#primary-menu > li.current-menu-item > a::before {
		transform: scaleX(1);
	}

	#primary-menu > li.menu-item-has-children > a {
		padding-right: 24px;
	}

	#primary-menu > li.menu-item-has-children > a::before {
		right: 24px;
	}

	#primary-menu > li > .submenu-toggle {
		top: 50%;
		right: 4px;
		transform: translateY(-50%);
		color: var(--mc-muted);
	}
}

/* Menu mobile e tablet: pannello leggero con la pagina oscurata dietro */
@media (max-width: 1024px) {
	body.showing-main-menu-modal::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(22, 57, 53, 0.45);
		backdrop-filter: blur(2px);
		z-index: 99998;
	}

	.main-navigation .primary-menu-list {
		background: var(--mc-cream);
		box-shadow: 8px 0 40px rgba(22, 57, 53, 0.18);
		padding-top: 72px;
	}

	.main-navigation .close-main-nav-toggle {
		background: transparent;
		color: var(--mc-teal);
	}

	#primary-menu > li > a {
		font-size: 1rem;
		font-weight: 500;
		color: var(--mc-ink);
		line-height: 1.35;
		padding: 12px 28px;
		border-bottom: 1px solid rgba(234, 223, 208, 0.7);
		letter-spacing: 0.01em;
	}

	#primary-menu > li.current-menu-item > a {
		color: var(--mc-terracotta);
	}

	#primary-menu .sub-menu {
		background: transparent;
		border-top: 0;
		box-shadow: none;
		border-radius: 0;
		padding: 4px 0 8px;
	}

	#primary-menu .sub-menu li a {
		font-size: 0.92rem;
		font-weight: 400;
		color: var(--mc-muted);
		line-height: 1.35;
		padding: 7px 28px 7px 42px;
		border-bottom: 0;
	}

	#primary-menu .submenu-toggle {
		color: var(--mc-muted);
	}
}

/* ---------- 4. Carosello in home: nascosto ---------- */
.home .site-banner {
	display: none;
}

/* ---------- 5. Articoli in elenco (home, archivi) ---------- */
.article-group article.hentry {
	background: var(--mc-paper);
	border-radius: var(--mc-radius);
	box-shadow: var(--mc-shadow);
	overflow: hidden;
	padding-bottom: 28px;
}

.article-group article.hentry .post-thumbnail {
	margin-bottom: 0;
	overflow: hidden;
}

.article-group article.hentry .post-thumbnail img {
	transition: transform .5s ease;
}

.article-group article.hentry:hover .post-thumbnail img {
	transform: scale(1.03);
}

.article-group article.hentry .article-content-wrap {
	padding: 24px 28px 0;
}

.post-cat a,
.entry-header .post-cat a {
	display: inline-block;
	background: rgba(233, 185, 73, 0.22);
	color: var(--mc-teal-dark);
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.entry-meta,
.entry-meta a {
	color: var(--mc-muted);
}

.btn-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--mc-terracotta);
	color: #fff !important;
	border-radius: 999px;
	padding: 10px 22px;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s ease;
}

.btn-link:hover,
.btn-link:focus {
	background: var(--mc-terracotta-dark);
	color: #fff !important;
}

.btn-link::after {
	position: static;
	filter: brightness(0) invert(1);
}

/* ---------- 6. Sidebar ---------- */
#secondary .widget {
	background: var(--mc-paper);
	border-radius: var(--mc-radius);
	box-shadow: var(--mc-shadow);
	padding: 24px;
}

#secondary .widget-title {
	color: var(--mc-teal);
	margin-bottom: 18px;
}

#secondary .widget-title::before,
#secondary .widget-title::after {
	background: var(--mc-terracotta);
}

/* ---------- 7. Form e pulsanti ---------- */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
select {
	border: 1px solid var(--mc-line);
	border-radius: 10px;
	background: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
	border-color: var(--mc-teal);
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 78, 74, 0.15);
}

.search-form .search-submit,
input[type="submit"],
button[type="submit"],
.mc4wp-form input[type="submit"] {
	background-color: var(--mc-terracotta);
	color: #fff;
	border-radius: 10px;
	border: 0;
	transition: background-color .2s ease;
}

.search-form .search-submit:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	background-color: var(--mc-terracotta-dark);
}

/* ---------- 8. Pagina ricetta (WP Delicious Recipes) ---------- */
.dr-summary-holder {
	background: var(--mc-paper) !important;
	border: 1px solid var(--mc-line);
	border-top: 4px solid var(--mc-teal);
	border-radius: var(--mc-radius);
	box-shadow: var(--mc-shadow);
}

.author-block {
	background: var(--mc-paper) !important;
	border: 1px solid var(--mc-line);
	border-radius: var(--mc-radius);
}

.wpdelicious-recipe-banner-content .dr-entry-title,
.dr-title-wrap .dr-title {
	color: var(--mc-teal) !important;
}

.wpdelicious-category a {
	display: inline-block;
	background: rgba(233, 185, 73, 0.22);
	color: var(--mc-teal-dark);
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

/* ---------- 9. Footer ---------- */
.site-footer {
	background: var(--mc-teal-dark);
	color: rgba(255, 255, 255, 0.85);
}

.site-footer .top-footer {
	background: var(--mc-teal);
	border-top: 4px solid var(--mc-lemon);
}

.site-footer .widget-title,
.site-footer h2,
.site-footer h3 {
	color: #fff;
}

.site-footer .top-footer .widget-title span {
	background: var(--mc-teal);
	color: #fff;
}

.site-footer select {
	color: #fff;
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.3);
}

.site-footer select option {
	color: var(--mc-ink);
}

.site-footer a {
	color: var(--mc-lemon);
}

.site-footer a:hover {
	color: #fff;
}

.site-footer .bottom-footer {
	background: var(--mc-teal-dark);
	color: rgba(255, 255, 255, 0.75);
}

#back-to-top {
	background: var(--mc-terracotta);
	border-radius: 50%;
}

/* ---------- 10. Mobile ---------- */
@media (max-width: 767px) {
	.article-group article.hentry .article-content-wrap {
		padding: 20px 18px 0;
	}

	#secondary .widget {
		padding: 18px;
	}
}

/* ---------- 11. Link nei testi ----------
   Molti link nelle ricette sono in grassetto (<a><strong>): il grassetto
   deve prendere il colore del link, non quello del testo. */
.entry-content a:not(.wp-block-button__link):not(.btn-link),
.dr-summary a:not(.wp-block-button__link):not(.dr-btn) {
	color: var(--mc-link);
	text-decoration: underline;
	text-decoration-color: var(--mc-link-line);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .2s ease, text-decoration-color .2s ease;
}

.entry-content a:not(.wp-block-button__link):not(.btn-link):hover,
.dr-summary a:not(.wp-block-button__link):not(.dr-btn):hover {
	color: var(--mc-terracotta);
	text-decoration-color: currentColor;
}

.entry-content a strong,
.entry-content a b,
.dr-summary a strong,
.dr-summary a b {
	color: inherit;
}

#secondary .widget a {
	color: var(--mc-link);
}

#secondary .widget a:hover {
	color: var(--mc-terracotta);
}

/* numeri del procedimento: stesso colore dei link */
.dr-summary-holder .dr-ordered-list > li::before,
.dr-instructions .dr-ordered-list > li::before {
	background-color: var(--mc-link) !important;
	color: #fff !important;
}

/* ---------- 11b. Etichette delle portate (categorie) ----------
   Più piccole, separate da spazio invece che dalla virgola del tema. */
.article-group .article-wrap .post-cat,
.entry-header .post-cat {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 12px;
}

.article-group .article-wrap .post-cat a:not(:last-child)::after {
	content: none;
	display: none;
}

.post-cat a,
.entry-header .post-cat a,
.wpdelicious-category a {
	margin: 0;
	padding: 2px 9px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.6;
}

/* ---------- 12. "Leggi tutto": link testuale discreto ---------- */
.article-group .entry-footer {
	justify-content: center;
}

.article-group .btn-link {
	background: transparent;
	color: var(--mc-link) !important;
	padding: 0 0 3px;
	border-radius: 0;
	border-bottom: 1px solid var(--mc-link-line);
	font-size: 0.75rem;
	font-weight: 700 !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	gap: 8px;
	transition: color .2s ease, border-color .2s ease;
}

.article-group .btn-link:hover,
.article-group .btn-link:focus {
	background: transparent;
	color: var(--mc-terracotta) !important;
	border-bottom-color: currentColor;
}

.article-group .btn-link::after {
	filter: none;
	transform: scale(0.75);
	transform-origin: left center;
}

/* ---------- 14. Spazi annuncio (vedi functions.php) ----------
   Altezza riservata in anticipo: quando l'annuncio arriva la pagina non
   "salta" (CLS). Se Google non ha annunci da mostrare, lo spazio si chiude. */
.mc-ad {
	clear: both;
	margin: 32px auto;
	min-height: 280px;
	text-align: center;
}

.mc-ad__label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mc-muted);
}

.mc-ad--article {
	min-height: 250px;
}

.mc-ad--feed {
	grid-column: 1 / -1;
	min-height: 250px;
	margin: 0;
	padding: 18px;
	background: var(--mc-paper);
	border-radius: var(--mc-radius);
	box-shadow: var(--mc-shadow);
}

.mc-ad:has(ins[data-ad-status="unfilled"]) {
	display: none;
}

/* anteprima su staging */
.mc-ad--preview {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed #c9bba6;
	border-radius: var(--mc-radius);
	background: rgba(233, 185, 73, 0.08);
}

.mc-ad--preview .mc-ad__label {
	margin: 0;
}

/* sidebar: solo desktop, resta visibile scorrendo.
   Niente card intorno: all'annuncio serve tutta la larghezza (272 px). */
#secondary .mc-ad-widget {
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.mc-ad-widget .mc-ad {
	margin: 0;
	min-height: 280px;
}

@media (min-width: 1025px) {
	#secondary .mc-ad-widget {
		position: sticky;
		top: 24px;
	}
}

@media (max-width: 1024px) {
	.mc-ad-widget {
		display: none;
	}
}

/* mobile: nella scheda ricetta gli annunci arrivano ai bordi della scheda
   (servono almeno 300 px per il formato 300×250) */
@media (max-width: 767px) {
	.dr-summary-holder .mc-ad {
		margin-left: -24px;
		margin-right: -24px;
	}
}

/* ---------- 15. Ricetta su mobile: biografia e commenti ----------
   Le regole del tema/plugin sono pensate per lo schermo largo: su telefono
   lasciavano spazi vuoti e un modulo commenti a 3 colonne illeggibile. */
@media (max-width: 767px) {
	/* biografia autore: foto, nome sotto, testo, tutto centrato */
	/* #primary: le regole del tema sono più specifiche delle nostre */
	#primary .author-block {
		flex-direction: column;
		align-items: center;
		text-align: center;
		margin-top: 100px;
		padding: 0 20px 24px;
	}

	/* la foto sporge per metà sopra la scheda */
	#primary .author-block .author-img-wrap {
		position: relative;
		top: auto;
		width: 100%;
		height: auto;
		margin-top: -78px;
		text-align: center;
	}

	#primary .author-block .author-name {
		display: block;
		margin-top: 10px;
	}

	#primary .author-block .author-desc {
		width: 100%;
		margin-top: 14px;
		padding: 0;
	}

	#primary .author-block .author-desc p:last-child {
		margin-bottom: 0;
	}

	/* commenti: niente spazi vuoti, campi in colonna a tutta larghezza */
	#primary .comments-area {
		margin: 40px 0 0;
		padding: 20px;
	}

	#primary .comments-area .comment-respond {
		margin-top: 0;
	}

	#commentform {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}

	#commentform > p,
	#commentform > div {
		width: 100%;
		margin: 0;
	}

	#commentform textarea,
	#commentform input[type="text"],
	#commentform input[type="email"],
	#commentform input[type="url"] {
		width: 100%;
		box-sizing: border-box;
	}

	#commentform textarea {
		min-height: 140px;
	}

	/* ordine: stelline, nome, email, commento, consenso, pulsante */
	#commentform > * {
		order: 10;
	}

	#commentform .comment-form-rating {
		order: 1;
	}

	#commentform .comment-form-author {
		order: 2;
	}

	#commentform .comment-form-email {
		order: 3;
	}

	#commentform .comment-form-url {
		order: 4;
	}

	#commentform .comment-form-comment {
		order: 5;
	}

	#commentform .comment-form-cookies-consent {
		order: 6;
	}

	#commentform .form-submit {
		order: 20;
	}

	#commentform .comment-form-cookies-consent {
		display: flex;
		align-items: flex-start;
		gap: 8px;
		font-size: 0.875rem;
		line-height: 1.5;
	}

	#commentform .comment-form-cookies-consent input {
		margin-top: 3px;
		flex: 0 0 auto;
	}

	#commentform .comment-form-cookies-consent label {
		padding: 0;
	}

	#commentform .form-submit input[type="submit"] {
		width: 100%;
	}
}

/* ---------- 17. Card ricette di WP Delicious ----------
   Ricette correlate, indice ricette (/recipe/), categorie, ricerca avanzata:
   stessa card della home (bianca, angoli arrotondati, foto 4:5). */
.dr-archive-list-gridwrap {
	gap: 28px;
}

.dr-archive-single {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--mc-paper);
	border-radius: var(--mc-radius);
	box-shadow: var(--mc-shadow);
	padding-bottom: 16px;
}

.dr-archive-single > figure {
	margin: 0;
	overflow: hidden;
}

.dr-archive-single > figure > a {
	display: block;
}

.dr-archive-single > figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform .5s ease;
}

.dr-archive-single:hover > figure img {
	transform: scale(1.03);
}

.dr-archive-single .dr-archive-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px 16px 0;
	text-align: center;
}

/* WP Delicious 1.10.13+: portata sopra il titolo, come le etichette della home
   (font-size 0 sul contenitore nasconde le virgole tra un link e l'altro) */
.dr-archive-single .dr-archive-course {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0 0 10px;
	font-size: 0;
}

#primary .dr-archive-single .dr-archive-course a,
.dr-archive-single .dr-archive-course a {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	background: rgba(233, 185, 73, 0.22);
	color: var(--mc-teal-dark);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.6;
	text-transform: uppercase;
	text-decoration: none;
}

.dr-archive-single .dr-archive-list-title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	line-height: 1.3;
}

/* #primary: nella ricerca avanzata le card stanno dentro un testo di pagina
   e prenderebbero la sottolineatura dei link nei testi */
#primary .dr-archive-single .dr-archive-list-title a,
.dr-archive-single .dr-archive-list-title a {
	color: var(--mc-teal);
	text-decoration: none;
}

#primary .dr-archive-single .dr-archive-list-title a:hover,
.dr-archive-single .dr-archive-list-title a:hover {
	color: var(--mc-terracotta);
}

.dr-archive-single .dr-entry-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 14px;
	margin-top: auto;
	font-size: 0.8rem;
	color: var(--mc-muted);
}

/* ---------- 18. Ricerca avanzata (WP Delicious, /ricerca-ricetta/) ----------
   Il tema nasconde i <label> dei moduli di ricerca, ma qui il campo di testo
   sta dentro il label: senza questa regola il campo non si vede. */
.dr-advance-search .page-header {
	padding: 0;
	margin: 0 0 24px;
	background: transparent;
}

.dr-advance-search .page-header .container {
	padding: 0;
}

.dr-advance-search .page-header form.search-form {
	display: flex;
	align-items: stretch;
	height: auto;
	padding: 0;
	overflow: hidden;
	background: var(--mc-paper);
	border: 1px solid var(--mc-line);
	border-radius: 12px;
	box-shadow: var(--mc-shadow);
}

.dr-advance-search .page-header form.search-form label {
	display: block;
	flex: 1;
	width: auto;
	margin: 0;
}

.dr-advance-search .page-header form.search-form .search-field {
	width: 100%;
	height: 54px;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 1rem;
}

.dr-advance-search .page-header form.search-form .search-field:focus {
	box-shadow: none;
}

.dr-advance-search .page-header form.search-form:focus-within {
	border-color: var(--mc-teal);
	box-shadow: 0 0 0 3px rgba(31, 78, 74, 0.15);
}

.dr-advance-search .page-header form.search-form .search-submit {
	position: static;
	flex: 0 0 54px;
	width: 54px;
	height: 54px;
	border-radius: 0;
	background-color: var(--mc-terracotta);
	/* lente bianca (Font Awesome Free, CC BY 4.0) al posto di quella scura del plugin */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	font-size: 0;
	color: transparent;
	/* il plugin applica una maschera a forma di lente: va tolta */
	-webkit-mask: none;
	mask: none;
}

.dr-advance-search .page-header form.search-form .search-submit:hover {
	background-color: var(--mc-terracotta-dark);
}

.dr-advance-search .advance-search-options {
	padding: 0 0 8px;
	border: 0;
}

.dr-search-item-wrap {
	margin-top: 8px;
}

/* ---------- 16. Voto con le stelle senza commento (vedi inc/ratings.php) ---------- */
#comment-form-rating-container .star {
	cursor: pointer;
}

/* #commentform: il plugin mette line-height 0 sul blocco delle stelle */
#commentform .mc-rating-note,
.mc-rating-note {
	display: none;
	margin: -8px 0 12px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--mc-link);
}

#commentform .mc-rating-note.is-visible,
.mc-rating-note.is-visible {
	display: block;
}

.mc-rating-note.is-error {
	color: var(--mc-terracotta-dark);
}

/* ---------- 13. Home e archivi su tablet e desktop: due ricette per riga ---------- */
@media (min-width: 768px) {
	.article-group {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
	}

	.article-group .article-wrap {
		margin: 0;
	}

	.article-group article.hentry {
		height: 100%;
		margin: 0;
		display: flex;
		flex-direction: column;
		padding-bottom: 22px;
	}

	.article-group article.hentry .post-thumbnail,
	.article-group article.hentry .post-thumbnail a {
		display: block;
		width: 100%;
	}

	.article-group article.hentry .post-thumbnail img {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 5;
		object-fit: cover;
	}

	.article-group article.hentry .article-content-wrap {
		flex: 1;
		display: flex;
		flex-direction: column;
		padding: 18px 22px 0;
	}

	.article-group article.hentry .entry-footer {
		margin-top: auto;
		padding-top: 14px;
	}

	.article-group .entry-title {
		font-size: 1.4rem;
	}
}
