/*
Theme Name: Gocce di Sant'Anna
Theme URI: https://www.goccedisantanna.com
Author: Sud Grafica
Author URI: https://www.sudgrafica.it
Description: Tema a blocchi su misura per Gocce di Sant'Anna – Azienda Agricola Agresta Giovanni. Tutte le sezioni sono modificabili da Aspetto → Editor.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.3.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goccedisantanna
*/

html {
	scroll-behavior: smooth;
}

/* Le ancore non finiscono sotto l'header fisso */
:where(section[id]) {
	scroll-margin-top: 90px;
}

.gsa-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(8px);
}

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

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

/* Schede prodotto e tappe della storia */
.gsa-card {
	height: 100%;
	border-radius: 14px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gsa-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(43, 42, 34, 0.12);
}

.gsa-step-number {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 2.6rem;
	line-height: 1;
	opacity: 0.9;
}

.gsa-eyebrow {
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.gsa-drop {
	display: inline-block;
	width: 14px;
	height: 20px;
	background: var(--wp--preset--color--oro);
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	transform: rotate(180deg);
	margin-bottom: 0.5rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--oro);
	border-color: var(--wp--preset--color--oro);
	color: var(--wp--preset--color--scuro);
}

/* Velatura dell'apertura: più scura in basso per leggere bene il testo */
.gsa-hero .wp-block-cover__background.has-background-dim {
	background-image: linear-gradient(180deg, rgba(68, 71, 42, 0.15) 0%, rgba(68, 71, 42, 0.6) 100%);
}

/* Onda in fondo all'apertura, come nei materiali del marchio */
.gsa-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: clamp(36px, 6vw, 80px);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C 300 70 560 72 860 38 C 1110 10 1290 14 1440 34 L1440 80 L0 80 Z' fill='%23faf6ee'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
	z-index: 1;
	pointer-events: none;
}

.gsa-logo img {
	display: block;
}

/* Elenco con gocce al posto dei pallini */
.gsa-check {
	list-style: none;
	padding-left: 0;
}

.gsa-check li {
	position: relative;
	padding-left: 1.6em;
	margin-bottom: 0.45em;
}

.gsa-check li::before {
	content: "";
	position: absolute;
	left: 0.2em;
	top: 0.45em;
	width: 9px;
	height: 13px;
	background: var(--wp--preset--color--oliva);
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	transform: rotate(180deg);
}

.gsa-hero h1,
.gsa-hero p {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
