/*
Theme Name: Caffè Amary
Theme URI: https://www.amary.it
Author: Caffè Amary
Description: Tema su misura per Caffè Amary: home a schermata unica, negozio WooCommerce, articoli e ricette.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: caffe-amary
*/
:root{--cream:#F7F1E8;--brown:#2B1A12;--tan:#E9DCC9;--red:#B3261E;--red-dark:#8F1E18;--muted:#6B5A4E;--bean:#4A2E1E}
*{box-sizing:border-box}
body{margin:0;background:var(--cream);color:var(--brown);font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.15;margin:0 0 .5em}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.w{max-width:1200px;margin:0 auto;padding:0 32px}
.muted{color:var(--muted);font-size:14px}
.beans,.ph{background-color:var(--brown);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg transform='rotate(-30 22 24)'%3E%3Cellipse cx='22' cy='24' rx='17' ry='11' fill='%234A2E1E'/%3E%3Cpath d='M7 24Q22 17 37 24' fill='none' stroke='%232B1A12' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='rotate(35 68 62)'%3E%3Cellipse cx='68' cy='62' rx='17' ry='11' fill='%234A2E1E'/%3E%3Cpath d='M53 62Q68 55 83 62' fill='none' stroke='%232B1A12' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E")}
/* pulsanti e moduli */
.btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,input[type=submit],button[type=submit]{display:inline-block;padding:12px 24px;border-radius:999px;background:var(--red);color:#fff;font-weight:600;font-size:15px;line-height:1.3;font-family:inherit;border:0;cursor:pointer;text-align:center}
.btn:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,input[type=submit]:hover{background:var(--red-dark);color:#fff}
.btn2{background:transparent;border:2px solid var(--cream);color:var(--cream)}
.btn2:hover{background:rgba(247,241,232,.15)}
.btn3{background:transparent;border:2px solid var(--brown);color:var(--brown)}
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],input[type=search],textarea,select{padding:12px;border:1px solid var(--muted);border-radius:8px;font:inherit;background:#fff;max-width:100%}
textarea{width:100%}
/* intestazione */
.topbar{background:var(--brown);color:var(--cream);font-size:13px}
.topbar .w{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-top:8px;padding-bottom:8px}
.header-in{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding-top:16px;padding-bottom:16px}
.brand img{height:96px;width:auto;display:block}
.header-right{display:flex;align-items:center;flex-wrap:wrap;gap:12px 28px}
.nav .menu,.site-footer .menu{display:flex;flex-wrap:wrap;gap:12px 24px;list-style:none;margin:0;padding:0}
.nav .menu a{font-weight:500;font-size:15px}
.nav .menu a:hover,.nav .current-menu-item>a{color:var(--red)}
.utils{display:flex;gap:20px;font-weight:500;font-size:15px}
.utils a:hover{color:var(--red)}
.nav .menu li{position:relative}
.nav .sub-menu{display:none;position:absolute;top:100%;left:-12px;z-index:30;min-width:260px;margin:0;padding:10px 0;list-style:none;background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(43,26,18,.18)}
.nav .sub-menu a{display:block;padding:8px 18px;font-size:14px;font-weight:400}
.nav li:hover>.sub-menu,.nav li:focus-within>.sub-menu{display:block}
/* home a schermata unica */
.is-home{min-height:100vh;display:flex;flex-direction:column}
.admin-bar .is-home{min-height:calc(100vh - 32px)}
.home-hero{flex:1;display:flex;align-items:center;color:var(--cream)}
.home-in{width:100%;display:flex;flex-direction:column;gap:28px;padding-top:24px;padding-bottom:24px}
.home-top{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center}
.home-copy{display:flex;flex-direction:column;gap:20px}
.home-copy h1{font-size:46px;margin:0}
.home-copy p{margin:0;font-size:18px;line-height:1.6;color:var(--tan)}
.btns{display:flex;gap:16px;flex-wrap:wrap}
.home-photo{width:100%;height:300px;object-fit:cover;border-radius:16px;display:block}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.tile{border:1px solid var(--muted);border-radius:16px;padding:18px 20px;background:rgba(43,26,18,.75);color:var(--cream);display:flex;flex-direction:column;gap:6px}
.tile:hover{border-color:var(--cream)}
.tile h3{font-size:20px;margin:0}
.tile span{color:var(--tan);font-size:14px}
/* pagine, articoli, schede */
.page-wrap{padding-top:32px;padding-bottom:16px}
.w.narrow{max-width:820px}
.page-title{font-size:44px;margin-bottom:8px}
.lead{margin:0 0 28px;font-size:16px}
.content{line-height:1.75}
.content a{color:var(--red);text-decoration:underline}
.content img{border-radius:12px}
.content h2{margin-top:1.6em}
.content table{border-collapse:collapse;width:100%}
.content th,.content td{padding:8px 12px;border-bottom:1px solid var(--tan);text-align:left}
.hero-img{width:100%;border-radius:16px;margin:16px 0 24px}
.thumb{display:block;width:100%;object-fit:cover;border-radius:12px}
.ph{width:100%;border-radius:12px}
.card{background:#fff;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
.card .thumb,.card .ph{aspect-ratio:16/9}
.card h3{font-size:20px;margin:0}
.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.sec-title{font-size:30px;margin:48px 0 24px}
.news{display:grid;grid-template-columns:1.4fr 1fr;gap:32px}
.news.solo{grid-template-columns:1fr}
.feat{display:flex;flex-direction:column;gap:14px}
.feat .thumb,.feat .ph{aspect-ratio:16/10}
.feat h2{font-size:32px;margin:0}
.tag{color:var(--red);font-weight:600;font-size:13px;letter-spacing:.08em}
.news-side{display:flex;flex-direction:column;gap:20px}
.small{display:flex;gap:16px;align-items:center;background:#fff;border-radius:16px;padding:12px}
.small .thumb,.small .ph{width:120px;flex:none;aspect-ratio:1/1}
.small h3{font-size:19px;margin:0}
.chips{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}
.chip{padding:10px 18px;border-radius:999px;font-weight:600;font-size:14px;background:#fff;border:1px solid var(--muted)}
.chip.on{background:var(--brown);color:var(--cream);border-color:var(--brown)}
.pagination,.navigation.pagination{margin:32px 0}
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.pagination a,.pagination span{padding:8px 14px;border-radius:999px;background:#fff;border:1px solid var(--muted)}
.pagination .current{background:var(--brown);color:var(--cream)}
/* chi siamo */
.band{color:var(--cream)}
.split{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center}
.band .split{padding-top:56px;padding-bottom:56px}
.band h1{font-size:44px;margin:0 0 .4em}
.band p{margin:0;font-size:18px;line-height:1.7;color:var(--tan)}
.band .home-photo{height:320px}
.step b{font-family:Georgia,serif;font-size:30px;color:var(--red);font-weight:600}
.step h3{font-size:22px;margin:0}
.panel{background:#fff;border-radius:20px;padding:36px}
.panel h2{font-size:30px}
.panel p{margin:0;line-height:1.7}
.two{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.cta-band{background:var(--tan);border-radius:20px;padding:44px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px}
.cta-band h2{font-size:32px}
.cta-band p{margin:0;max-width:700px;line-height:1.7}
.mt{margin-top:32px}
/* contatti */
.contact{display:grid;grid-template-columns:1fr 1.3fr;gap:32px;align-items:start}
.info-row{padding:18px 0;border-bottom:1px solid var(--tan)}
.info-row small{display:block;color:var(--muted);font-weight:600;letter-spacing:.06em;font-size:13px}
.info-row span,.info-row a{font-size:18px}
/* piè di pagina */
.site-footer{color:var(--tan);margin-top:64px}
.foot-in{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:28px;padding-bottom:28px;font-size:14px}
.site-footer .menu{gap:16px}
/* WooCommerce */
.woocommerce ul.products::before,.woocommerce ul.products::after,.woocommerce-page ul.products::before,.woocommerce-page ul.products::after{display:none}
.woocommerce ul.products,.woocommerce-page ul.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px;list-style:none;margin:0 0 32px;padding:0}
.woocommerce ul.products[class*="columns-"] li.product,.woocommerce-page ul.products[class*="columns-"] li.product{width:auto;float:none;margin:0;background:#fff;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px;position:relative}
.woocommerce ul.products li.product a img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#fff;margin:0 0 6px;border-radius:12px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font:600 17px/1.3 Georgia,serif;margin:0;padding:0;color:var(--brown)}
.woocommerce ul.products li.product .price{color:var(--red);font-weight:600;font-size:20px;margin-top:auto}
.woocommerce ul.products li.product .price del{color:var(--muted)}
.woocommerce ul.products li.product .price ins{text-decoration:none}
.woocommerce-price-suffix{font-size:12px;font-weight:400;color:var(--muted)}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link{display:flex;flex-direction:column;gap:10px;flex:1;color:inherit}
.woocommerce ul.products li.product .quantity{align-self:flex-start}
.woocommerce ul.products li.product .woocommerce-loop-product__title{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;min-height:5.2em}
.woocommerce ul.products li.product input:not([type=hidden]):not([type=submit]):not([type=button]){width:76px!important;align-self:flex-start;padding:8px 10px}
.woocommerce ul.products li.product .button{margin:0;display:block}
.woocommerce span.onsale{background:var(--red);color:#fff;border-radius:999px;min-height:0;min-width:0;padding:4px 12px;line-height:1.4;top:12px;left:12px;right:auto}
.woocommerce .woocommerce-result-count{color:var(--muted);font-size:14px;margin:0 0 16px}
.woocommerce .woocommerce-ordering{float:right;margin:0 0 24px}
.woocommerce div.product .product_title{font-size:34px}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--red);font-size:24px;font-weight:600}
.woocommerce-message,.woocommerce-info{border-top-color:var(--red)}
.woocommerce-message::before,.woocommerce-info::before{color:var(--red)}
/* schermi piccoli */
@media(max-width:900px){
.w{padding:0 20px}
.home-top,.news,.split,.contact,.two{grid-template-columns:1fr}
.tiles,.g3{grid-template-columns:repeat(2,1fr)}
.home-copy h1,.page-title,.band h1{font-size:34px}
.brand img{height:72px}
}
@media(max-width:900px){.nav .sub-menu{display:none!important}}
@media(max-width:520px){.tiles,.g3{grid-template-columns:1fr}.small .thumb,.small .ph{width:90px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* navigazione nelle sezioni */
.section-nav{margin:0 0 20px}
.crumbs{margin:0 0 12px;font-size:14px;font-weight:600}
.crumbs a{color:var(--red)}
.crumbs a:hover{text-decoration:underline}
.chip{display:inline-block}
