/*
Theme Name: Porter Good Stuff
Theme URI: https://porter.menu
Author: Porter
Description: Tema a blocchi per Porter – birreria con birra artigianale e cucina, Limbiate.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: porter
*/

html { scroll-behavior: smooth; }
:where(section[id], .wp-block-group[id]) { scroll-margin-top: 90px; }

.porter-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); }
body.admin-bar .porter-header { top: 32px; }

.porter-kicker { letter-spacing: .42em; text-transform: uppercase; }
.porter-rule { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.porter-rule::before, .porter-rule::after { content: ""; height: 2px; width: 56px; background: currentColor; opacity: .7; }

.porter-hero { position: relative; overflow: hidden; }
.porter-hero h1 { line-height: .9; }

.porter-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px dashed color-mix(in srgb, currentColor 28%, transparent); padding: .8rem 0; margin: 0 !important; }
.porter-row:last-child { border-bottom: 0; }
.porter-row em { font-style: normal; opacity: .65; font-weight: 400; }
.porter-row > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .porter-row { flex-direction: column; gap: .15rem; } }
.porter-hours p { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(243,236,224,.14); padding: .55rem 0; margin: 0 !important; }

.wp-block-button__link { transition: transform .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }

.wp-block-post-content > .wp-block-group { margin-block: 0; }

/* Modulo prenotazioni */
.porter-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.porter-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.porter-form label { display: grid; gap: .35rem; font-size: .875rem; font-weight: 500; letter-spacing: .02em; }
.porter-form label span { font-weight: 400; opacity: .6; }
.porter-form input:not([type=checkbox]), .porter-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--wp--preset--color--cream);
  background: var(--wp--preset--color--ink); border: 1px solid #3a3e48; border-radius: 2px; padding: .75rem .85rem; color-scheme: dark;
}
.porter-form input:focus, .porter-form textarea:focus { outline: 2px solid var(--wp--preset--color--amber); outline-offset: 1px; border-color: transparent; }
.porter-form .porter-check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.porter-form .porter-check input { margin-top: .25rem; accent-color: var(--wp--preset--color--amber); }
.porter-form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.porter-form button { cursor: pointer; border: 0; }
.porter-form button.is-whatsapp { background: #25d366; color: #0b2e17; }
.porter-form-note { font-size: .8rem; opacity: .6; margin: 0; }
.porter-hp { position: absolute !important; left: -9999px; }
.porter-notice { padding: 1rem 1.2rem; border-radius: 2px; margin-top: 1rem; }
.porter-notice.is-ok { background: rgba(37,211,102,.12); border: 1px solid #25d366; }
.porter-notice.is-error { background: rgba(164,71,44,.18); border: 1px solid var(--wp--preset--color--copper); }
@media (max-width: 600px) { .porter-form-grid { grid-template-columns: 1fr; } }

@media (max-width: 781px) {
  .porter-hide-mobile { display: none !important; }
}
