/*
Theme Name: Lolli Corporate Gifting
Theme URI: https://www.lollifinefood.it/
Author: Webetica
Author URI: https://webetica.it
Description: Tema per la landing "Regali aziendali" di Lolli Liquori: landing page Corporate Gifting 2026 integrata (catalogo dal depliant, modulo richiesta catalogo, pannello Lolli Gifting), header e footer nello stile del depliant, compatibile con Elementor (Canvas, Full Width, posizioni header/footer di Elementor Pro) e WooCommerce.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lolli-gifting
Tags: one-column, custom-logo, custom-menu, featured-images, full-width-template, e-commerce
*/

/* --------------------------------------------------------------------------
   Variabili (stesse del motore landing)
   -------------------------------------------------------------------------- */

:root {
	--lg-bg: #f0edec;
	--lg-paper: #faf8f6;
	--lg-ink: #2a2321;
	--lg-muted: #6f6663;
	--lg-grey: #9a9391;
	--lg-line: #d9d2cf;
	--lg-red: #7a2328;
	--lg-red-deep: #5c171c;
	--lg-gold: #c7a56b;
	--lg-font-display: "Bodoni Moda", "Didot", "Playfair Display", Georgia, serif;
	--lg-font-label: "Oswald", "Arial Narrow", sans-serif;
	--lg-font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
	--lg-header: 76px;
	--lg-max: 1240px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--lg-header) + 12px); }
body {
	margin: 0;
	background: var(--lg-bg);
	color: var(--lg-ink);
	font-family: var(--lg-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.admin-bar .lg-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .lg-header { top: 46px; } }

a { color: var(--lg-red); text-decoration: none; }
a:hover { color: var(--lg-red-deep); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lg-font-display);
	font-weight: 700;
	line-height: 1.1;
	color: var(--lg-red);
	margin: 1.4em 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: .04em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.2em; }
blockquote {
	margin: 1.5em 0;
	padding: .5em 0 .5em 1.4em;
	border-left: 3px solid var(--lg-gold);
	font-family: var(--lg-font-display);
	font-style: italic;
	font-size: 1.15em;
}
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
pre { background: var(--lg-paper); border: 1px solid var(--lg-line); padding: 1em; overflow: auto; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; }
th, td { border: 1px solid var(--lg-line); padding: .6em .8em; text-align: left; }
th { background: var(--lg-paper); font-family: var(--lg-font-label); text-transform: uppercase; letter-spacing: .12em; font-size: .8em; font-weight: 400; }
hr { border: 0; border-top: 1px solid var(--lg-line); margin: 2em 0; }
::selection { background: var(--lg-red); color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.lg-container { width: min(100% - 2rem, var(--lg-max)); margin-inline: auto; }
.lg-container--narrow { max-width: 820px; }
.lg-main { min-height: 50vh; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.lg-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(240, 237, 236, .92);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--lg-line);
	transition: box-shadow .25s;
}
.lg-header.is-scrolled { box-shadow: 0 10px 30px rgba(42, 35, 33, .08); }
.lg-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--lg-header);
}
.lg-brand { display: inline-flex; align-items: center; line-height: 0; }
.lg-brand img { height: 44px; width: auto; }
.lg-brand--text {
	font-family: var(--lg-font-display);
	font-weight: 800;
	font-size: 1.6rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lg-red);
	line-height: 1;
}
.lg-brand--text small { display: block; font-family: var(--lg-font-label); font-weight: 400; font-size: .55rem; letter-spacing: .4em; margin-top: .3em; }

.lg-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.lg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.lg-nav li { position: relative; }
.lg-nav a {
	font-family: var(--lg-font-label);
	font-size: .8rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--lg-ink);
	text-decoration: none;
	padding: .4em 0;
	border-bottom: 1px solid transparent;
	transition: color .2s, border-color .2s;
}
.lg-nav a:hover, .lg-nav .current-menu-item > a { color: var(--lg-red); border-bottom-color: var(--lg-gold); }
.lg-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	flex-direction: column;
	gap: 0;
	min-width: 220px;
	background: var(--lg-paper);
	border: 1px solid var(--lg-line);
	box-shadow: 0 18px 40px rgba(42, 35, 33, .12);
	padding: .5rem 0;
}
.lg-nav li:hover > .sub-menu, .lg-nav li:focus-within > .sub-menu { display: flex; }
.lg-nav .sub-menu a { display: block; padding: .6em 1.2em; border: 0; }

.lg-header .lg-cta,
.lg-nav a.lg-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--lg-font-label);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #fff !important;
	background: var(--lg-red);
	border: 1px solid var(--lg-red);
	border-radius: 999px;
	padding: .95em 2.4em !important;
	margin: 0;
	white-space: nowrap;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background .2s, transform .2s;
}
.lg-header .lg-cta:hover,
.lg-nav a.lg-cta:hover { background: var(--lg-red-deep); transform: translateY(-1px); border-bottom-color: var(--lg-red-deep); }

.lg-burger {
	display: none;
	margin-left: auto;
	width: 44px; height: 44px;
	border: 1px solid var(--lg-line);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	position: relative;
}
.lg-burger span, .lg-burger span::before, .lg-burger span::after {
	content: ""; position: absolute; left: 12px; width: 18px; height: 2px; background: var(--lg-red); transition: transform .25s, opacity .25s;
}
.lg-burger span { top: 21px; }
.lg-burger span::before { left: 0; top: -6px; }
.lg-burger span::after { left: 0; top: 6px; }
.lg-burger[aria-expanded="true"] span { background: transparent; }
.lg-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.lg-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.lg-burger { display: block; }
	.lg-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		background: var(--lg-paper);
		border-bottom: 1px solid var(--lg-line);
		padding: 1.2rem 1rem 1.5rem;
		box-shadow: 0 20px 40px rgba(42, 35, 33, .12);
	}
	.lg-nav.is-open { display: flex; }
	.lg-nav ul { flex-direction: column; gap: 0; }
	.lg-nav ul a { display: block; padding: .8em 0; border-bottom: 1px solid var(--lg-line); }
	.lg-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 1rem; background: transparent; }
	.lg-cta { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Pagine interne
   -------------------------------------------------------------------------- */

.lg-page-hero {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
	text-align: center;
	border-bottom: 1px solid var(--lg-line);
	background:
		radial-gradient(60% 50% at 50% 0%, rgba(199,165,107,.18), transparent 70%),
		var(--lg-bg);
}
.lg-page-hero h1 { margin: 0; }
.lg-page-hero .lg-kicker { margin-bottom: .6rem; }
.lg-kicker {
	font-family: var(--lg-font-label);
	font-size: .78rem;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--lg-red);
	margin: 0 0 .8rem;
}
.lg-content { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.lg-content > *:first-child { margin-top: 0; }
.lg-content .wp-block-image img, .lg-content figure img { border-radius: 6px; }
.lg-content .alignwide { width: min(100% - 2rem, var(--lg-max)); margin-inline: auto; }
.lg-content .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.lg-content .wp-block-button__link, .lg-btn {
	display: inline-block;
	font-family: var(--lg-font-label);
	font-size: .85rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #fff;
	background: var(--lg-red);
	border-radius: 999px;
	padding: 1em 2.4em;
	white-space: nowrap;
	text-decoration: none;
}
.lg-content .wp-block-button__link:hover, .lg-btn:hover { background: var(--lg-red-deep); color: #fff; text-decoration: none; }

/* La landing dentro il tema: il logo è già nell'header. */
body.lg-theme .lcg-hero__logo { display: none; }
body.lg-theme .lcg-hero { padding-top: clamp(1.5rem, 4vw, 3rem); }

/* Elenco articoli */
.lg-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.lg-post-card {
	background: var(--lg-paper);
	border: 1px solid var(--lg-line);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s, box-shadow .25s;
}
.lg-post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(42, 35, 33, .12); }
.lg-post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lg-post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.lg-post-card h2 { font-size: 1.3rem; margin: 0; }
.lg-post-card h2 a { color: var(--lg-red); }
.lg-post-card time { font-family: var(--lg-font-label); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lg-grey); }
.lg-post-card p { color: var(--lg-muted); font-size: .95em; margin: 0; }
.lg-pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; font-family: var(--lg-font-label); letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; }
.lg-pagination .page-numbers { padding: .5em .9em; border: 1px solid var(--lg-line); border-radius: 999px; color: var(--lg-ink); }
.lg-pagination .page-numbers.current, .lg-pagination .page-numbers:hover { background: var(--lg-red); border-color: var(--lg-red); color: #fff; text-decoration: none; }

.lg-single__meta { font-family: var(--lg-font-label); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--lg-grey); margin-top: .8rem; }
.lg-single__thumb { margin: 2rem 0 0; }
.lg-single__thumb img { width: 100%; border-radius: 6px; }

.lg-search { display: flex; gap: .5rem; max-width: 520px; }
.lg-search input[type="search"] {
	flex: 1; font: inherit; padding: .7em 1em;
	border: 1px solid var(--lg-line); border-radius: 999px; background: #fff; color: var(--lg-ink);
}
.lg-search button { font-family: var(--lg-font-label); letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; background: var(--lg-red); color: #fff; border: 0; border-radius: 999px; padding: .7em 1.4em; cursor: pointer; }

.lg-404 { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.lg-404 h1 { font-size: clamp(3rem, 10vw, 7rem); margin: 0 0 .3em; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.lg-footer {
	background: var(--lg-ink);
	color: rgba(250, 248, 246, .78);
	border-top: 8px solid var(--lg-red);
	padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
	font-size: .92em;
}
.lg-footer a { color: #fff; }
.lg-footer a:hover { color: var(--lg-gold); }
.lg-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.lg-footer__brand { display: inline-block; background: var(--lg-bg); border-radius: 6px; padding: .8rem 1.2rem; line-height: 0; margin-bottom: 1.2rem; }
.lg-footer__brand img { height: 48px; width: auto; }
.lg-footer h3 {
	font-family: var(--lg-font-label);
	font-weight: 400;
	font-size: .78rem;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--lg-gold);
	margin: 0 0 1rem;
}
.lg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.lg-footer__social { display: flex; gap: .6rem; margin-top: 1rem; }
.lg-footer__social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
}
.lg-footer__social svg { width: 16px; height: 16px; fill: currentColor; }
.lg-footer__bottom {
	margin-top: 2.5rem;
	padding-top: 1.2rem;
	border-top: 1px solid rgba(255,255,255,.12);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem;
	font-size: .8em; color: rgba(250, 248, 246, .55);
}
@media (max-width: 860px) {
	.lg-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* --------------------------------------------------------------------------
   WooCommerce (minimo)
   -------------------------------------------------------------------------- */

.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button {
	background: var(--lg-red); color: #fff; border-radius: 999px; font-family: var(--lg-font-label); letter-spacing: .15em; text-transform: uppercase; font-weight: 400;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--lg-red-deep); color: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--lg-font-display); color: var(--lg-red); }
.woocommerce ul.products li.product .price { color: var(--lg-ink); }
