/*
Theme Name: Valentina Child
Description: Child theme per la landing e il blog di Valentina. Basato su Twenty Twenty-Five.
Author: Promedia Studio
Template: twentytwentyfive
Version: 0.7.0
Text Domain: valentina-child
*/

/* ---------------------------------------------------------------
   Variabili di brand (duplicano la palette in theme.json per
   poterle usare anche nei file CSS puri)
   --------------------------------------------------------------- */
:root {
	--vl-rosso: #B21837;
	--vl-corallo: #C74B4E;
	--vl-oro: #EFD0A5;
	--vl-prugna: #4C2137;
	--vl-notte: #350C1E;
	--vl-alba: #F6EABE;
	--vl-avorio: #FFF7F5;
	--vl-ametista: #8A5BA8;
	--vl-gutter: 16px;
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
html,
body {
	overflow-x: clip;
}

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

/* Focus visibile per la navigazione da tastiera */
:focus-visible {
	outline: 3px solid var(--vl-corallo);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Hero (header fotografico con velo viola sul lato del testo)
   --------------------------------------------------------------- */
.vl-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 0;
	overflow: hidden;
	isolation: isolate;
	background-color: var(--vl-notte);
	background-image:
		radial-gradient(ellipse 50% 60% at 72% 42%, rgba(199, 75, 78, 0.38), transparent 70%),
		linear-gradient(160deg, #350C1E 0%, #4C2137 55%, #6B3A6E 100%);
	color: var(--vl-alba);
	padding-block: 72px;
	padding-inline: max(clamp(24px, 4vw, 56px), calc((100% - 1140px) / 2));
}

.vl-hero h1,
.vl-hero h1 em {
	font-size: clamp(2rem, 3.4vw, 3rem);
	color: #EFD0A5;
	text-shadow: 0 2px 24px rgba(53, 12, 30, 0.6);
}

.vl-hero h1 em {
	color: #F2B8C6;
}

.vl-hero .vl-hero__text {
	max-width: 540px;
	margin: 0;
}

/* Logo testuale in corsivo (font candidato: Pinyon Script) */
.vl-logo {
	font-family: var(--wp--preset--font-family--logo);
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1.1;
	color: #FFF7F5;
	text-shadow: 0 0 8px rgba(255, 247, 245, 0.6), 0 0 24px rgba(199, 75, 78, 0.6), 0 0 48px rgba(199, 75, 78, 0.35);
	margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------
   Hero mistico: cornice, alone e stelle (solo decorazione)
   --------------------------------------------------------------- */
/* Doppia cornice sottile in oro */
.vl-hero::before {
	content: "";
	position: absolute;
	inset: 14px;
	border-radius: 8px;
	padding: 1px;
	background: linear-gradient(120deg, rgba(239, 208, 165, 0.25), #EFD0A5 25%, #F2B8C6 42%, rgba(199, 75, 78, 0.7) 55%, #EFD0A5 75%, rgba(239, 208, 165, 0.25));
	background-size: 250% 250%;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
	z-index: 1;
	animation: vl-shimmer 9s ease-in-out infinite alternate;
}

@keyframes vl-shimmer {
	from { background-position: 0% 50%; }
	to { background-position: 100% 50%; }
}

/* Alone rosso-viola e stelle */
.vl-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.5px 1.5px at 12% 22%, rgba(246, 234, 190, 0.9) 50%, transparent 55%),
		radial-gradient(1px 1px at 33% 78%, rgba(246, 234, 190, 0.8) 50%, transparent 55%),
		radial-gradient(1.5px 1.5px at 58% 16%, rgba(246, 234, 190, 0.85) 50%, transparent 55%),
		radial-gradient(1px 1px at 91% 84%, rgba(246, 234, 190, 0.8) 50%, transparent 55%),
		radial-gradient(ellipse 55% 75% at 88% 45%, rgba(199, 75, 78, 0.38), transparent 70%),
		radial-gradient(ellipse 45% 55% at 10% 70%, rgba(138, 91, 168, 0.32), transparent 70%);
	mix-blend-mode: screen;
	pointer-events: none;
	z-index: 0;
	animation: vl-aura 7s ease-in-out infinite alternate;
}

@keyframes vl-aura {
	from { opacity: 0.75; }
	to { opacity: 1; }
}

.vl-hero__text {
	position: relative;
	z-index: 2;
}

/* Piccolo rombo dorato sopra il logo */
.vl-hero__text > .vl-logo::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	margin: 0 0 16px;
	background: var(--vl-oro);
	transform: rotate(45deg);
	box-shadow: 0 0 14px rgba(239, 208, 165, 0.8);
}

@media (max-width: 782px) {
	.vl-hero::before {
		inset: 10px;
	}
}

/* ---------------------------------------------------------------
   Ritratto di Valentina: cornice rosa rotante e cuoricini
   --------------------------------------------------------------- */
.vl-portrait {
	position: relative;
	width: min(340px, 78vw);
	aspect-ratio: 1 / 1;
	margin: 24px auto;
	border-radius: 50%;
	background-image: url("assets/images/valentina.jpg");
	background-size: cover;
	background-position: center 30%;
	box-shadow: 0 0 0 6px rgba(242, 184, 198, 0.35), 0 18px 50px rgba(76, 33, 55, 0.35);
}

/* Anello sfumato che gira attorno alla foto */
.vl-portrait::before {
	content: "";
	position: absolute;
	inset: -16px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, #C74B4E, #F2B8C6, #EFD0A5, #8A5BA8, #F2B8C6, #C74B4E);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
	animation: vl-spin 14s linear infinite;
	z-index: -1;
}

@keyframes vl-spin {
	to { transform: rotate(360deg); }
}

/* Cuoricini che salgono dalla cornice */
.vl-heart {
	position: absolute;
	width: 14px;
	height: 14px;
	background: var(--c, #F2B8C6);
	transform: rotate(-45deg);
	bottom: 10%;
	left: var(--x, 50%);
	opacity: 0;
	animation: vl-float 6s ease-in infinite;
	animation-delay: var(--d, 0s);
	z-index: 1;
}

.vl-heart::before,
.vl-heart::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: inherit;
}

.vl-heart::before {
	left: -7px;
	top: 0;
}

.vl-heart::after {
	left: 0;
	top: -7px;
}

@keyframes vl-float {
	0% { opacity: 0; transform: translateY(0) rotate(-45deg) scale(0.6); }
	15% { opacity: 0.9; }
	100% { opacity: 0; transform: translateY(-190px) rotate(-45deg) scale(1.05); }
}

/* Scintille attorno al testo dell'hero */
.vl-hero__text::after {
	content: "";
	position: absolute;
	inset: -48px -40px;
	background-image:
		radial-gradient(2px 2px at 8% 18%, #FFF7F5 50%, transparent 60%),
		radial-gradient(1.5px 1.5px at 62% 4%, #EFD0A5 50%, transparent 60%),
		radial-gradient(2px 2px at 96% 52%, #FFF7F5 50%, transparent 60%),
		radial-gradient(1.5px 1.5px at 30% 96%, #F2B8C6 50%, transparent 60%),
		radial-gradient(1px 1px at 78% 88%, #EFD0A5 50%, transparent 60%);
	pointer-events: none;
	z-index: -1;
	animation: vl-twinkle 4.5s ease-in-out infinite alternate;
}

@keyframes vl-twinkle {
	from { opacity: 0.35; }
	to { opacity: 1; }
}

/* ---------------------------------------------------------------
   Hero a due colonne: testo a sinistra, cerchio a destra
   --------------------------------------------------------------- */
.vl-hero .vl-hero__row {
	flex: 1 1 100%;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Cerchio con il ritratto e le carte attorno */
.vl-orbit {
	position: relative;
	width: min(600px, 100%);
	aspect-ratio: 1 / 1;
	margin: 0 auto;
	perspective: 1100px;
}

.vl-orbit__photo {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 64%;
	aspect-ratio: 1 / 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background-image: url("assets/images/hero.jpg");
	background-size: 200% auto;
	background-position: 74% 18%;
	box-shadow: 0 0 0 6px rgba(242, 184, 198, 0.25), 0 0 60px rgba(199, 75, 78, 0.55), inset 0 0 40px rgba(53, 12, 30, 0.4);
	z-index: 1;
}

/* Anello sottile che gira attorno al cerchio */
.vl-orbit__photo::before {
	content: "";
	position: absolute;
	inset: -20px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, #C74B4E, #F2B8C6, #EFD0A5, #8A5BA8, #F2B8C6, #C74B4E);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
	animation: vl-spin 22s linear infinite;
	z-index: -1;
}

/* Carte dei tarocchi in SVG con effetto 3D */
.vl-svg-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.vl-card3d {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 20%;
	aspect-ratio: 2 / 3;
	transform: rotateZ(var(--r)) rotateY(var(--ry)) rotateX(6deg);
	filter: drop-shadow(0 18px 22px rgba(20, 4, 12, 0.55)) drop-shadow(0 0 14px rgba(242, 184, 198, 0.3));
	animation: vl-card-float 7s ease-in-out infinite;
	animation-delay: var(--d);
	z-index: 2;
}

.vl-card3d svg {
	display: block;
	width: 100%;
	height: 100%;
}

@keyframes vl-card-float {
	0%, 100% { transform: rotateZ(var(--r)) rotateY(var(--ry)) rotateX(6deg) translateY(0); }
	50% { transform: rotateZ(var(--r)) rotateY(calc(var(--ry) * -0.4)) rotateX(-4deg) translateY(-12px); }
}

/* Su desktop la colonna del cerchio è più larga */
@media (min-width: 783px) {
	.vl-hero .vl-hero__row {
		flex-wrap: nowrap;
	}

	.vl-hero .vl-hero__row > .wp-block-column:first-child {
		flex: 0 1 44%;
	}

	.vl-hero .vl-hero__row > .wp-block-column:last-child {
		flex: 1 1 56%;
	}
}

@media (max-width: 782px) {
	.vl-hero {
		min-height: 0;
		padding-block: 32px 48px;
		padding-inline: var(--vl-gutter);
	}

	.vl-orbit {
		width: min(380px, 94%);
		margin-top: 24px;
	}
}

/* ---------------------------------------------------------------
   Sezioni
   --------------------------------------------------------------- */
.vl-section {
	padding: 72px var(--vl-gutter);
}

.vl-notte {
	background: var(--wp--preset--gradient--notte);
	color: var(--vl-alba);
}

.vl-notte h2,
.vl-notte h3 {
	color: var(--vl-oro);
}

.vl-alba {
	background: var(--wp--preset--gradient--alba);
}

/* Titolo di sezione con piccolo filetto oro */
.vl-section > h2 {
	text-align: center;
	margin-bottom: 0.25em;
}

.vl-kicker {
	text-align: center;
	color: var(--vl-corallo);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.8rem;
	margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------
   Card dei percorsi
   --------------------------------------------------------------- */
.vl-card {
	background: #FFFFFF;
	border: 1px solid rgba(239, 208, 165, 0.7);
	border-radius: 18px;
	padding: 28px 24px;
	box-shadow: 0 10px 30px rgba(76, 33, 55, 0.10);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}

.vl-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(76, 33, 55, 0.16);
}

.vl-card h3 {
	color: var(--vl-prugna);
}

/* Placeholder per le immagini ancora da inserire */
.vl-placeholder {
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border: 2px dashed var(--vl-oro);
	border-radius: 18px;
	background: rgba(246, 234, 190, 0.5);
	color: var(--vl-prugna);
	padding: 24px;
	font-size: 0.9rem;
}

/* Numeri dei passi "Come funziona" */
.vl-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid var(--vl-oro);
	color: var(--vl-oro);
	font-family: var(--wp--preset--font-family--titoli);
	font-size: 1.4rem;
	margin-bottom: 0.5rem;
}

/* Lista centrata senza puntini (sezione "Ti riconosci?") */
.vl-section ul.has-text-align-center {
	list-style: none;
	padding: 0;
}

.vl-section ul.has-text-align-center li {
	margin-bottom: 0.6rem;
}

/* ---------------------------------------------------------------
   Pulsanti e FAQ
   --------------------------------------------------------------- */
.vl-button-fiamma .wp-block-button__link {
	background: var(--wp--preset--gradient--fiamma);
	color: #FFFFFF;
	padding: 14px 32px;
	box-shadow: 0 8px 24px rgba(178, 24, 55, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vl-button-fiamma .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(178, 24, 55, 0.45);
}

.wp-block-details {
	border-bottom: 1px solid rgba(76, 33, 55, 0.15);
	padding: 12px 0;
}

.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--titoli);
	font-size: 1.2rem;
	color: var(--vl-prugna);
}

.vl-disclaimer {
	font-size: 0.8rem;
	opacity: 0.8;
	text-align: center;
	max-width: 720px;
	margin: 0 auto;
	padding: 0 var(--vl-gutter) 24px;
}

/* ---------------------------------------------------------------
   Mobile (gutter 16px, nessuno scroll orizzontale)
   --------------------------------------------------------------- */
@media (max-width: 782px) {
	.vl-hero {
		min-height: 0;
		padding-block: 32px 48px;
		padding-inline: var(--vl-gutter);
	}

	.vl-section {
		padding: 56px var(--vl-gutter);
	}

	.vl-placeholder {
		min-height: 220px;
	}
}

/* ---------------------------------------------------------------
   Movimento ridotto: disattiva animazioni e trasformazioni
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.vl-orbit__photo::before,
	.vl-card3d {
		animation: none;
	}

	.vl-portrait::before,
	.vl-heart {
		animation: none;
	}

	.vl-heart {
		opacity: 0.7;
	}

	.vl-hero::after {
		animation: none;
	}

	.vl-card,
	.vl-card:hover,
	.vl-button-fiamma .wp-block-button__link,
	.vl-button-fiamma .wp-block-button__link:hover {
		transition: none;
		transform: none;
	}
}

/* ---------------------------------------------------------------
   Pagina a tutta larghezza: sfondo stellato continuo, testi chiari
   --------------------------------------------------------------- */
body {
	background: linear-gradient(180deg, #230A18 0%, #350C1E 30%, #4C2137 65%, #2A0F22 100%);
}

/* Stelle fisse che restano dietro a tutta la pagina */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		radial-gradient(1px 1px at 8% 14%, rgba(246, 234, 190, 0.85) 50%, transparent 55%),
		radial-gradient(1px 1px at 19% 63%, rgba(246, 234, 190, 0.6) 50%, transparent 55%),
		radial-gradient(1.5px 1.5px at 34% 27%, rgba(246, 234, 190, 0.9) 50%, transparent 55%),
		radial-gradient(1px 1px at 47% 82%, rgba(242, 184, 198, 0.7) 50%, transparent 55%),
		radial-gradient(1px 1px at 58% 9%, rgba(246, 234, 190, 0.7) 50%, transparent 55%),
		radial-gradient(1.5px 1.5px at 71% 45%, rgba(246, 234, 190, 0.8) 50%, transparent 55%),
		radial-gradient(1px 1px at 84% 72%, rgba(239, 208, 165, 0.8) 50%, transparent 55%),
		radial-gradient(1px 1px at 93% 22%, rgba(246, 234, 190, 0.7) 50%, transparent 55%),
		radial-gradient(1px 1px at 4% 91%, rgba(242, 184, 198, 0.6) 50%, transparent 55%),
		radial-gradient(ellipse 60% 40% at 12% 0%, rgba(138, 91, 168, 0.35), transparent 70%),
		radial-gradient(ellipse 50% 40% at 92% 100%, rgba(199, 75, 78, 0.28), transparent 70%);
	animation: vl-twinkle 6s ease-in-out infinite alternate;
}

.vl-landing {
	max-width: none;
	margin: 0;
	border-radius: 0;
	overflow: visible;
	background: transparent;
	box-shadow: none;
}

.vl-landing .alignwide {
	max-width: 1140px;
}

.vl-landing .vl-section,
.vl-landing .vl-notte {
	background: transparent;
}

/* Una banda leggera per le sezioni alternate */
.vl-landing .vl-alba {
	background: rgba(246, 234, 190, 0.04);
}

.vl-landing,
.vl-landing p,
.vl-landing li,
.vl-landing h1,
.vl-landing h2 {
	color: #F6EABE;
}

.vl-landing h3,
.vl-landing .vl-card h3,
.vl-landing .vl-step-number {
	color: #EFD0A5;
}

.vl-landing .vl-kicker {
	color: #F2B8C6;
}

.vl-landing .vl-card {
	background: rgba(246, 234, 190, 0.05);
	border-color: rgba(239, 208, 165, 0.22);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(6px);
}

.vl-landing .vl-card:hover {
	background: rgba(246, 234, 190, 0.08);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.vl-landing a:not(.wp-block-button__link) {
	color: #F2B8C6;
}

.vl-landing .is-style-outline .wp-block-button__link {
	color: #F2B8C6;
	border-color: #F2B8C6;
}

.vl-landing .wp-block-details {
	border-bottom-color: rgba(239, 208, 165, 0.2);
}

.vl-landing .wp-block-details summary {
	color: #EFD0A5;
}

.vl-landing .vl-disclaimer {
	color: #F6EABE;
	opacity: 0.7;
}

/* Hero: nessun bordo a parte, sfondo che continua con la pagina */
.vl-hero {
	background-color: transparent;
	background-image: radial-gradient(ellipse 50% 60% at 72% 42%, rgba(199, 75, 78, 0.35), transparent 70%);
}

.vl-hero::before {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	body::before {
		animation: none;
	}
}

/* ---------------------------------------------------------------
   Header del sito: trasparente e integrato nello sfondo
   --------------------------------------------------------------- */
.vl-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	margin: 0;
	padding-block: 22px;
	padding-inline: max(clamp(24px, 4vw, 56px), calc((100% - 1140px) / 2));
	background: transparent;
}

.vl-brand-wrap {
	gap: 12px;
	margin: 0;
}

.vl-brand-mark {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	filter: drop-shadow(0 0 8px rgba(239, 208, 165, 0.35));
}

.vl-brand-text {
	gap: 0;
	margin: 0;
}

.vl-brand {
	font-family: var(--wp--preset--font-family--logo);
	font-size: clamp(1.6rem, 2.2vw, 2rem);
	line-height: 1.05;
	color: #FFF7F5;
	text-shadow: 0 0 8px rgba(255, 247, 245, 0.5), 0 0 18px rgba(199, 75, 78, 0.5);
	white-space: nowrap;
	margin: 0;
}

.vl-brand a {
	color: #FFF7F5;
	text-decoration: none;
}

.vl-tagline {
	margin: 2px 0 0;
	font-size: 0.72rem;
	letter-spacing: 0.03em;
	color: #EFD0A5;
}

.vl-site-header .wp-block-navigation {
	font-size: 0.95rem;
	gap: 0 1.8em;
}

.vl-site-header .wp-block-navigation-item__content {
	color: #F6EABE;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.vl-site-header .wp-block-navigation-item__content:hover,
.vl-site-header .wp-block-navigation-item__content:focus-visible {
	color: #EFD0A5;
	text-decoration: underline;
	text-underline-offset: 6px;
}

.vl-header-cta {
	margin: 0;
}

.vl-header-cta .wp-block-button__link {
	padding: 0.55em 1.3em;
	font-size: 0.9rem;
}

/* Menu a tendina sul telefono */
.vl-site-header .wp-block-navigation__responsive-container-open {
	color: #F6EABE;
}

.vl-site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: #350C1E;
	color: #F6EABE;
}

@media (max-width: 782px) {
	.vl-site-header {
		padding-block: 14px;
		padding-inline: var(--vl-gutter);
	}

	.vl-brand-mark {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
	}

	.vl-tagline {
		display: none;
	}
}

/* Header attivo durante lo scroll */
.vl-site-header.is-scrolled {
	padding-block: 12px;
	background: rgba(35, 10, 24, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 10px 30px rgba(20, 4, 12, 0.45);
	border-bottom-color: rgba(239, 208, 165, 0.18);
}

.admin-bar .vl-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .vl-site-header {
		top: 46px;
	}
}

/* Sotto i 600 px la barra di WordPress scorre via con la pagina */
@media (max-width: 600px) {
	.admin-bar .vl-site-header {
		top: 0;
	}
}
