/*
Theme Name: Italian Store
Description: Sito bilingue e catalogo di Italian Store S.r.l.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1.5
Requires PHP: 8.1
Text Domain: italian-store
*/
@font-face {
	font-family: Manrope;
	src: url(assets/fonts/manrope.woff2) format("woff2");
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
}
@font-face {
	font-family: "Playfair Display";
	src: url(assets/fonts/playfair-display.woff2) format("woff2");
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
}
@font-face {
	font-family: "Playfair Display";
	src: url(assets/fonts/playfair-display-italic.woff2) format("woff2");
	font-style: italic;
	font-weight: 500 700;
	font-display: swap;
}
:root {
	--ink: #202c25;
	--green: #244636;
	--olive: #4a6347;
	--red: #a4372b;
	--paper: #fbf8f0;
	--white: #fffefa;
	--line: #e5ded0;
	--muted: #535a50;
	--serif: "Playfair Display", Georgia, serif;
	--sans: Manrope, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 500 16px/1.65 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
	outline: 3px solid #b2573f;
	outline-offset: 4px;
}
h1, h2, h3 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.11;
}
p { margin: 0 0 1em; }
.wrap { width: min(100% - 112px, 1330px); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus), .form-trap {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: absolute;
	z-index: 5;
	left: 1em;
	top: 1em;
	background: var(--white);
	padding: .6em 1em;
}
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner {
	min-height: 84px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 28px;
}
.brand img { width: 193px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.3vw, 35px); }
.site-nav a {
	position: relative;
	text-decoration: none;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 750;
}
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav a[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	border-bottom: 2px solid var(--red);
}
.site-nav a:hover, .text-link:hover { color: var(--red); }
.header-actions, .languages { display: flex; align-items: center; gap: 18px; }
.languages { gap: 3px; }
.languages a {
	font-size: 12px;
	font-weight: 800;
	padding: 5px 7px;
	text-decoration: none;
	color: var(--muted);
	border-radius: 5px;
}
.languages a[aria-current="true"], .languages a:hover { background: #eee9de; color: var(--ink); }
.button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	min-height: 49px;
	padding: 10px 17px;
	border: 1px solid transparent;
	border-radius: 7px;
	text-decoration: none;
	font: 800 13px/1.3 var(--sans);
	cursor: pointer;
}
.button span { font-size: 17px; }
.button:hover { filter: brightness(.92); }
.button.primary { background: var(--green); color: #fff; }
.button.dark { background: var(--ink); color: #fff; }
.button.outline { border-color: #bdb8a9; color: var(--ink); }
.button.light { background: var(--white); color: var(--ink); }
.header-cta { min-height: 40px; padding: 7px 12px; white-space: nowrap; }
.hero {
	display: grid;
	grid-template-columns: .94fr 1.06fr;
	align-items: center;
	gap: 28px;
	padding-block: 46px 52px;
}
.hero-copy { padding-block: 22px; }
.eyeline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .135em;
	text-transform: uppercase;
}
.flag-line { width: 33px; height: 3px; background: linear-gradient(90deg,#288247 0 33.33%,#e6dfce 33.33% 66.66%,#c3342d 66.66%); }
.hero h1 { font-size: clamp(44px, 4.55vw, 67px); letter-spacing: -.058em; }
.hero h1 em { color: var(--green); font-weight: inherit; }
.hero-copy p { max-width: 45ch; margin: 23px 0 24px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-media {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: #d1b999;
}
.hero-media img { width: 100%; aspect-ratio: 1.55; object-fit: cover; object-position: center; }
.catalog-band { padding: 43px 0 51px; background: #f1ede2; border-block: 1px solid var(--line); }
.section-top, .footer-cta, .footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}
.section-top { margin-bottom: 24px; }
.section-top h2, .about-copy h2 { font-size: clamp(32px, 3vw, 44px); letter-spacing: -.034em; }
.text-link {
	color: var(--green);
	font-weight: 800;
	font-size: 14px;
	text-underline-offset: 4px;
}
.text-link span { margin-inline-start: 3px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-block: 20px 0; }
.cards-home { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; }
.product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 11px;
	background: var(--white);
	border: 1px solid var(--line);
	text-decoration: none;
}
.product-card:hover { border-color: var(--olive); }
.card-image { background: #fff; overflow: hidden; }
.card-image img { width: 100%; aspect-ratio: 1.82; object-fit: cover; transition: transform .24s ease; }
.product-card:hover .card-image img { transform: scale(1.035); }
.card-caption { position: relative; flex: 1; padding: 17px 42px 18px 15px; }
.card-caption h3 { font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.025em; }
.card-caption p { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 7px 0 0; }
.card-arrow {
	position: absolute;
	right: 13px;
	top: 14px;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--green);
	font-size: 14px;
}
.about-home { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 78px); align-items: center; padding-block: 64px; }
.about-media, .detail-media { overflow: hidden; border-radius: 13px; }
.about-media img { width: 100%; }
.prose { color: var(--muted); max-width: 74ch; overflow-wrap: anywhere; }
.prose h2 { margin: 1.1em 0 .45em; font-size: 29px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose .button { color: #fff; }
.about-copy .prose { margin-top: 20px; }
.inner-page { min-height: 45vh; padding-block: 50px 72px; }
.page-heading { margin-bottom: 32px; }
.page-heading h1, .inner-page > h1 {
	font-size: clamp(44px, 6.8vw, 87px);
	letter-spacing: -.054em;
}
.page-heading .prose, .page-heading > p { margin: 13px 0 0; }
.page-heading p:last-child { margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 12px; }
.back-link span { margin: 0 4px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0,1.08fr); align-items: start; gap: clamp(24px, 5vw, 74px); }
.detail-media { background: #fff; border: 1px solid var(--line); }
.detail-media img { width: 100%; max-height: 560px; object-fit: contain; }
.product .detail-media img { min-height: 230px; max-height: 480px; }
.product .button { margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; margin-top: 33px; }
.gallery a { display: grid; place-items: center; min-height: 150px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.gallery img { width: 100%; height: 160px; object-fit: contain; }
.contact-layout { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); gap: 30px; align-items: start; }
.contact-panel, .request-panel, .logistics { padding: clamp(19px,3.1vw,40px); border-radius: 13px; }
.contact-panel { background: var(--green); color: #fff; }
.contact-panel h2, .request-panel h2, .logistics h2 { font-size: 33px; margin: 0 0 18px; }
.contact-panel .text-link { color: #fff; }
.contact-panel p { margin-bottom: 18px; }
.contact-panel p a { overflow-wrap: anywhere; }
.request-panel, .logistics { background: var(--white); border: 1px solid var(--line); }
.request-panel fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.request-panel fieldset:disabled { opacity: .66; }
.request-panel fieldset:disabled button { cursor: default; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 17px; }
.form-grid label { display: grid; gap: 5px; font-size: 13px; font-weight: 750; }
.form-grid input, .form-grid textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #bcb6a6;
	border-radius: 5px;
	background: #fff;
	color: inherit;
	font: inherit;
}
.form-wide { grid-column: 1 / -1; }
.form-check { display: flex; gap: 8px; margin-bottom: 16px; align-items: baseline; }
.form-message { border-inline-start: 3px solid var(--olive); padding-inline-start: 10px; }
.form-help { color: var(--muted); font-size: 13px; }
.site-footer { background: #223b2e; color: #fff; }
.footer-cta { padding-block: 32px; border-bottom: 1px solid #62806e; }
.footer-cta h2 { font-size: clamp(28px, 3.2vw, 42px); }
.footer-cta p { margin: 8px 0 0; color: #e0e8df; }
.footer-bottom { padding-block: 25px; font-size: 13px; color: #e0e8df; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
@media (max-width: 1100px) {
	.wrap { width: min(100% - 64px, 1330px); }
	.header-inner { gap: 13px; }
	.brand img { width: 162px; }
	.header-actions { gap: 8px; }
	.hero h1 { font-size: clamp(41px, 4.85vw, 58px); }
	.card-caption { padding-left: 11px; padding-right: 34px; }
	.card-arrow { right: 7px; }
}
@media (max-width: 860px) {
	.wrap { width: calc(100% - 44px); }
	.site-nav { gap: 17px; }
	.header-cta { display: none; }
	.hero { grid-template-columns: 1fr; gap: 19px; padding-block: 19px 31px; }
	.hero-copy { padding-block: 13px 6px; }
	.hero-media img { max-height: 430px; }
	.cards, .cards-home { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.about-home, .split { gap: 24px; }
}
@media (max-width: 610px) {
	.wrap { width: calc(100% - 34px); }
	.header-inner { grid-template-columns: 1fr auto; grid-template-rows: auto auto; min-height: 0; gap: 0; padding-top: 13px; }
	.brand img { width: 159px; }
	.header-actions { grid-column: 2; grid-row: 1; }
	.site-nav { grid-column: 1 / -1; min-height: 47px; justify-content: space-between; gap: 8px; }
	.site-nav a { font-size: clamp(11px, 3.15vw, 14px); }
	.site-nav a[aria-current="page"]::after { bottom: -5px; }
	.eyeline { margin-bottom: 12px; }
	.hero h1 { font-size: clamp(33px, 10.1vw, 52px); }
	.hero-copy p { margin-block: 15px 18px; }
	.hero-media, .hero-media img { border-radius: 12px; }
	.hero-media img { aspect-ratio: 1.45; }
	.catalog-band { padding-block: 30px; }
	.section-top { align-items: flex-start; }
	.section-top h2 { font-size: 29px; }
	.section-top .text-link { font-size: 12px; max-width: 125px; text-align: right; }
	.cards, .cards-home { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
	.card-caption { padding-block: 13px; }
	.card-caption h3 { font-size: 18px; }
	.card-arrow { top: 10px; }
	.about-home, .split, .contact-layout { grid-template-columns: 1fr; }
	.about-home, .inner-page { padding-block: 38px; }
	.gallery img { height: 125px; }
	.footer-cta, .footer-bottom { align-items: flex-start; flex-direction: column; }
	.form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.card-image img { transition: none; }
}
.icon-up {
	display: inline-block;
	position: relative;
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	vertical-align: -.03em;
}
.icon-up::before {
	content: "";
	position: absolute;
	right: 1px;
	top: 1px;
	width: 7px;
	height: 7px;
	border-top: 1.4px solid currentColor;
	border-right: 1.4px solid currentColor;
}
.icon-up::after {
	content: "";
	position: absolute;
	width: 11px;
	right: 1px;
	top: 1px;
	border-top: 1.4px solid currentColor;
	transform: rotate(-45deg);
	transform-origin: right top;
}
@media (max-width: 610px) {
	.section-top .text-link { max-width: none; white-space: nowrap; }
}
