/*
Theme Name: SRC PROJECT & CONSULTING
Theme URI: https://example.com/
Author: Social Soda / Cozzetto Media
Description: Tema editoriale su misura per SRC PROJECT & CONSULTING — labeling, packaging e soluzioni su misura per il fashion. Multilingua IT / EN / FR (Polylang).
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietary
Text Domain: src-project
*/

:root {
	--ivory: #F6F1E8;
	--paper: #FFFDF9;
	--sand: #EFE6DA;
	--ink: #1D1A17;
	--muted: #5E564D;
	--line: #DED3C2;
	--coral: #E4573F;
	--green: #1F6B4A;
	--blue: #2B5FA8;
	--berry: #962E5A;
	--yellow: #E1A526;
	--brush: #F29A1F; /* arancio della pennellata del logo */
	--serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: "Lato", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(246, 241, 232, .92); backdrop-filter: saturate(1.2) blur(10px); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(40, 30, 20, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: block; flex: none; }
.logo img { height: 52px; width: auto; }
.logo--footer img { height: 84px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.menu, .sub-menu, .lang-switch, .footer-links, .footer-legal, .tile-grid { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: 6px; }
.menu > li { position: relative; }
.menu a, .sub-toggle { font: 500 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 12px 12px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.menu a:hover, .sub-toggle:hover, .is-current > a, .is-current > .sub-toggle { color: var(--coral); }
.sub-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.sub-menu { position: absolute; left: 0; top: 100%; min-width: 280px; background: var(--paper); border: 1px solid var(--line); padding: 8px; box-shadow: 0 18px 40px rgba(40, 30, 20, .1); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 11px 14px; text-transform: none; letter-spacing: .01em; font-size: .95rem; font-weight: 400; }
.sub-menu a:hover { background: var(--sand); }
.nav-tools { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; font-size: .72rem; letter-spacing: .1em; }
.lang-switch a { text-decoration: none; padding: 6px 7px; color: var(--muted); font-weight: 700; }
.lang-switch a.is-current { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brush); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; right: 0; top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--coral); color: #fff; font: 700 .82rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 17px 26px; border: 1.5px solid var(--coral); border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29, 26, 23, .18); }
.btn--small { padding: 12px 18px; font-size: .72rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 5vw, 64px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero--plain .hero-inner { grid-template-columns: minmax(0, 860px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 700 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.eyebrow__dot { width: 28px; height: 2px; background: var(--brush); display: inline-block; }
.hero-title { font-size: clamp(2.4rem, 4.8vw, 4.3rem); font-weight: 500; }
.hero-title--xl { font-size: clamp(2.7rem, 5.6vw, 5.2rem); }
.hero-lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: var(--muted); max-width: 52ch; margin: 26px 0 0; line-height: 1.55; }
.hero-actions { margin: 34px 0 0; }
.hero-figure { margin: 0; position: relative; }
.hero-figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--sand); z-index: 0; }
.hero-img { position: relative; z-index: 1; width: 100%; height: auto; max-height: 680px; object-fit: cover; box-shadow: 0 24px 60px rgba(40, 30, 20, .16); }

/* ---------- Contenuto ---------- */
.page-body { padding-block: clamp(24px, 4vw, 56px) clamp(56px, 8vw, 112px); }
.entry > p { max-width: 66ch; font-size: 1.08rem; margin: 0 0 1.3em; }
.page-body--home .entry > p:first-child { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.4; max-width: 34em; color: var(--ink); margin-bottom: 1.6em; }
.src-label { font: 700 .72rem/1.3 var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin: 2.2em 0 .8em !important; max-width: none !important; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 2em 0; }
.src-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 24px 24px 22px; transition: transform .3s var(--ease), box-shadow .3s; }
.src-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(40, 30, 20, .08); }
.src-card .src-label { margin: 0 0 .7em !important; }
.src-card p:last-child { margin: 0; font-size: 1rem; color: var(--muted); }
.src-card:nth-child(4n+1) .src-label { color: var(--coral); }
.src-card:nth-child(4n+2) .src-label { color: var(--blue); }
.src-card:nth-child(4n+3) .src-label { color: var(--green); }
.src-card:nth-child(4n+4) .src-label { color: var(--yellow); }
.src-steps .src-card:nth-child(4n+4) .src-label { color: var(--berry); }
.src-closing { margin: clamp(32px, 5vw, 56px) 0; padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px); background: var(--sand); border-left: 4px solid var(--berry); }
.src-closing p { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.3; margin: 0; max-width: 40em; }
.src-ticks { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 8px; }
.src-ticks li { padding-left: 24px; position: relative; font-size: 1.05rem; }
.src-ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 9px; background: var(--green); }
.src-chips { list-style: none; padding: 0; margin: 0 0 1.6em; display: flex; flex-wrap: wrap; gap: 10px; }
.src-chips li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 18px; font: 700 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--paper); }
.src-chips li:nth-child(5n+1) { border-color: var(--coral); }
.src-chips li:nth-child(5n+2) { border-color: var(--blue); }
.src-chips li:nth-child(5n+3) { border-color: var(--green); }
.src-chips li:nth-child(5n+4) { border-color: var(--yellow); }
.src-chips li:nth-child(5n+5) { border-color: var(--berry); }
.src-figure { margin: 2em 0; }
.src-figure img { width: 100%; height: auto; max-height: 620px; object-fit: cover; }
.src-figure--wide { margin-inline: 0; }
.src-figure--small { max-width: 460px; }
.src-figure--small img { max-height: 420px; }
.src-swatches { display: flex; gap: 12px; margin: 1.6em 0; flex-wrap: wrap; }
.src-swatches span { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 36px; }
.section-title--serif { font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin: 0; }

/* ---------- Home: tile ---------- */
.tiles { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 104px); }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.tile a { display: block; text-decoration: none; }
.tile__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile a:hover .tile__img img { transform: scale(1.05); }
.tile__label { display: block; font-family: var(--serif); font-size: 1.65rem; line-height: 1.15; margin-top: 16px; }
.tile__more { display: block; margin-top: 6px; font: 700 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.italy-strip { background: var(--sand); padding: clamp(40px, 6vw, 80px) 0; }
.italy-strip__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; }

/* ---------- CTA band + Footer ---------- */
.cta-band { background: var(--ink); color: #fff; padding: clamp(36px, 5vw, 60px) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band__text { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.1; margin: 0; max-width: 20em; }
.cta-band .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: 56px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-tagline { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin: 16px 0 6px; max-width: 18em; }
.footer-motto { font: 700 .7rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.footer-title { font: 700 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer address { font-style: normal; color: var(--muted); }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-link, .footer-legal a { text-decoration: none; color: var(--muted); }
.footer-links a:hover, .footer-link:hover, .footer-legal a:hover { color: var(--coral); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 22px; font-size: .85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Contatti / form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 88px); padding-block: 0 clamp(56px, 8vw, 104px); align-items: start; }
.contact-main .entry p { color: var(--muted); }
.src-form { display: grid; gap: 22px; margin-top: 24px; }
.field label { display: block; font: 700 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.field input[type=text], .field select, .field textarea, .field input[type=file] { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 95, 168, .15); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: .82rem; }
.field--check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.field--check label { text-transform: none; letter-spacing: 0; font: 400 .9rem/1.5 var(--sans); margin: 0; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--coral); }
.req { color: var(--coral); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.src-notice { padding: 16px 20px; border-radius: 6px; margin: 20px 0 0; font-weight: 700; }
.src-notice.is-ok { background: #E4F1E8; color: #1B5A3D; }
.src-notice.is-error { background: #FBE6E1; color: #8A2A19; }
.contact-img { width: 100%; height: auto; box-shadow: 0 24px 60px rgba(40, 30, 20, .14); }
.contact-card { margin-top: 28px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.contact-card p { margin: 0 0 6px; }

/* ---------- Comparsa morbida ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.menu a, .sub-toggle { padding-inline: 8px; font-size: .74rem; }
	.nav-tools { gap: 12px; }
	.btn--small { padding: 11px 14px; }
}
@media (max-width: 1020px) {
	.nav-toggle { display: block; }
	.site-nav { position: fixed; inset: 76px 0 0 0; background: var(--ivory); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; padding: 20px var(--gutter) 40px; overflow-y: auto; opacity: 0; transform: translateY(-12px); visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
	.site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu a, .sub-toggle { padding: 16px 0; font-size: .85rem; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); }
	.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; display: none; min-width: 0; }
	.has-sub.is-open > .sub-menu { display: block; }
	.has-sub:hover > .sub-menu { display: none; }
	.has-sub.is-open:hover > .sub-menu { display: block; }
	.nav-tools { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
	.lang-switch { justify-content: flex-start; }
	.nav-tools .btn { justify-content: center; }
	.hero-inner, .italy-strip__inner, .contact-grid { grid-template-columns: 1fr; }
	.hero-figure { order: -1; max-width: 640px; }
	.hero-figure::before { inset: 12px -10px -12px 10px; }
	.tile-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.header-inner { min-height: 68px; }
	.site-nav { inset: 68px 0 0 0; }
	.logo img { height: 44px; }
	.tile-grid, .footer-grid, .src-grid { grid-template-columns: 1fr; }
	.hero-figure { max-width: none; }
	.cta-band__inner { align-items: flex-start; }
	.btn { width: 100%; justify-content: center; }
	.btn--small { width: auto; }
}
