/* ==========================================================================
   RICHMOND'S — Natale: landing, categorie, tutti i prodotti
   (template-natale*.php). Usa i token di style.css (--rc-*).
   ========================================================================== */

/* Esce dal contenitore boxed: hero e sezioni colorate a tutta larghezza */
.page-template-template-natale .col-full,
.page-template-template-natale-categoria .col-full,
.page-template-template-natale-archivio .col-full {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.page-template-template-natale .site-content,
.page-template-template-natale-categoria .site-content,
.page-template-template-natale-archivio .site-content {
	max-width: none !important;
	padding: 0 !important;
}
.page-template-template-natale .site-main,
.page-template-template-natale-categoria .site-main,
.page-template-template-natale-archivio .site-main { padding-top: 0 !important; }

/* --- Hero --- */
.rc-xmas-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 78% 20%, rgba(255, 214, 140, .22), transparent 55%),
		radial-gradient(ellipse at 10% 110%, rgba(232, 52, 78, .25), transparent 50%),
		var(--rc-navy);
	color: var(--rc-white);
}
/* Immagine in evidenza della pagina, velata di blu per leggere il testo */
.rc-xmas-hero.has-image {
	background:
		linear-gradient(90deg, rgba(2, 70, 156, .96) 0%, rgba(2, 70, 156, .82) 45%, rgba(2, 70, 156, .35) 100%),
		var(--rc-xmas-hero-img) center / cover no-repeat,
		var(--rc-navy);
}

/* Neve: due strati di fiocchi che scendono a velocità diverse */
.rc-xmas-hero__snow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='white'%3E%3Ccircle cx='20' cy='30' r='1.5' opacity='.7'/%3E%3Ccircle cx='90' cy='12' r='1' opacity='.5'/%3E%3Ccircle cx='160' cy='60' r='1.8' opacity='.6'/%3E%3Ccircle cx='60' cy='110' r='1.2' opacity='.5'/%3E%3Ccircle cx='200' cy='140' r='1.4' opacity='.7'/%3E%3Ccircle cx='120' cy='170' r='1' opacity='.4'/%3E%3Ccircle cx='30' cy='190' r='1.6' opacity='.6'/%3E%3Ccircle cx='180' cy='205' r='1' opacity='.5'/%3E%3C/g%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='white'%3E%3Ccircle cx='50' cy='60' r='3' opacity='.55'/%3E%3Ccircle cx='250' cy='30' r='2.5' opacity='.45'/%3E%3Ccircle cx='320' cy='190' r='3.2' opacity='.5'/%3E%3Ccircle cx='140' cy='240' r='2.4' opacity='.4'/%3E%3Ccircle cx='30' cy='320' r='2.8' opacity='.5'/%3E%3Ccircle cx='220' cy='330' r='2' opacity='.4'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 220px 220px, 360px 360px;
	animation: rc-xmas-snow 24s linear infinite;
}
@keyframes rc-xmas-snow {
	from { background-position: 0 0, 0 0; }
	to   { background-position: 0 220px, 0 720px; }
}

/* Palline appese a destra */
.rc-xmas-hero__decor {
	/* viewBox con 40 unità di margine per lato: le palline oscillano senza essere tagliate */
	position: absolute;
	top: 0;
	right: clamp(0px, calc(6vw - 40px), 80px);
	width: clamp(318px, 36vw, 490px);
	height: auto;
	pointer-events: none;
	overflow: visible;
	filter: drop-shadow(0 12px 18px rgba(0, 20, 60, .35));
}
.rc-xmas-bauble {
	transform-box: view-box;
	animation: rc-xmas-swing 6s ease-in-out infinite alternate;
}
.rc-xmas-bauble--1 { transform-origin: 90px 0; animation-duration: 5.2s; }
.rc-xmas-bauble--2 { transform-origin: 212px 0; animation-duration: 6.4s; animation-delay: -2s; }
.rc-xmas-bauble--3 { transform-origin: 318px 0; animation-duration: 4.6s; animation-delay: -1s; }
@keyframes rc-xmas-swing {
	from { transform: rotate(-3deg); }
	to   { transform: rotate(3deg); }
}
.rc-xmas-flake { animation: rc-xmas-twinkle 3s ease-in-out infinite alternate; }
@keyframes rc-xmas-twinkle {
	from { opacity: .25; }
	to   { opacity: .7; }
}

@media (max-width: 1199px) {
	.rc-xmas-hero__decor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.rc-xmas-hero__snow,
	.rc-xmas-bauble,
	.rc-xmas-flake { animation: none; }
}
.rc-xmas-hero__content { position: relative; z-index: 1; max-width: 680px; padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px); }
.rc-xmas-hero__label {
	margin: 0 0 12px;
	color: rgba(255,255,255,.6);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.rc-xmas-hero__title {
	margin: 0 0 16px !important;
	padding: 0 !important;
	color: var(--rc-white) !important;
	font-family: var(--rc-font-serif) !important;
	font-size: clamp(34px, 6vw, 60px) !important;
	font-weight: 700 !important;
	letter-spacing: -.02em !important;
	line-height: 1.08 !important;
	text-transform: none !important;
}
.rc-xmas-hero__line { display: block; } /* titolo su due righe, senza virgola */
.rc-xmas-hero__text { margin: 0 0 28px; max-width: 580px; color: rgba(255,255,255,.75); font-size: clamp(16px, 2vw, 18px); line-height: 1.7; }

.rc-xmas-deadline {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 28px;
	padding: 10px 16px;
	background: var(--rc-red);
	color: var(--rc-white);
	font-size: 14px;
	font-weight: 600;
}
.rc-xmas-deadline--pickup { background: var(--rc-white); color: var(--rc-navy); }
.rc-xmas-countdown { font-weight: 400; font-variant-numeric: tabular-nums; opacity: .85; }

.rc-xmas-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.rc-xmas-btn.rc-btn { padding: 14px 32px; font-size: 16px; background: var(--rc-white); color: var(--rc-navy); }
.rc-xmas-btn.rc-btn:hover { background: var(--rc-cream); color: var(--rc-navy); }
.rc-xmas-hero__link { color: var(--rc-white); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.rc-xmas-hero__link:hover { color: var(--rc-red-light); }
.rc-xmas-hero .rc-hero__badges { margin-top: 36px; padding-top: 24px; }

/* --- Barra spedizione sotto l'hero --- */
/* --- Testo libero dall'editor --- */
.rc-xmas-editor { padding-top: 32px; max-width: var(--rc-max-w-text); }

/* --- Come funzionano i crackers --- */
.rc-xmas-steps {
	display: grid;
	gap: var(--rc-space-md);
	grid-template-columns: 1fr;
	counter-reset: rc-step;
}
@media (min-width: 768px) { .rc-xmas-steps { grid-template-columns: repeat(3, 1fr); } }
.rc-xmas-steps li {
	display: grid;
	gap: 8px;
	align-content: start;
	padding: var(--rc-space-md);
	background: var(--rc-white);
	border-top: 3px solid var(--rc-red);
	counter-increment: rc-step;
}
.rc-xmas-steps li::before {
	content: counter(rc-step, decimal-leading-zero);
	color: var(--rc-red);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
}
.rc-xmas-steps strong { color: var(--rc-dark); font-size: 17px; font-weight: 700; }
.rc-xmas-steps span { color: var(--rc-gray); font-size: 15px; line-height: 1.6; }

/* --- FAQ --- */
.rc-xmas-faq__inner { max-width: var(--rc-max-w-text); }
.rc-xmas-faq .rc-section__title { margin-bottom: var(--rc-space-md); }
.rc-xmas-faq details { border-bottom: 1px solid #e5e7eb; background: var(--rc-white); }
.rc-xmas-faq details + details { margin-top: 8px; }
.rc-xmas-faq summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}
.rc-xmas-faq summary::-webkit-details-marker { display: none; }
.rc-xmas-faq summary::after { content: '+'; color: var(--rc-navy); font-size: 20px; line-height: 1; }
.rc-xmas-faq details[open] summary::after { content: '−'; }
.rc-xmas-faq details p { margin: 0; padding: 0 20px 18px; color: var(--rc-gray); }

/* ==========================================================================
   Categorie della landing (Christmas Landing): loop + "Altre categorie"
   ========================================================================== */
.rc-xmas-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: clamp(16px, 2.5vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.rc-xmas-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: clamp(18px, 2.5vw, 24px);
	list-style: none;
	background: var(--rc-white);
	border: 1px solid #e5e7eb;
	transition: box-shadow .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.rc-xmas-cat::before {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 3px;
	background: linear-gradient(90deg, var(--rc-navy) 0 50%, var(--rc-red) 50% 100%);
}
@media (hover: hover) {
	.rc-xmas-cat:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(2, 70, 156, .12); }
}

.rc-xmas-cat__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.rc-xmas-cat__name { margin: 0 !important; font-size: clamp(18px, 2vw, 22px) !important; font-weight: 700 !important; line-height: 1.2 !important; }
.rc-xmas-cat__name a { color: var(--rc-dark); font-family: var(--rc-font-serif); font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.rc-xmas-cat__name a:hover { color: var(--rc-navy); }
.rc-xmas-cat__count { color: var(--rc-red); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.rc-xmas-cat__desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--rc-gray);
	font-size: 14px;
	line-height: 1.6;
}

/* Anteprima: 3 prodotti */
.rc-xmas-cat__products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rc-xmas-cat__products li { margin: 0; list-style: none; min-width: 0; }
.rc-xmas-cat__product { display: grid; gap: 6px; color: var(--rc-dark); text-decoration: none; }
.rc-xmas-cat__thumb {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--rc-cream);
}
.rc-xmas-cat__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.rc-xmas-cat__product:hover .rc-xmas-cat__thumb img { transform: scale(1.06); }
.rc-xmas-cat__pname {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	min-height: calc(1.35em * 2);
}
.rc-xmas-cat__price { font-size: 13px; font-weight: 700; color: var(--rc-dark); }
.rc-xmas-cat__price del { color: #9ca3af; font-weight: 500; margin-right: 4px; }
.rc-xmas-cat__price ins { text-decoration: none; color: var(--rc-red); }

/* "Scopri tutti" */
.rc-xmas-cat__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	min-height: 44px;
	padding: 0 18px;
	background: var(--rc-navy);
	color: var(--rc-white);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background var(--rc-transition);
}
.rc-xmas-cat__cta:hover,
.rc-xmas-cat__cta:focus-visible { background: var(--rc-navy-light); color: var(--rc-white); }
.rc-xmas-cat__cta svg { transition: transform var(--rc-transition); }
.rc-xmas-cat__cta:hover svg { transform: translateX(3px); }

/* Landing: dopo "Idee regalo" (anche lei bianca) serve una separazione */
#categorie.rc-section--white { border-top: 1px solid #e5e7eb; }

/* Compatta ("Altre categorie di Natale"): niente anteprima */
.rc-xmas-cats--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.rc-xmas-cats--compact .rc-xmas-cat { gap: 10px; }
.rc-xmas-cats--compact .rc-xmas-cat__desc { -webkit-line-clamp: 2; font-size: 13px; }
.rc-xmas-cats--compact .rc-xmas-cat__cta { min-height: 40px; background: transparent; color: var(--rc-navy); border: 1px solid currentColor; }
.rc-xmas-cats--compact .rc-xmas-cat__cta:hover { background: var(--rc-navy); color: var(--rc-white); }

@media (prefers-reduced-motion: reduce) {
	.rc-xmas-cat,
	.rc-xmas-cat__thumb img,
	.rc-xmas-cat__cta svg { transition: none; }
}

/* ==========================================================================
   Archivi: categoria e tutti i prodotti
   ========================================================================== */
.rc-xmas-hero--compact .rc-xmas-hero__content { max-width: 760px; padding: clamp(24px, 4vw, 40px) 0 clamp(32px, 5vw, 48px); }
.rc-xmas-hero--compact .rc-xmas-hero__title { font-size: clamp(30px, 5vw, 48px) !important; margin-bottom: 12px !important; }
.rc-xmas-hero .rc-archive-header__breadcrumb { margin-bottom: clamp(16px, 3vw, 28px); color: rgba(255, 255, 255, .6); }
.rc-xmas-hero .rc-archive-header__breadcrumb a { color: var(--rc-white); }
.rc-xmas-hero .rc-archive-header__breadcrumb a:hover { color: var(--rc-red-light); }
.rc-xmas-hero .rc-breadcrumb-sep { color: rgba(255, 255, 255, .4); }

.rc-xmas-archive__intro { color: rgba(255, 255, 255, .8); font-size: clamp(15px, 1.8vw, 17px); line-height: 1.7; }
.rc-xmas-archive__intro p { margin: 0 0 12px; }
.rc-xmas-archive__intro a { color: var(--rc-white); text-decoration: underline; text-underline-offset: 3px; }
.rc-xmas-archive__intro h2,
.rc-xmas-archive__intro h3 { color: var(--rc-white); font-size: 18px; margin: 16px 0 8px; }
.rc-xmas-archive__count {
	display: inline-block;
	margin: 8px 0 0;
	padding: 6px 12px;
	background: rgba(255, 255, 255, .12);
	color: var(--rc-white);
	font-size: 13px;
	font-weight: 600;
}
.rc-xmas-archive__empty { margin: 0; color: var(--rc-gray); font-size: 16px; }
.rc-xmas-archive__empty a { color: var(--rc-navy); font-weight: 600; margin-left: 6px; }
.rc-xmas-archive__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ==========================================================================
   "Torna alla pagina del Natale inglese"
   ========================================================================== */
.rc-xmas-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	color: var(--rc-white);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.rc-xmas-back:hover { color: var(--rc-red-light); }
.rc-xmas-back svg { transition: transform var(--rc-transition); }
.rc-xmas-back:hover svg { transform: translateX(-3px); }
.rc-xmas-back--dark { margin: 0; color: var(--rc-navy); }
.rc-xmas-back--dark:hover { color: var(--rc-red); }
.rc-xmas-back-section { padding: clamp(28px, 4vw, 40px) 0; text-align: center; }

.rc-xmas-archive__grid-title { margin: 0 0 clamp(16px, 3vw, 28px) !important; font-size: clamp(20px, 2.4vw, 26px) !important; font-weight: 700 !important; color: var(--rc-dark); }
