/*
Theme Name: Patrocletta Boutique
Theme URI: https://example.invalid/patrocletta
Author: Patrocletta
Description: Tema dedicato all'e-commerce artigianale Patrocletta, con WooCommerce.
Version: 1.3.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: patrocletta
*/
:root{--orange:#f26719;--yellow:#ffda69;--cream:#fffaf2;--teal:#174d59;--pale:#fff0d5;--line:#f4dcb9;--ink:#234653}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.wrap{width:min(1220px,calc(100% - 40px));margin:auto}.topstripe{background:var(--orange);color:white;font-size:13px;font-weight:600;text-align:center;padding:9px}.siteheader{background:#fffefa}.headrow{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:105px}.brand{font:600 clamp(29px,4vw,52px) Georgia,serif;color:var(--teal);letter-spacing:.025em}.tagline{color:#d7590b;font:italic 19px Georgia,serif}.mark{font-size:22px;color:var(--orange)}.headlinks{display:flex;align-items:center;gap:17px;font-size:14px;font-weight:600}.navstripe{background:var(--yellow)}.mainnav{display:flex;gap:24px;align-items:center;justify-content:center;flex-wrap:wrap;padding:12px;font-size:14px;font-weight:700}.mainnav a:hover,.headlinks a:hover{color:#be4900}.hero{display:grid;grid-template-columns:44% 56%;align-items:stretch;background:linear-gradient(130deg,#fffaee,#ffe9bb);min-height:460px}.hero-copy{padding:60px max(28px,8%) 55px;align-self:center}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.17em;font-weight:800;color:#dd5a12}.hero h1{font:normal clamp(42px,5vw,70px)/1.09 Georgia,serif;letter-spacing:-.03em;color:var(--teal);margin:17px 0 23px}.hero p{max-width:390px;color:#53656b}.hero-image{display:flex;align-items:center;background:#faeccc;overflow:hidden}.hero-image img{width:100%;height:100%;max-height:590px;object-fit:contain}.cta,.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{display:inline-block;background:var(--orange)!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:13px 23px!important;font-weight:700!important;cursor:pointer}.cta:hover,.woocommerce a.button:hover{background:#cf4e0a!important}.section{padding:65px 0}.section-title{text-align:center;font:normal clamp(32px,4vw,45px) Georgia,serif;color:var(--teal);margin:0 0 14px}.section-lead{text-align:center;color:#64767a;margin:0 0 32px}.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.cat{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 5px 20px #ba7a3920}.cat img{display:block;width:100%;aspect-ratio:1.6;object-fit:contain;background:#fff6e7}.catname{display:block;background:var(--yellow);font-weight:800;text-align:center;padding:10px;color:var(--teal)}.zipbanner{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border-radius:21px;background:#ffefd2;border:1px solid var(--line)}.zipbanner .words{padding:45px;align-self:center}.zipbanner h2{font:normal 53px Georgia,serif;margin:10px 0;color:var(--teal)}.zipbanner img{width:100%;height:100%;max-height:435px;object-fit:contain}.showcase{background:#fffdfa;border-block:1px solid var(--line)}.products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.product-card{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.product-card img{width:100%;aspect-ratio:1.1;object-fit:contain;background:#fff9ef;display:block}.product-card .details{padding:15px}.product-card h3{font-size:15px;font-weight:650;margin:2px 0 9px}.product-card .price{font-weight:700;color:#cb5510}.product-card .hint{font-size:12px;color:#687778}.storyarea{background:#fff0d5}.story-inner{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.story-inner img{width:100%;max-height:330px;object-fit:contain}.sitefooter{background:var(--teal);color:white;text-align:center;padding:45px 15px}.sitefooter .brand{color:#fff;font-size:35px}.sitefooter .tagline{color:#ffe3ae}.footnote{font-size:12px;opacity:.85}.contentarea{padding:50px 0;min-height:450px}.woocommerce ul.products li.product img{object-fit:contain;background:#fff8ed}.woocommerce div.product div.images img{object-fit:contain}.woocommerce .woocommerce-breadcrumb{font-size:12px}.screen-reader-text{clip:rect(1px,1px,1px,1px);position:absolute!important;height:1px;width:1px;overflow:hidden}input,select,textarea{max-width:100%}@media(max-width:800px){.categories{grid-template-columns:repeat(2,1fr)}.products-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr}.hero-image{order:-1;max-height:420px}.hero-image img{max-height:420px}.headrow{min-height:85px}.zipbanner{grid-template-columns:1fr}.zipbanner img{max-height:360px}.story-inner{grid-template-columns:1fr}.story-inner img{max-height:260px}}@media(max-width:540px){.wrap{width:min(100% - 28px,1220px)}.headrow{flex-wrap:wrap;justify-content:center;gap:4px;padding:15px 0}.headlinks{width:100%;justify-content:center}.mainnav{gap:12px;font-size:12px}.hero-copy{padding:34px 24px}.section{padding:45px 0}.categories,.products-grid{gap:12px}.catname{font-size:13px}.zipbanner .words{padding:30px}.brand{font-size:35px}}

/* V1.1: allineamento grafico all'anteprima arancione, senza manipolazioni delle immagini */
:root{--orange:#f2630c;--yellow:#ffda58;--teal:#144e60}
.topstripe{padding:7px 16px;font-size:12px;letter-spacing:.035em}
.siteheader{border-bottom:1px solid #f6e9d2}
.headrow{min-height:100px;max-width:1260px}
.headrow>a{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}
.brand{display:flex;align-items:center;gap:10px;color:var(--teal);font:italic 500 clamp(35px,4.2vw,61px)/1.03 Georgia,'Times New Roman',serif;letter-spacing:-.035em;white-space:nowrap}
.brandword{display:inline-block}
.brand-heart{font-family:Georgia,serif;font-size:.65em;color:var(--orange);font-style:normal;transform:rotate(-12deg)}
.brand .mark{font-size:.39em;color:var(--orange);font-style:normal;align-self:center}
.tagline{font:italic 500 clamp(13px,1.2vw,17px)/1.5 Georgia,serif;color:#a94e15;letter-spacing:.035em}
.tagline span{color:var(--orange)}
.headlinks{gap:16px;font-size:13px;color:var(--teal)}
.navstripe{border-bottom:3px solid #f5ba31}
.mainnav{gap:clamp(11px,2.0vw,30px);padding:12px 14px;flex-wrap:nowrap;white-space:nowrap;overflow-x:auto;justify-content:center;scrollbar-width:thin}
.mainnav a{flex:0 0 auto}
.hero{display:grid;grid-template-columns:minmax(0,57%) minmax(0,43%);min-height:410px;max-height:540px;background:#fff1d2}
.hero-image{min-width:0;background:#fff1d2;overflow:hidden}
.hero-image img{display:block;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center}
.hero-copy{min-width:0;align-self:center;padding:32px clamp(24px,4vw,70px) 40px;background:linear-gradient(100deg,#fff4de 0%,#fff9ed 100%)}
.hero h1{font:500 clamp(29px,3.3vw,52px)/1.14 Georgia,serif;letter-spacing:-.025em;margin:13px 0 17px}
.hero h1 em{font-style:italic;color:var(--orange)}
.hero p{font-size:16px;line-height:1.7;margin:0 0 22px;max-width:410px}
.hero .eyebrow{color:#d65500;font-size:13px}
.cta{box-shadow:0 5px 0 #d74d0320}
.section{padding:49px 0}
.section-title{font-style:italic;font-weight:500}
.section-lead{margin-bottom:24px}
.cat img{aspect-ratio:1.65;object-fit:contain}
.catname{font-size:15px}
.zipbanner{background:#fff3d7}
@media(max-width:980px){.mainnav{justify-content:flex-start}.brand{font-size:clamp(32px,4.8vw,48px)}.headlinks{gap:9px}}
@media(max-width:800px){.hero{grid-template-columns:1fr;max-height:none}.hero-image{order:0;min-height:0;height:380px}.hero-image img{max-height:none}.hero-copy{order:1;padding:30px 25px 34px}.hero h1{font-size:37px}.headrow{flex-wrap:wrap;justify-content:center;padding:14px 0;gap:9px}.headlinks{justify-content:center}.mainnav{justify-content:flex-start}}
@media(max-width:540px){.hero-image{height:310px}.hero h1{font-size:32px}.headlinks{width:100%}.brand{font-size:37px}.mainnav{justify-content:flex-start}.section{padding:37px 0}.catname{font-size:13px}.zipbanner .words{padding:27px}}

/* V1.2 - logo grafico approvato, originale e non reinterpretato. */
.headrow>a{display:block;min-width:0;max-width:min(700px,76%);flex:0 1 700px}
.patrocletta-logo{display:block;width:100%;max-width:700px;height:auto;object-fit:contain}
.headrow{padding-top:9px;padding-bottom:9px;min-height:95px}
@media(max-width:800px){.headrow>a{width:100%;max-width:620px;flex:0 1 620px}.patrocletta-logo{margin:0 auto}.headlinks{width:100%;justify-content:center}}
@media(max-width:540px){.headrow>a{max-width:100%}.patrocletta-logo{width:100%;height:auto}.headrow{padding:10px 0 6px}}

/* V1.3 - correzione sovrapposizione hero/categorie su desktop.
   L'immagine mantiene il rapporto originale (object-fit:contain), senza tagli. */
@media (min-width:801px) {
  .hero {
    height: 510px;
    min-height: 0;
    max-height: none;
    grid-template-columns: minmax(0, 57%) minmax(0, 43%);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }
  .hero-image {
    position: relative;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
  }
  .hero-image > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
  }
  .hero-copy {
    height: 100%;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 24px clamp(24px, 3.5vw, 65px);
  }
  .hero-copy h1 { font-size: clamp(30px, 3vw, 49px); }
}
@media (max-width:800px) {
  .hero { height:auto; min-height:0; max-height:none; overflow:visible; grid-template-rows:auto auto; }
  .hero-image { position:relative; width:100%; height:350px; min-height:0; overflow:hidden; }
  .hero-image > img { position:absolute; inset:0; width:100%; height:100%; max-height:100%; object-fit:contain; object-position:center; }
  .hero-copy { height:auto; min-height:0; }
}
@media (max-width:540px) { .hero-image { height:300px; } }
/* Le sezioni devono rimanere nel normale flusso verticale. */
main > section { position:relative; clear:both; }
#categorie { isolation:isolate; }
