/*
Theme Name:   Antico Salumaio Child
Theme URI:    https://anticosalumaio.com
Description:  Tema child di Antico Salumaio. Tutte le personalizzazioni vanno qui, così gli aggiornamenti del tema principale non le cancellano.
Author:       EGI Web
Author URI:   https://egiweb.it
Template:     antico-salumaio
Version:      1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  antico-salumaio-child
*/

/* ==========================================================================
   Personalizzazioni CSS
   Scrivi qui sotto le tue regole: vengono caricate DOPO lo stile del tema
   principale, quindi lo sovrascrivono.
   ========================================================================== */

/* ==========================================================================
   Header sticky su tutto il sito
   ========================================================================== */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 1000;
}
.wp-site-blocks > header.wp-block-template-part .as-header {
	position: relative;
	top: auto;
	transition: box-shadow .25s ease;
}
body.as-is-scrolled .wp-site-blocks > header.wp-block-template-part .as-header {
	box-shadow: 0 10px 24px -14px rgba(23, 51, 28, .35);
}
.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}
@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}
/* Le ancore (#sezione) non finiscono sotto l'header */
html {
	scroll-padding-top: 110px;
}
@media (max-width: 781px) {
	html {
		scroll-padding-top: 92px;
	}
}

/* ==========================================================================
   Pagina "La bottega" – hero con foto ridotta
   ========================================================================== */
.as-bottega-hero {
	padding-bottom: clamp(56px, 8vw, 112px);
}
.as-bottega-hero .as-bottega-cols {
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

/* Elenco Dove / Orari / Telefono */
.as-bottega-hero .as-facts {
	list-style: none;
	margin: 28px 0;
	padding: 0;
	display: grid;
	gap: 0;
	max-width: 520px;
	border-top: 1px solid rgba(46, 107, 46, .18);
}
.as-bottega-hero .as-facts li {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 16px;
	align-items: baseline;
	padding: 12px 0;
	border-bottom: 1px solid rgba(46, 107, 46, .18);
}
.as-bottega-hero .as-facts__k {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #2E6B2E;
}
.as-bottega-hero .as-facts__v {
	font-weight: 600;
	color: #17331C;
	text-decoration: none;
}
.as-bottega-hero a.as-facts__v:hover,
.as-bottega-hero a.as-facts__v:focus-visible {
	color: #F26A21;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Foto della facciata */
.as-bottega-photo {
	position: relative;
	width: 100%;
	max-width: 360px;
	margin: 0 0 0 auto;
}
.as-bottega-photo__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 40%;
	border-radius: 999px 999px 20px 20px;
	box-shadow: 0 28px 50px -28px rgba(23, 51, 28, .55);
}
.as-bottega-photo__seal {
	position: absolute;
	top: 16%;
	left: -30px;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	text-align: center;
	background: #F26A21;
	color: #FFFCF4;
	font-family: "Bowlby One", "Bricolage Grotesque", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.05;
	text-transform: uppercase;
	box-shadow: 0 0 0 6px #FFFCF4;
	transform: rotate(-10deg);
}
.as-bottega-photo figcaption {
	margin-top: 16px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #2E6B2E;
}

@media (max-width: 781px) {
	.as-bottega-photo {
		max-width: 280px;
		margin: 12px auto 0;
	}
	.as-bottega-photo__seal {
		left: -16px;
		width: 78px;
		height: 78px;
		font-size: 13px;
	}
	.as-bottega-hero .as-facts li {
		grid-template-columns: 84px 1fr;
	}
}
