/*
Theme Name: Beex
Theme URI: https://www.beex.ch
Description: Tema di Beex SA – child theme leggero di Twenty Twenty-Five, con colori, font e modelli di pagina (Home, Soluzioni, Chi siamo, Contatto).
Author: Beex SA
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: beex
*/

/* ---------- base ---------- */
.beex-main { margin-block: 0 !important; }
.beex-main .wp-block-post-content > .alignfull { margin-block: 0 !important; }
.beex-main .wp-block-post-content > .alignfull + .alignfull { margin-top: 0 !important; }
.beex-stack > * { margin-block: 0 !important; }
.beex-stack { display: flex; flex-direction: column; gap: 24px; }

.beex-stack:has(> .beex-sol-row) { gap: 0; margin-top: 56px !important; }
.beex-section > .beex-grid,
.beex-section > .wp-block-buttons,
.beex-section > .beex-table { margin-top: 48px !important; }
.beex-section > .wp-block-heading + .beex-grid { margin-top: 56px !important; }

/* ---------- sections ---------- */
.beex-section { padding-block: clamp(56px, 8vw, 104px); }
.beex-section.is-white { background: #FFFFFF; border-block: 1px solid #D9D5CA; }
.beex-section.is-dark { background: #15171B; color: #F3F1EA; }
.beex-section.is-dark h1, .beex-section.is-dark h2, .beex-section.is-dark h3 { color: #F3F1EA; }
.beex-section.is-dark p { color: #C9CCD1; }
.beex-section.no-top { padding-top: 0; }

/* ---------- type ---------- */
.beex-label { font-family: var(--wp--preset--font-family--mono); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #4A4F57; line-height: 1.4; margin: 0; }
.beex-h1 { font-size: clamp(44px, 6vw, 84px) !important; line-height: .98 !important; letter-spacing: -.035em !important; margin: 0; }
.beex-h2 { font-size: clamp(32px, 4vw, 52px) !important; margin: 0; }
.beex-h3 { font-size: clamp(23px, 2.2vw, 28px) !important; line-height: 1.15 !important; letter-spacing: -.02em !important; margin: 0; }
.beex-lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: #3A3E45; }
.beex-intro { font-size: clamp(16px, 1.4vw, 18px); color: #3A3E45; }

/* ---------- columns ---------- */
.beex-cols { gap: clamp(32px, 5vw, 80px) !important; margin: 0; }
.beex-cols.is-center { align-items: center !important; }
.beex-cols.is-bottom { align-items: flex-end !important; }
.beex-cols > .wp-block-column > * { margin-block: 0; }
.beex-cols > .wp-block-column { display: flex; flex-direction: column; gap: 20px; }

/* ---------- buttons ---------- */
.beex-buttons { gap: 16px; }
.wp-block-button.beex-btn-dark .wp-block-button__link { background: #15171B; color: #F3F1EA; }
.wp-block-button.beex-btn-accent .wp-block-button__link { background: #E3A117; color: #15171B; }
.wp-block-button.beex-btn-outline .wp-block-button__link { background: transparent; color: #15171B; border: 2px solid #15171B; padding: 14px 26px; }
.wp-block-button.beex-btn-dark .wp-block-button__link:hover,
.wp-block-button.beex-btn-outline .wp-block-button__link:hover { background: #E3A117; color: #15171B; border-color: #E3A117; }
.wp-block-button.beex-btn-accent .wp-block-button__link:hover { background: #F3F1EA; color: #15171B; }

/* ---------- grids & cards ---------- */
.beex-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.beex-grid > * { margin: 0 !important; }
.beex-grid.is-wide-gap { gap: 48px; }
@media (max-width: 900px) { .beex-grid { grid-template-columns: 1fr; } }

.beex-card { border: 2px solid #15171B; border-radius: 6px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.beex-card > * { margin: 0 !important; }
.beex-card p { font-size: 16px; color: #3A3E45; }
.beex-card.is-dark { background: #15171B; color: #F3F1EA; }
.beex-card.is-dark h3 { color: #F3F1EA; }
.beex-card.is-dark p { color: #C9CCD1; }
.beex-card.is-dark .beex-label { color: #E3A117; }

.beex-list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid #D9D5CA; font-size: 15px; line-height: 1.45; }
.beex-list li { padding: 5px 0; margin: 0; }
.beex-card.is-dark .beex-list { border-top-color: #3A3E45; }
.beex-list.is-columns { border-top: 0; padding: 0 0 0 18px; list-style: disc; columns: 2; column-gap: 32px; font-size: 16px; }
@media (max-width: 700px) { .beex-list.is-columns { columns: 1; } }

/* ---------- steps / values ---------- */
.beex-step { border-top: 2px solid #15171B; padding-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.beex-step > * { margin: 0 !important; }
.beex-num { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: #E3A117; -webkit-text-stroke: 1.5px #15171B; margin: 0; }

/* ---------- accent band ---------- */
.beex-band { background: #E3A117; border-radius: 6px; padding: clamp(32px, 5vw, 72px) clamp(24px, 4.5vw, 64px); }
.beex-band .beex-label, .beex-band p, .beex-band h2 { color: #15171B; }
.beex-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.beex-chips span { padding: 8px 14px; border: 2px solid #15171B; border-radius: 999px; font-family: var(--wp--preset--font-family--mono); font-size: 14px; }

/* ---------- soluzioni page ---------- */
.beex-sol-row { border-top: 2px solid #15171B; padding-block: clamp(32px, 4vw, 48px) !important; margin: 0 !important; }
.beex-sol-row.is-last { border-bottom: 2px solid #15171B; }
.beex-question { padding: 16px 20px; background: #FFFFFF; border: 1px solid #D9D5CA; border-radius: 4px; font-size: 16px; line-height: 1.5; margin: 0; }
.beex-question strong { font-family: var(--wp--preset--font-family--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: #4A4F57; margin-right: 10px; }
.beex-table { overflow-x: auto; }
.beex-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 17px; line-height: 1.5; }
.beex-table th, .beex-table td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid #D9D5CA; }
.beex-table thead th { font-family: var(--wp--preset--font-family--display); font-size: 26px; font-weight: 700; border-bottom: 2px solid #15171B; }
.beex-table td { color: #3A3E45; }
.beex-table tbody th { font-weight: 600; }

/* ---------- chi siamo ---------- */
.beex-photo { height: 360px; display: flex; align-items: center; justify-content: center; background: #E6E2D7; border: 1px dashed #A8A396; border-radius: 6px; font-family: var(--wp--preset--font-family--mono); font-size: 14px; color: #4A4F57; }
.beex-person > * { margin: 0 !important; }
.beex-person { display: flex; flex-direction: column; gap: 14px; }

/* ---------- contatto ---------- */
.beex-contact-info { border-top: 2px solid #15171B; padding-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.beex-contact-info > * { margin: 0 !important; }
.beex-contact-info .beex-value { font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; line-height: 1.45; margin: 4px 0 0; }
.beex-form-box { background: #FFFFFF; border: 2px solid #15171B; border-radius: 6px; padding: clamp(20px, 3vw, 40px); }
.beex-form-placeholder { min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background: #FAF9F5; border: 1px dashed #A8A396; border-radius: 4px; color: #4A4F57; }
.beex-map iframe { width: 100%; height: 420px; border: 0; border-radius: 6px; display: block; }

/* ---------- hero art ---------- */
.beex-hexart svg { width: 100%; max-width: 480px; height: auto; display: block; margin-left: auto; }
@media (max-width: 781px) { .beex-hexart { display: none; } }

/* ---------- header ---------- */
.beex-header { border-bottom: 1px solid #D9D5CA; padding-block: 18px; }
.beex-header-inner { display: flex !important; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: nowrap; }
.beex-header-inner > * { margin: 0 !important; }
.beex-logo a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #15171B; }
.beex-logo span { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
.beex-nav { font-size: 16px; font-weight: 500; gap: 32px; }
.beex-nav a { text-decoration: none; }
.beex-nav .current-menu-item > a { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; font-weight: 600; }
.beex-header .beex-btn-dark .wp-block-button__link { padding: 12px 22px; font-size: 16px; }
@media (max-width: 781px) { .beex-header .beex-buttons { display: none; } }

/* ---------- footer ---------- */
.beex-footer { background: #15171B; color: #B8BCC2; padding-block: 40px; }
.beex-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; font-size: 15px; line-height: 1.6; }
.beex-footer .beex-logo a { color: #F3F1EA; }
.beex-footer .beex-logo span { font-size: 22px; }
.beex-footer a { color: #B8BCC2; }
.beex-footer a:hover { color: #E3A117; }
.beex-footer-links { display: flex; gap: 24px; }
