/* Restyling SECOSOL Padova - staging */
:root {
  --plantari-blue: #2f6784;
  --plantari-blue-dark: #183f55;
  --plantari-blue-soft: #eaf4f8;
  --plantari-pink: #c51f68;
  --plantari-pink-dark: #98184f;
  --plantari-pink-soft: #fff0f6;
  --plantari-ink: #172934;
  --plantari-muted: #526671;
  --plantari-surface: #f5f9fb;
  --plantari-border: #d8e5eb;
  --plantari-white: #fff;
  --plantari-radius: 24px;
  --plantari-shadow: 0 18px 48px rgba(28, 70, 92, 0.12);
  --plantari-shadow-soft: 0 10px 30px rgba(28, 70, 92, 0.08);
}

html { scroll-behavior: smooth; }
body { color: var(--plantari-ink); }
main.wp-block-group { overflow: hidden; padding-top: 0 !important; padding-bottom: 0 !important; }
.entry-content { margin-top: 0; }
.entry-content > * { margin-block-start: 0; }

.plantari-section,
.plantari-page-hero { padding: clamp(52px, 6vw, 84px) clamp(20px, 4vw, 44px) !important; }
.plantari-section--tint { background: var(--plantari-surface); }
.plantari-section-intro { max-width: 780px; margin-right: auto !important; margin-bottom: clamp(28px, 4vw, 44px) !important; margin-left: auto !important; text-align: center; }
.plantari-section-intro:only-child { margin-bottom: 0 !important; }
.plantari-benefits,
.plantari-paths { background: var(--plantari-surface); }
.plantari-eyebrow { margin-bottom: 14px !important; color: var(--plantari-pink); font-size: .78rem; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.plantari-lead { color: var(--plantari-muted); font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.7; }
.plantari-section h2,
.plantari-page-hero h1 { color: var(--plantari-ink); letter-spacing: -.04em; line-height: 1.06; }
.plantari-section h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.plantari-section h3 { color: var(--plantari-ink); }
.plantari-section p,
.plantari-page-hero p,
.plantari-section li { line-height: 1.72; }

/* Header */
header.wp-block-template-part { position: relative; z-index: 30; margin: 0; background: var(--plantari-white); }
.plantari-topbar { padding: 9px clamp(18px, 4vw, 44px) !important; background: var(--plantari-blue-dark); color: var(--plantari-white); font-size: .82rem; font-weight: 650; letter-spacing: .02em; }
.plantari-topbar p { margin: 0; }
.plantari-topbar a { color: inherit; text-decoration: none; }
.plantari-header-main { padding: 18px clamp(18px, 4vw, 44px) !important; border-bottom: 1px solid rgba(23, 41, 52, .08); background: var(--plantari-white); box-shadow: 0 8px 24px rgba(23, 41, 52, .05); }
.plantari-header-main > .wp-block-group { gap: clamp(18px, 3vw, 40px); }
.plantari-header-logo { flex: 0 1 285px; margin: 0; }
.plantari-header-logo img { display: block; width: min(285px, 58vw) !important; height: auto; }
.plantari-navigation .wp-block-navigation-item__content { color: var(--plantari-ink); font-size: .92rem; font-weight: 700; text-decoration: none; transition: color 180ms ease; }
.plantari-navigation .wp-block-navigation-item__content:hover,
.plantari-navigation .wp-block-navigation-item__content:focus-visible { color: var(--plantari-pink); }

/* Buttons */
.wp-element-button,
.wp-block-button__link { border: 2px solid var(--plantari-blue) !important; border-radius: 999px !important; padding: 12px 23px !important; background: var(--plantari-blue) !important; color: var(--plantari-white) !important; font-weight: 750; line-height: 1.2; text-decoration: none !important; box-shadow: 0 8px 22px rgba(47, 103, 132, .2); transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.wp-element-button:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible { border-color: var(--plantari-pink) !important; background: var(--plantari-pink) !important; color: var(--plantari-white) !important; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(197, 31, 104, .24); }
.wp-block-button.is-style-outline .wp-block-button__link { border-color: var(--plantari-blue) !important; background: transparent !important; color: var(--plantari-blue-dark) !important; box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible { border-color: var(--plantari-pink) !important; background: var(--plantari-pink) !important; color: var(--plantari-white) !important; }

/* Heroes */
.plantari-hero,
.plantari-page-hero { position: relative; background: radial-gradient(circle at 85% 20%, rgba(197, 31, 104, .10), transparent 28%), linear-gradient(135deg, #fff 0%, #fff 55%, var(--plantari-blue-soft) 100%); }
.plantari-hero { padding: clamp(58px, 7vw, 96px) clamp(20px, 4vw, 44px) 0 !important; }
.plantari-hero-columns { align-items: center !important; gap: clamp(38px, 6vw, 80px); }
.plantari-hero h1,
.plantari-page-hero h1 { max-width: 980px; margin-bottom: 24px; font-size: clamp(2.55rem, 5.4vw, 4.8rem); }
.plantari-hero p:not(.plantari-eyebrow),
.plantari-page-hero > .wp-block-group > p:not(.plantari-eyebrow) { max-width: 760px; }
.plantari-hero-actions { gap: 12px; margin-top: 28px; }
.plantari-hero-image { position: relative; margin: 0; }
.plantari-hero-image::after { position: absolute; inset: 16px -16px -16px 16px; z-index: -1; border-radius: 30px; background: var(--plantari-pink); opacity: .12; content: ""; }
.plantari-hero-image img { border: 1px solid rgba(47, 103, 132, .12); border-radius: 30px; box-shadow: var(--plantari-shadow); }
.plantari-trustbar { position: relative; z-index: 2; gap: 0 !important; margin-top: clamp(46px, 6vw, 74px) !important; border: 1px solid var(--plantari-border); border-radius: 18px 18px 0 0; background: var(--plantari-white); box-shadow: var(--plantari-shadow-soft); }
.plantari-trustbar p { position: relative; margin: 0; padding: 18px clamp(22px, 4vw, 54px); color: var(--plantari-blue-dark) !important; text-align: center; }
.plantari-trustbar p + p::before { position: absolute; top: 22%; bottom: 22%; left: 0; width: 1px; background: var(--plantari-border); content: ""; }
.plantari-page-hero { min-height: 420px; display: flex; align-items: center; }
.plantari-page-hero > .wp-block-group { width: 100%; }
.plantari-page-hero .plantari-lead { max-width: 850px; }

/* Cards and grids */
.plantari-card-grid,
.plantari-technical-grid,
.plantari-path-grid,
.plantari-option-grid,
.plantari-contact-grid,
.plantari-footer-grid,
.plantari-benefit-list { align-items: stretch !important; gap: clamp(20px, 3vw, 30px); }
.plantari-card,
.plantari-technical-card,
.plantari-path-card,
.plantari-option-card,
.plantari-contact-card,
.plantari-contact-form,
.plantari-stat-card,
.plantari-step-card { border: 1px solid var(--plantari-border); border-radius: var(--plantari-radius); background: var(--plantari-white); box-shadow: var(--plantari-shadow-soft); }
.plantari-card { overflow: hidden; }
.plantari-card figure { margin: 0; }
.plantari-card figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 320ms ease; }
.plantari-card:hover figure img { transform: scale(1.025); }
.plantari-card > h3,
.plantari-card > p,
.plantari-card--text,
.plantari-technical-card,
.plantari-path-card,
.plantari-option-card,
.plantari-contact-card,
.plantari-contact-form,
.plantari-stat-card,
.plantari-step-card { padding-right: clamp(24px, 3vw, 34px); padding-left: clamp(24px, 3vw, 34px); }
.plantari-card > h3 { margin-top: 28px; }
.plantari-card > p:last-child { padding-bottom: 32px; }
.plantari-card--text,
.plantari-technical-card,
.plantari-option-card,
.plantari-contact-card,
.plantari-contact-form,
.plantari-stat-card,
.plantari-step-card { padding-top: clamp(26px, 4vw, 38px); padding-bottom: clamp(26px, 4vw, 38px); }
.plantari-path-card { display: flex; flex-direction: column; padding-top: 34px; padding-bottom: 34px; }
.plantari-path-card figure { margin: 0 0 18px; }
.plantari-path-card .wp-block-buttons { margin-top: auto; padding-top: 20px; }
.plantari-card-number { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin: 0 0 22px !important; border-radius: 50%; background: var(--plantari-pink-soft); color: var(--plantari-pink) !important; font-size: .85rem; font-weight: 850; line-height: 1; }
.plantari-technical-card h3,
.plantari-option-card h3,
.plantari-step-card h3 { margin-top: 0; }
.plantari-check-list { list-style: none; padding-left: 0; }
.plantari-check-list li { position: relative; padding: 8px 0 8px 30px; }
.plantari-check-list li::before { position: absolute; top: 11px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--plantari-blue-soft); color: var(--plantari-blue-dark); content: "✓"; font-size: .76rem; font-weight: 900; line-height: 20px; text-align: center; }
.plantari-split { gap: clamp(38px, 7vw, 90px); }
.plantari-split--center { align-items: center !important; }
.plantari-step-card + .plantari-step-card { margin-top: 18px; }
.plantari-warning,
.plantari-esd-callout { margin-top: clamp(34px, 5vw, 56px) !important; padding: clamp(26px, 4vw, 42px) !important; border-radius: var(--plantari-radius); }
.plantari-warning { border-left: 6px solid var(--plantari-pink); background: var(--plantari-pink-soft); }
.plantari-esd-callout { border: 1px solid rgba(47, 103, 132, .22); background: var(--plantari-blue-soft); }
.plantari-warning h3,
.plantari-esd-callout h3 { margin-top: 0; }
.plantari-related-link a { color: var(--plantari-blue-dark); font-weight: 750; text-underline-offset: 3px; }
.plantari-stat-card { background: var(--plantari-blue-dark); color: var(--plantari-white); }
.plantari-stat { margin: 0 0 12px !important; color: var(--plantari-white) !important; font-size: clamp(3.5rem, 8vw, 6.5rem); font-weight: 850; letter-spacing: -.07em; line-height: .95 !important; }
.plantari-cta-band { background: var(--plantari-blue-dark); color: var(--plantari-white); text-align: center; }
.plantari-cta-band h2,
.plantari-cta-band p { color: var(--plantari-white); }
.plantari-cta-band > .wp-block-group { max-width: 860px; }
.plantari-cta-band .wp-block-buttons { justify-content: center; margin-top: 28px; }
.plantari-cta-band .wp-element-button { border-color: var(--plantari-white) !important; background: var(--plantari-white) !important; color: var(--plantari-blue-dark) !important; }

/* Contact */
.plantari-contact-section { background: var(--plantari-surface); }
.plantari-contact-grid > .wp-block-column:first-child { flex-basis: 36%; }
.plantari-contact-grid > .wp-block-column:last-child { flex-basis: 64%; }
.plantari-contact-card a:not(.wp-element-button) { color: var(--plantari-blue-dark); font-weight: 750; }
.plantari-contact-form iframe { max-width: 100%; }

.plantari-native-form { margin-top: 30px; }
.plantari-form-grid,
.plantari-company-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.plantari-company-fields[hidden] { display: none !important; }
.plantari-company-fields { margin-top: 22px; padding: 24px; border: 1px solid var(--plantari-border); border-radius: 18px; background: var(--plantari-surface); }
.plantari-form-field { display: flex; flex-direction: column; gap: 8px; }
.plantari-form-field label { color: var(--plantari-ink); font-size: .92rem; font-weight: 750; line-height: 1.45; }
.plantari-form-field label > span[aria-hidden="true"] { color: var(--plantari-pink); }
.plantari-form-optional { color: var(--plantari-muted); font-size: .78rem; font-weight: 500; }
.plantari-native-form input[type="text"],
.plantari-native-form input[type="email"],
.plantari-native-form input[type="tel"],
.plantari-native-form input[type="number"],
.plantari-native-form select { width: 100%; min-height: 50px; box-sizing: border-box; border: 1px solid #b9cdd7; border-radius: 12px; padding: 11px 14px; background: var(--plantari-white); color: var(--plantari-ink); font: inherit; transition: border-color 180ms ease, box-shadow 180ms ease; }
.plantari-native-form input:focus,
.plantari-native-form select:focus { border-color: var(--plantari-blue); outline: none; box-shadow: 0 0 0 4px rgba(47, 103, 132, .14); }
.plantari-form-field--checkbox { display: grid; grid-template-columns: 22px 1fr; align-items: start; margin-top: 24px; }
.plantari-form-field--checkbox input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--plantari-blue); }
.plantari-form-field--checkbox label { font-weight: 500; }
.plantari-form-field--checkbox a { color: var(--plantari-blue-dark); font-weight: 750; }
.plantari-form-required { margin: 16px 0 20px; color: var(--plantari-muted); font-size: .82rem; }
.plantari-form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.plantari-form-notice { margin-bottom: 24px; padding: 16px 18px; border-radius: 12px; font-weight: 650; line-height: 1.55; }
.plantari-form-notice--success { border: 1px solid #8ac2a0; background: #edf9f1; color: #174d2a; }
.plantari-form-notice--error { border: 1px solid #e0a1b9; background: var(--plantari-pink-soft); color: #76143e; }
.plantari-form-notice a { color: inherit; font-weight: 800; }

/* Footer */
footer.wp-block-template-part { margin-top: 0; }
.plantari-footer { padding: 0 clamp(20px, 4vw, 44px) 28px !important; background: #102f40; color: rgba(255, 255, 255, .82); }
.plantari-footer a:not(.wp-element-button) { color: var(--plantari-white); text-underline-offset: 3px; }
.plantari-footer h2,
.plantari-footer h3,
.plantari-footer strong { color: var(--plantari-white); }
.plantari-footer-cta { position: relative; top: -1px; gap: 28px; padding: clamp(38px, 5vw, 58px) 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.plantari-footer-cta h2 { margin: 0 0 8px; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.plantari-footer-cta p { margin: 0; }
.plantari-footer-cta .wp-element-button { border-color: var(--plantari-white) !important; background: var(--plantari-white) !important; color: var(--plantari-blue-dark) !important; }
.plantari-footer-grid { padding: clamp(44px, 6vw, 72px) 0; }
.plantari-footer-logo { margin: 0 0 22px; }
.plantari-footer-logo img { max-width: min(285px, 100%); height: auto; padding: 12px; border-radius: 10px; background: var(--plantari-white); }
.plantari-footer-links { list-style: none; padding-left: 0; }
.plantari-footer-links li { padding: 5px 0; }
.plantari-footer-bottom { gap: 18px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .82rem; }
.plantari-footer-bottom p { margin: 0; }

@media (max-width: 960px) {
  .plantari-header-main > .wp-block-group { justify-content: center !important; }
  .plantari-header-cta { display: none !important; }
}

@media (max-width: 781px) {
  .plantari-topbar > .wp-block-group { justify-content: center !important; text-align: center; }
  .plantari-topbar p:last-child { display: none; }
  .plantari-header-main > .wp-block-group { flex-wrap: nowrap !important; justify-content: space-between !important; }
  .plantari-header-logo { flex-basis: auto; }
  .plantari-header-logo img { width: min(235px, 62vw) !important; }
  .plantari-navigation .wp-block-navigation__responsive-container-open { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; }
  .plantari-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { min-height: 44px; align-items: center; padding: 6px 0; }
  .plantari-section,
  .plantari-page-hero,
  .plantari-hero { padding-right: 20px !important; padding-left: 20px !important; }
  .plantari-section:not(.plantari-hero),
  .plantari-page-hero { padding-top: 48px !important; padding-bottom: 48px !important; }
  .plantari-page-hero { min-height: 0; }
  .plantari-hero h1 { font-size: clamp(2.2rem, 9.5vw, 2.8rem); }
  .plantari-page-hero h1 { font-size: clamp(2.25rem, 10vw, 3rem); }
  .plantari-section p:not(.plantari-eyebrow):not(.plantari-card-number):not(.plantari-stat):not(.plantari-form-required),
  .plantari-section li,
  .plantari-page-hero p:not(.plantari-eyebrow) { font-size: 1rem; line-height: 1.65; }
  .plantari-hero-image::after { inset: 10px -10px -10px 10px; }
  .plantari-trustbar { flex-direction: column; align-items: stretch !important; }
  .plantari-trustbar p + p::before { top: 0; right: 18%; bottom: auto; left: 18%; width: auto; height: 1px; }
  .plantari-section-intro { text-align: left; }
  .plantari-contact-grid > .wp-block-column { flex-basis: 100% !important; }
  .plantari-form-grid,
  .plantari-company-fields { grid-template-columns: 1fr; }
  .plantari-form-field label,
  .plantari-native-form input,
  .plantari-native-form select { font-size: 16px !important; }
  .plantari-footer-cta,
  .plantari-footer-bottom { justify-content: flex-start !important; }
  .plantari-footer p,
  .plantari-footer li { font-size: 1rem; line-height: 1.65; }
  .plantari-footer-bottom p { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
