/*
Theme Name: Buon Gusto Elegante
Theme URI: https://buongustoebenessere.it/
Author: Redazione Buon Gusto e Benessere
Description: Magazine editoriale gastronomico bordeaux, nero e oro, tema indipendente per Buon Gusto e Benessere.
Version: 1.0.1
Requires PHP: 8.1
Text Domain: buon-gusto-elegante
*/
:root{--wine:#570b20;--ink:#171513;--gold:#d4ad60;--ivory:#faf5ed;--muted:#766e67}*{box-sizing:border-box}body{margin:0;background:var(--ivory);color:var(--ink);font-family:Georgia,'Times New Roman',serif}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}h1,h2,h3,p{overflow-wrap:break-word}.container{max-width:1320px;margin:auto;padding:0 23px}.masthead{background:linear-gradient(110deg,#3e0918,#730d28);color:white;border-bottom:2px solid var(--gold)}.masthead-inner{min-height:104px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-size:clamp(25px,3.4vw,48px);line-height:1.05;font-weight:700;color:white}.brand span{color:var(--gold)}.tagline{max-width:270px;font-style:italic;font-size:17px;color:#f1dcb7}.nav{background:var(--ink);color:#fff}.nav-inner{display:flex;align-items:center;gap:27px;overflow-x:auto;white-space:nowrap;min-height:52px}.nav a{font:600 14px Arial,sans-serif}.nav a:hover,.nav a:focus{color:var(--gold)}.nav .search{margin-left:auto}.hero{display:grid;grid-template-columns:1.8fr 1fr;gap:16px;margin-top:24px}.hero-feature{position:relative;background:#25151b;min-height:420px;overflow:hidden;border-radius:10px;color:white;display:flex;align-items:end}.hero-feature>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-feature:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.1))}.hero-copy{position:relative;z-index:1;width:min(520px,85%);padding:36px}.hero h1{font-size:clamp(29px,4vw,56px);line-height:1.08;margin:13px 0}.kicker{background:var(--wine);padding:5px 10px;font:bold 12px Arial,sans-serif;color:white;border-radius:3px;display:inline-block}.gold-button{display:inline-block;background:var(--gold);color:#24130e;font:bold 14px Arial,sans-serif;padding:13px 20px;border-radius:25px;margin-top:12px}.hero-list{display:grid;gap:12px}.hero-small{display:grid;grid-template-columns:42% 1fr;gap:12px;background:white;border-radius:10px;overflow:hidden;min-height:132px}.hero-small img{width:100%;height:100%;max-height:160px;object-fit:cover}.hero-small .details{padding:15px 12px 12px 0}.hero-small h3{font-size:clamp(16px,1.7vw,23px);margin:9px 0;line-height:1.16}.categories{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid var(--gold);margin:23px 0 29px;text-align:center;gap:10px}.categories a{padding:14px 4px;font-size:15px;font-weight:bold}.categories a:hover{color:var(--wine)}.section-title{font-size:clamp(25px,2.6vw,37px);color:var(--wine);margin:25px 0 17px;border-bottom:1px solid #d7c2a9;padding-bottom:8px}.home-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:24px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.story{background:white;border-radius:9px;overflow:hidden;box-shadow:0 2px 9px #2c17141a}.story .story-image{width:100%;aspect-ratio:4/3;object-fit:cover;background:#e9e2dc;display:block}.story-body{padding:14px}.story h3{font-size:20px;line-height:1.18;margin:8px 0}.meta{color:var(--muted);font:12px Arial,sans-serif}.side-box{background:white;border-radius:9px;overflow:hidden;margin-bottom:17px;box-shadow:0 2px 8px #2c17141a}.side-box h2{background:var(--wine);color:white;margin:0;font-size:20px;padding:12px 15px}.side-box .side-story{display:grid;grid-template-columns:38% 1fr;gap:12px;padding:12px}.side-box img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:5px}.side-story h3{font-size:17px;margin:0}.category-section{margin:35px 0}.category-section .cards{grid-template-columns:repeat(4,minmax(0,1fr))}.content-wrap{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(220px,1fr);gap:38px;padding-top:36px;padding-bottom:60px}.article{background:white;padding:35px;border-radius:8px}.article h1{font-size:clamp(30px,4vw,53px);line-height:1.12;margin:12px 0}.article .featured{width:100%;max-height:540px;object-fit:cover;border-radius:8px}.entry{font-size:19px;line-height:1.8}.entry h2{color:var(--wine);font-size:29px;line-height:1.2;margin-top:36px}.entry a{text-decoration:underline;color:var(--wine)}.listing{padding-top:34px;padding-bottom:60px}.listing .cards{grid-template-columns:repeat(4,minmax(0,1fr))}.pagination{margin:30px 0}.pagination a,.pagination span{display:inline-block;padding:8px 13px;background:#fff;margin:3px}.pagination .current{background:var(--wine);color:#fff}.footer{background:var(--ink);color:#eee;padding:36px 0;margin-top:45px;font:14px Arial,sans-serif}.footer-inner{display:flex;justify-content:space-between;gap:22px;flex-wrap:wrap}.footer a{margin-right:18px;color:#e7c688}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.empty-img{display:block;width:100%;aspect-ratio:4/3;background:linear-gradient(140deg,#5d182e,#d4ad60)}@media(max-width:950px){.hero{grid-template-columns:1fr}.hero-feature{min-height:390px}.hero-list{grid-template-columns:repeat(3,1fr)}.hero-small{grid-template-columns:1fr}.hero-small img{height:115px}.hero-small .details{padding:10px}.home-main{grid-template-columns:1fr}.categories{grid-template-columns:repeat(4,1fr)}.category-section .cards,.listing .cards{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){.container{padding:0 14px}.masthead-inner{min-height:90px}.tagline{display:none}.brand{font-size:29px}.hero-feature{min-height:350px}.hero-copy{padding:23px;width:98%}.hero-small h3{font-size:15px}.hero-list{gap:8px}.categories{grid-template-columns:repeat(3,1fr);gap:0}.categories a{font-size:13px}.cards,.category-section .cards,.listing .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.story h3{font-size:16px}.story-body{padding:10px}.content-wrap{display:block}.article{padding:17px}.entry{font-size:17px}.footer-inner{display:block}}

.bgbe-search-form{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0 26px}.bgbe-search-form label{width:100%;font:600 15px Arial,sans-serif}.bgbe-search-form input{flex:1;min-width:160px;padding:13px;border:1px solid #c8b6a9;border-radius:5px;font-size:17px}.bgbe-search-form button{background:var(--wine);color:white;border:0;border-radius:5px;padding:14px 24px;cursor:pointer;font:600 15px Arial,sans-serif}.entry .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.entry .story h3{font-size:19px;margin:8px 0}.entry .story a{text-decoration:none;color:inherit}.entry .story a:hover{color:var(--wine)}@media(max-width:650px){.entry .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.bgbe-contact{display:grid;gap:15px;margin:24px 0}.bgbe-contact label{display:grid;gap:5px;font:600 15px Arial,sans-serif}.bgbe-contact input,.bgbe-contact select,.bgbe-contact textarea{width:100%;min-height:43px;border:1px solid #cbbcae;border-radius:5px;padding:11px;font:16px Arial,sans-serif;background:#fff;color:#222}.bgbe-contact button{background:var(--wine);color:#fff;padding:13px 23px;border:0;border-radius:5px;cursor:pointer;justify-self:start;font-weight:700}.bgbe-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.bgbe-contact small{font:13px Arial,sans-serif}

/* Contact form layout: scoped to its own page and resistant to generic editor styles. */
.entry form.bgbe-contact{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;max-width:720px;margin:28px 0;align-items:stretch}
.entry form.bgbe-contact>label{display:flex;flex-direction:column;gap:8px;margin:0;color:#281e1c;font:600 16px/1.45 Arial,sans-serif}
.entry form.bgbe-contact input:not([type=hidden]),.entry form.bgbe-contact select,.entry form.bgbe-contact textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:48px;padding:12px 14px;margin:0;border:1px solid #b9a8a0;border-radius:7px;background:#fff;color:#24191b;font:16px/1.4 Arial,sans-serif}
.entry form.bgbe-contact textarea{min-height:170px;resize:vertical}
.entry form.bgbe-contact input:focus-visible,.entry form.bgbe-contact select:focus-visible,.entry form.bgbe-contact textarea:focus-visible{outline:3px solid #c59d54;outline-offset:2px}
.entry form.bgbe-contact button[type=submit]{display:inline-flex;align-items:center;justify-content:center;justify-self:start;padding:13px 24px;min-height:48px;border:0;border-radius:7px;background:#570b20;color:#fff;font:700 16px Arial,sans-serif;cursor:pointer}
.entry form.bgbe-contact button[type=submit]:hover{background:#7b1431}
.entry form.bgbe-contact>p{margin:0;font:14px/1.6 Arial,sans-serif}
.entry form.bgbe-contact .bgbe-honeypot{display:none!important;position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:650px){.entry form.bgbe-contact{max-width:100%;gap:17px}.entry form.bgbe-contact button[type=submit]{width:100%}}
