/*
Theme Name: Amnesia Experience
Theme URI: https://amnesiavineriacioccolateria.it/
Author: Amnesia
Description: Tema WooCommerce leggero per Amnesia Cioccolateria Agricola e Amnesia Experience.
Version: 2.5.6
Text Domain: amnesia
*/

:root {
  --am-cream: #f4efe5;
  --am-paper: #fffaf2;
  --am-cocoa: #3b211b;
  --am-cocoa-soft: #65453b;
  --am-terracotta: #a95f42;
  --am-gold: #bd9857;
  --am-leaf: #53664b;
  --am-line: rgba(59, 33, 27, .16);
  --am-radius: 1.1rem;
  --am-shadow: 0 1.2rem 3rem rgba(59, 33, 27, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--am-cocoa);
  background: var(--am-cream);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.am-container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.am-section { padding: clamp(4rem, 8vw, 8rem) 0; }
.am-eyebrow { color: var(--am-terracotta); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .8em; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; font-weight: 500; }
h1 { font-size: clamp(2.7rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 4.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.am-lead { max-width: 42rem; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--am-cocoa-soft); }

.am-button, .button, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.2rem; padding: .8rem 1.3rem; border: 1px solid var(--am-cocoa);
  border-radius: 999px; background: var(--am-cocoa); color: #fff; text-decoration: none;
  font: inherit; font-weight: 750; cursor: pointer;
}
.am-button--ghost { background: transparent; color: var(--am-cocoa); }
.am-button:hover, .am-button:focus-visible { background: var(--am-terracotta); border-color: var(--am-terracotta); }

.am-site-header { position: sticky; z-index: 40; top: 0; background: color-mix(in srgb, var(--am-cream) 92%, transparent); border-bottom: 1px solid var(--am-line); backdrop-filter: blur(16px); }
.am-header-row { min-height: 5.2rem; display: flex; align-items: center; gap: 1.5rem; }
.am-brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 9rem; }
.am-brand img { max-height: 3.8rem; width: auto; }
.am-brand__text { font-family: Georgia, serif; font-size: 1.65rem; font-style: italic; }
.am-nav { margin-left: auto; }
.am-nav ul { display: flex; align-items: center; gap: 1.35rem; padding: 0; margin: 0; list-style: none; }
.am-nav a { text-decoration: none; font-size: .94rem; font-weight: 700; }
.am-header-actions { display: flex; gap: .7rem; align-items: center; }
.am-menu-toggle { display: none; }

.am-hero { min-height: min(800px, 86vh); display: grid; align-items: end; position: relative; overflow: hidden; background: var(--am-cocoa); color: #fff; }
.am-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,18,14,.84), rgba(35,18,14,.18) 72%); }
.am-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.am-hero__content { position: relative; z-index: 1; padding: clamp(5rem, 10vw, 9rem) 0; }
.am-hero__content p { max-width: 39rem; font-size: clamp(1.1rem, 2vw, 1.45rem); }
.am-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.am-hero .am-button--ghost { color: #fff; border-color: rgba(255,255,255,.78); }

.am-grid { display: grid; gap: 1.2rem; }
.am-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.am-card { overflow: hidden; border: 1px solid var(--am-line); border-radius: var(--am-radius); background: var(--am-paper); box-shadow: var(--am-shadow); }
.am-card__media { aspect-ratio: 4 / 3; background: #dfd2c1; object-fit: cover; width: 100%; }
.am-card__body { padding: 1.35rem; }
.am-card__body p:last-child { margin-bottom: 0; }
.am-agricola { background: var(--am-leaf); color: #fff; }
.am-agricola .am-lead { color: rgba(255,255,255,.78); }
.am-agricola__layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.am-steps { display: grid; gap: 1rem; counter-reset: steps; }
.am-step { padding: 1.2rem 0 1.2rem 4rem; border-top: 1px solid rgba(255,255,255,.25); position: relative; }
.am-step::before { counter-increment: steps; content: "0" counter(steps); position: absolute; left: 0; color: #dfc68f; font-weight: 800; }
.am-shop-strip { background: var(--am-paper); }

.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; padding: 0 !important; }
.products::before, .products::after { display: none !important; }
.products .product { float: none !important; width: auto !important; margin: 0 !important; padding: 1rem !important; border: 1px solid var(--am-line); border-radius: var(--am-radius); background: #fff; }
.woocommerce-loop-product__title { font-family: Georgia, serif; font-size: 1.25rem !important; }
.price { color: var(--am-terracotta) !important; font-weight: 800; }

.am-site-footer { padding: 4rem 0 2rem; background: #281612; color: #f7eee5; }
.am-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; }
.am-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.am-footer-grid a { color: inherit; text-decoration: none; }
.am-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .84rem; }

@media (max-width: 980px) {
  .am-menu-toggle { display: inline-flex; }
  .am-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 1rem; background: var(--am-cream); border-bottom: 1px solid var(--am-line); }
  .am-nav.is-open { display: block; }
  .am-nav ul { align-items: flex-start; flex-direction: column; }
  .am-header-actions .am-button { display: none; }
  .am-grid--4, .products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .am-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .am-agricola__layout, .am-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .am-section { padding: 3.5rem 0; }
  .am-grid--3, .am-grid--4, .products, .am-agricola__layout, .am-footer-grid { grid-template-columns: 1fr; }
  .am-hero { min-height: 72vh; }
  .am-footer-bottom { flex-direction: column; }
}

/* Editorial identity — Amnesia 0.5 */
body { font-family: 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
figure { margin: 0; }
section[id] { scroll-margin-top: 130px; }
:focus-visible { outline: 3px solid #a95f42; outline-offset: 5px; }
.screen-reader-text:focus { position: fixed; width: auto; height: auto; clip: auto; padding: 1rem; z-index: 99999; background: white; color: #281612; }
.am-container { width: min(1280px, calc(100% - 7rem)); }
.am-section { padding: clamp(4rem, 8vw, 8rem) 0; }
.am-eyebrow { font-size: .68rem; letter-spacing: .2em; font-weight: 600; color: #74553b; margin: 0 0 1.7rem; }
h1,h2,h3 { letter-spacing: -.045em; font-weight: 400; }
h2 { font-size: clamp(2.6rem, 4.5vw, 4.7rem); line-height: 1.04; }
em { font-weight: inherit; color: #68704a; }
.am-button, .woocommerce .button, button, input[type="submit"] { border-radius: 2px; font-weight: 500; font-size: .84rem; letter-spacing: .015em; padding: .9rem 1.25rem; min-height: 48px; }
.am-button span { margin-left: 1rem; font-size: 1.3rem; }
.am-button:hover,.am-button:focus-visible { color: white; background: #624035; border-color: #624035; }
.am-text-link { display: inline-flex; align-items: center; gap: 1.6rem; min-height: 48px; text-decoration: none; border-bottom: 1px solid currentColor; font-size: .88rem; }
.am-text-link span { font-size: 1.3rem; transition: transform .2s; }
.am-text-link:hover span { transform: translate(3px,-3px); }
.am-site-header { background: #f4efe5; backdrop-filter: none; }
.admin-bar .am-site-header { top: 32px; }
.am-header-row { min-height: 106px; }
.am-brand { min-width: 135px; }
.am-brand img { width: 124px; max-height: 82px; object-fit: contain; }
.am-nav ul { gap: clamp(1rem,2.7vw,2.7rem); }
.am-nav a { font-size: .79rem; font-weight: 500; }
.am-nav a:hover { color: #8d4f33; }
.am-header-actions { margin-left: 2rem; padding-left: 2rem; border-left: 1px solid var(--am-line); font-size: .8rem; }
.am-header-actions a { text-decoration: none; }
.am-editorial-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.am-hero-copy { padding: clamp(3.5rem,6vw,7rem) 3.5rem 2rem max(3.5rem,calc((100vw - 1280px)/2)); display: flex; flex-direction: column; justify-content: center; }
.am-hero-copy h1 { font-size: clamp(3.2rem,5.25vw,6rem); line-height: 1.06; margin-bottom: 1.6rem; }
.am-hero-copy h1 em { display: block; }
.am-intro { font-size: 1rem; line-height: 1.8; color: #68584d; max-width: 26rem; }
.am-hero-copy .am-actions { align-items: center; gap: 1rem 1.8rem; margin: 1.2rem 0 3rem; }
.am-hero-copy .am-text-link { font-size: .78rem; gap: .7rem; }
.am-hero-foot { margin-top: auto; display: flex; gap: 1rem; justify-content: space-between; font-size: .67rem; color: #78695b; letter-spacing: .04em; border-top: 1px solid var(--am-line); padding-top: 1.5rem; }
.am-hero-foot a { text-decoration: none; }
.am-hero-photo { position: relative; min-height: 640px; background: #39241b; overflow: hidden; }
.am-hero-photo>img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 53% center; }
.am-hero-photo:after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,rgba(20,14,10,.65)); }
.am-hero-photo figcaption { position: absolute; z-index: 1; bottom: 2rem; left: 2rem; right: 2rem; display: flex; justify-content: space-between; color: white; font-size: .72rem; }
.am-values { display: flex; align-items: center; justify-content: center; gap: clamp(1rem,4vw,4rem); padding: 1.65rem 1rem; background: #e9e4d6; border-bottom: 1px solid var(--am-line); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.am-values i { color: #767d55; font-size: 1.1rem; font-style: normal; }
.am-origin-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; }
.am-origin-photo { padding-right: 2rem; }
.am-origin-photo img { width: 100%; height: 540px; object-fit: cover; object-position: 45% center; border-radius: 240px 240px 0 0; }
.am-origin-photo figcaption { font-size: .7rem; color: #78695b; margin-top: 1rem; }
.am-origin-copy p:not(.am-eyebrow) { max-width: 33rem; color: #67584c; }
.am-lead { font-size: 1.12rem; line-height: 1.8; }
.am-collections { background: #eae5da; }
.am-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.am-section-heading h2 { margin-bottom: 0; }
.am-section-heading>.am-text-link { margin-bottom: .3rem; flex-shrink: 0; }
.am-collection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; }
.am-collection { text-decoration: none; }
.am-collection-photo { aspect-ratio: 1; background: #f9f7f2; overflow: hidden; }
.am-collection-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s; }
.am-collection:hover img { transform: scale(1.04); }
.am-collection-label { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding-top: 1.5rem; }
.am-collection-label h3 { font-size: 1.8rem; margin: 0; }
.am-collection-label p { font-size: .78rem; color: #746559; margin: .5rem 0 0; }
.am-collection-label>span { font-size: 1.7rem; }
.am-experience-section { background: #424d39; color: #f7f1e6; }
.am-experience-section .am-eyebrow { color: #ded3b2; }
.am-experience-section em { color: #d2c391; }
.am-experience-intro { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.am-experience-intro>p:last-child { max-width: 490px; margin: 1rem auto 0; color: #e0e1d6; }
.am-experience-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: center; }
.am-experience-layout figure img { width: 100%; height: 450px; object-fit: cover; object-position: 56% center; }
.am-experience-list details { border-top: 1px solid #858b77; }
.am-experience-list summary { list-style: none; display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; }
.am-experience-list summary::-webkit-details-marker { display: none; }
.am-experience-list summary>span { font-size: .67rem; color: #d2c391; }
.am-experience-list summary h3 { margin: 0; font-size: 1.8rem; }
.am-experience-list summary b { margin-left: auto; font-weight: 300; font-size: 1.5rem; }
.am-experience-list details[open] summary b { transform: rotate(45deg); }
.am-experience-list details p { margin: 0 0 1.5rem 2.4rem; max-width: 28rem; font-size: .9rem; color: #e0e1d6; }
.am-button--light { background: #f4efe5; border-color: #f4efe5; color: #35402f; margin-top: 1.8rem; }
.am-visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.am-location { border-top: 1px solid var(--am-line); padding: 1.5rem 0; }
.am-location h3 { font-size: 1.6rem; margin: 0; }
.am-location p { margin: .4rem 0 0; color: #756356; font-size: .9rem; }
.am-site-footer { background: #2e211b; padding: 4rem 0 1.5rem; }
.am-footer-top { border-bottom: 1px solid #64554a; padding-bottom: 2rem; margin-bottom: 2rem; }
.am-footer-top .am-eyebrow { color: #c6b594; }
.am-footer-statement { font-family: Georgia,serif; font-size: clamp(2rem,4.5vw,4.4rem); letter-spacing: -.04em; line-height: 1.15; margin: 0; }
.am-footer-statement em { color: #c6b594; }
.am-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; font-size: .85rem; color: #d6cdbd; }
.am-footer-grid h3 { font-family: inherit; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: #f4efe5; }
.am-footer-grid li { margin: .45rem 0; }
.am-footer-bottom { color: #c6bbaa; font-size: .72rem; }
body:not(.home) #contenuto>.am-container,body:not(.home) #contenuto>.woocommerce { padding-block: 3rem; }
.woocommerce .products .product { border-radius: 0; border: 0; padding: 0 0 1.5rem!important; background: transparent; }
.woocommerce .products .product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: white; }
.woocommerce-loop-product__title { font-size: 1.35rem!important; letter-spacing: -.02em; }
.woocommerce .products .product a { text-decoration: none; }
.woocommerce .products .product .button { display: inline-flex; margin-top: .8rem; }
.woocommerce div.product .summary { line-height: 1.8; }
.woocommerce select,.woocommerce input.input-text,.woocommerce textarea { max-width: 100%; padding: .8rem; border: 1px solid #b8a997; background: #fffaf2; color: #3b211b; font: inherit; }
@media (min-width:981px) { .am-menu-toggle { display:none; } }
@media (max-width:1100px) { .am-container { width: calc(100% - 4rem); } .am-hero-copy { padding-left: 2rem; padding-right: 2rem; } .am-header-actions { margin-left: 0; padding-left: 1rem; } }
@media (max-width:980px) {
 .am-header-row { min-height: 92px; } .am-menu-toggle { margin-left: auto; } .am-nav ul { gap: 0; } .am-nav a { display: block; padding: .8rem 1rem; font-size: 1rem; } .am-nav { max-height: calc(100dvh - 140px); overflow: auto; }
 .am-editorial-hero { min-height: 540px; } .am-hero-photo { min-height: 540px; } .am-hero-copy h1 { font-size: clamp(3rem,5.8vw,4.5rem); } .am-hero-foot { display:none; } .am-hero-copy .am-actions { margin-bottom: 0; }
 .am-origin-photo { padding-right:0; } .am-origin-photo img { height: 420px; } .am-collection-grid { gap: 1rem; } .am-collection-label h3 { font-size: 1.5rem; }
}
@media (max-width:680px) {
 .am-container { width: calc(100% - 2.5rem); } .am-header-row { gap: .8rem; min-height: 84px; } .am-brand { min-width: 105px; } .am-brand img { width: 102px; max-height: 68px; } .am-header-actions { padding-left: .8rem; font-size: .72rem; } .am-menu-toggle { padding: .5rem .8rem; min-height: 44px; font-size: .75rem; }
 .admin-bar .am-site-header { top: 46px; } .am-editorial-hero { grid-template-columns: 1fr; } .am-hero-copy { padding: 3rem 1.25rem 2.5rem; } .am-hero-copy h1 { font-size: clamp(3rem,12vw,4.4rem); } .am-hero-copy .am-eyebrow { font-size: .6rem; letter-spacing: .16em; margin-bottom: 1.4rem; } .am-intro { font-size: .95rem; } .am-hero-copy .am-actions { gap: .6rem 1.2rem; } .am-hero-photo { min-height: 370px; } .am-hero-photo>img { object-position: 53% center; } .am-hero-photo figcaption { left: 1.25rem; right: 1.25rem; bottom: 1.25rem; font-size: .64rem; }
 .am-values { flex-wrap: wrap; gap: .6rem 1rem; font-size: .53rem; letter-spacing: .06em; padding: 1.1rem; } .am-values i { font-size: .7rem; }
 .am-origin-grid,.am-experience-layout,.am-visit-grid { grid-template-columns:1fr; gap: 2.5rem; } .am-origin-copy { grid-row:1; } .am-origin-photo { max-width: 440px; width: 100%; margin:auto; } .am-origin-photo img { height: 420px; }
 .am-section-heading { flex-direction:column; align-items:start; gap: 1rem; } .am-collection-grid { grid-template-columns:1fr; gap: 2.5rem; } .am-collection-photo { aspect-ratio: 1.15; } .am-collection-label { padding-top: 1rem; } .am-collection-label h3 { font-size:1.9rem; }
 .am-experience-intro { text-align:left; margin-bottom:2rem; } .am-experience-intro>p:last-child { margin-left:0; } .am-experience-layout figure img { height: 320px; } .am-experience-list summary h3 { font-size:1.8rem; } .am-experience-list .am-button { width:100%; font-size:.8rem; }
 .am-footer-grid { grid-template-columns:1fr 1fr; gap:2rem 1rem; } .am-footer-grid>div:first-child { grid-column:1/-1; } .am-footer-statement { font-size:2.8rem; }
 .products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; } .woocommerce-loop-product__title { font-size:1.1rem!important; } .woocommerce .products .product .button { font-size:.7rem; padding:.6rem; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; } }

@media (min-width:681px) and (max-width:782px) { .admin-bar .am-site-header { top:46px; } }

/* Collegamenti legali: stesso footer, nessun cambiamento ai template Shop. */
.am-legal-links { display:flex; flex-wrap:wrap; gap:.5rem 1.25rem; }
.am-legal-links a { min-height:44px; display:inline-flex; align-items:center; }

/* Consent control stays in footer flow, without covering legal links. */
.am-legal-links .am-consent-trigger{position:static;display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;box-shadow:none}
.am-legal-links .am-consent-trigger:focus-visible{outline:2px solid currentColor;outline-offset:4px}
