/**
 * Styles that theme.json cannot express: block style variations and icon decorations.
 * Keep this file small — prefer theme.json.
 */

/* ---------------------------------------------------------------------------
 * Global guards: the page must never scroll horizontally on any device.
 * Root causes are fixed where they occur; `clip` is the safety net (unlike `hidden`,
 * it does not create a scroll container, so position: sticky keeps working).
 * ------------------------------------------------------------------------- */
html,
body {
	overflow-x: clip;
}
img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

/* Form fields are fluid (CF7 renders inputs with size="40", wider than small phones). */
.wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.wpcf7 textarea,
.wpcf7 select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}
.wpcf7-form-control-wrap {
	display: block;
	max-width: 100%;
}

/* List: red check bullets (product coverage lists). */
.is-style-check {
	list-style: none;
	padding-left: 0;
}
.is-style-check li {
	padding-left: 2rem;
	margin-bottom: 0.5rem;
	background: url(../images/redbullet.svg) no-repeat 0 0.25em / 1.1em;
}

/* List: contact rows with icons (phone / email / clock / address). */
.is-style-contacts {
	list-style: none;
	padding-left: 0;
}
.is-style-contacts li {
	padding-left: 2rem;
	margin-bottom: 0.75rem;
	background: url(../images/point.svg) no-repeat 0 0.2em / 1.2em;
}
.is-style-contacts li:is(.is-phone, :has(a[href^="tel:"])) { background-image: url(../images/phone.svg); }
.is-style-contacts li:is(.is-email, :has(a[href^="mailto:"])) { background-image: url(../images/email.svg); }
.is-style-contacts li.is-hours { background-image: url(../images/ic-clock.svg); }
.is-style-contacts li.is-address { background-image: url(../images/point.svg); }

/* Button: outline with arrow (old "sclink"). */
.wp-block-button.is-style-arrow .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 2px solid currentColor;
}
.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: "\2192";
	margin-left: 0.5em;
	transition: transform var(--wp--custom--transition);
	display: inline-block;
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after { transform: translateX(4px); }
/* Outline buttons are brand red (as on the legacy site), filling red on hover. */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--primary);
}

/* Group: card. */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: 0 4px 24px rgb(0 0 0 / 8%);
	padding: var(--wp--preset--spacing--40);
}

/* Heading: eyebrow. */
.is-style-eyebrow {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Quote: testimonial with red quote marks. */
.wp-block-quote.is-style-testimonial {
	border: 0;
	padding: 2.5rem 1rem 1rem;
	text-align: center;
	font-style: normal;
	background: url(../images/testemunho-inicio-red.svg) no-repeat center top / 2rem;
}
.wp-block-quote.is-style-testimonial cite {
	display: block;
	margin-top: 1rem;
	font-style: normal;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast);
}

/* Details (accordion) marker. */
.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	color: var(--wp--preset--color--primary);
}
.wp-block-details[open] summary::after { content: "\2212"; }


/* File block download buttons. */
.wp-block-file { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--wp--preset--color--surface); }

/* Heading: section title (uppercase, bold, black) — e.g. team departments. */
.is-style-section {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

/* Team page (template page-team): layout from docs/EQUIPA-F2F-SEGUROS.png. */
.f2f-team-page .wp-block-post-title {
	font-size: var(--wp--preset--font-size--x-large);
	margin-bottom: var(--wp--preset--spacing--40);
}
.f2f-team-intro {
	max-width: 46rem;
	color: var(--wp--preset--color--contrast);
}
.team-section {
	margin-top: var(--wp--preset--spacing--60);
}
.f2f-team-page .team-section {
	margin-top: var(--wp--preset--spacing--70);
}

/* ---------------------------------------------------------------------------
 * Header (patterns/header.php)
 * ------------------------------------------------------------------------- */

/* Menus: sentence case, dark text, red on hover. Top bar and main menu share one size (legacy). */
:root {
	--f2f-menu-size: clamp(0.95rem, 0.25rem + 0.85vw, 1.25rem);
}
.f2f-topbar .wp-block-navigation,
.f2f-mainbar .wp-block-navigation {
	color: var(--wp--preset--color--body);
}
.f2f-topbar .wp-block-navigation {
	font-size: var(--f2f-menu-size);
	gap: var(--wp--preset--spacing--30);
}
.f2f-mainbar .wp-block-navigation {
	color: var(--wp--preset--color--contrast);
	font-size: var(--f2f-menu-size);
}

/* Desktop: header content constrained like the legacy site (80% of the viewport, but wide enough
 * for the one-line menu at 1280px); top bar compact; menu row aligned with the social icons. */
@media (min-width: 1280px) {
	:is(.f2f-topbar, .f2f-mainbar) > .wp-block-group {
		max-width: max(80vw, 1180px);
	}
	.f2f-topbar {
		padding-block: 0.2rem !important;
	}
	.f2f-mainbar {
		padding-block: 0.6rem !important;
	}
	.f2f-mainbar > .wp-block-group {
		align-items: stretch;
	}
	.f2f-brand-nav.is-layout-flex {
		align-items: flex-end;
	}
	.f2f-brand-nav .f2f-logo {
		align-self: center;
	}
	.f2f-header-contact.is-layout-flex {
		justify-content: space-between;
	}
	/* Current page: red bar above the item (legacy), text stays dark. */
	.f2f-mainbar .menu-main .current-menu-item > .wp-block-navigation-item__content {
		color: var(--wp--preset--color--contrast);
		box-shadow: 0 -2px 0 var(--wp--preset--color--primary);
	}
}
/* One line on desktop (the design); below 1280px the overlay menu takes over. */
.f2f-mainbar .wp-block-navigation .wp-block-navigation__container {
	flex-wrap: nowrap;
	column-gap: clamp(0.55rem, 0.9vw, 1.4rem);
	white-space: nowrap;
}
:is(.f2f-topbar, .f2f-mainbar) .wp-block-navigation-item__content:hover,
:is(.f2f-topbar, .f2f-mainbar) .wp-block-navigation-item__content:focus-visible,
:is(.f2f-topbar, .f2f-mainbar) .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}

/* Logo: red tile with a soft drop shadow. */
.f2f-logo {
	flex-shrink: 0;
	margin: 0;
}
.f2f-logo img {
	display: block;
	filter: drop-shadow(0 4px 6px rgb(0 0 0 / 35%));
}

/* Brand + menu take the free space; contact column hugs the right edge. */
.f2f-brand-nav {
	flex: 1 1 auto;
	min-width: 0;
}
.f2f-header-contact {
	flex: 0 0 auto;
	align-items: flex-end;
}

/* Button: phone pill (icon + number + small caption). */
.wp-block-button.is-style-phone .wp-block-button__link {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0.2rem 0.75rem 0.15rem 2.1rem;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--primary) url(../images/whitephone.svg) no-repeat 0.7rem center / 1rem;
	color: var(--wp--preset--color--base);
	font-size: var(--f2f-menu-size);
	font-weight: 400;
	line-height: 1.1;
	white-space: nowrap;
}
.wp-block-button.is-style-phone .wp-block-button__link small {
	font-size: 0.7em;
	line-height: 1.2;
}
.wp-block-button.is-style-phone .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary-dark);
}

/* Social icons in the header: small dark grey circles (24px tap targets). */
.f2f-header-social.wp-block-social-links {
	gap: 0.75rem;
	margin: 0;
}

/* Laptop widths: slightly smaller logo so the one-line menu fits. */
@media (min-width: 1280px) and (max-width: 1599px) {
	.f2f-logo img {
		width: 80px !important;
	}
	.f2f-brand-nav {
		gap: var(--wp--preset--spacing--30) !important;
	}
}

/* Desktop menu (one line) from 1280px; below that the overlay menu (products + top-bar links). */
.f2f-mainbar .menu-mobile {
	display: none;
}
@media (max-width: 1279px) {
	.f2f-mainbar .menu-main {
		display: none;
	}
	.f2f-mainbar .menu-mobile {
		display: flex;
	}
}

/* Overlay menu: products first, institutional links below a divider, smaller. */
.menu-mobile .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--large);
}
.menu-mobile .is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container) {
	width: 100%;
}
.menu-mobile .is-menu-open .wp-block-navigation__container {
	gap: 0.6rem;
}
.menu-mobile .is-menu-open .wp-block-navigation-item {
	font-size: 1.2rem;
	color: var(--wp--preset--color--contrast);
}
.menu-mobile .is-menu-open .wp-block-navigation-item.is-secondary {
	font-size: 1rem;
	color: var(--wp--preset--color--body);
}
.menu-mobile .is-menu-open .wp-block-navigation-item:not(.is-secondary) + .is-secondary {
	align-self: stretch;
	margin-top: 0.75rem;
	padding-top: 1.1rem;
	border-top: 1px solid #ddd;
}
.menu-mobile .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}

/* Overlay-menu widths: logo left, then phone pill, then the menu button at the far right.
 * Unwrapping .f2f-brand-nav makes logo, menu and contact column siblings that can be reordered. */
@media (max-width: 1279px) {
	.f2f-mainbar .f2f-brand-nav.is-layout-flex {
		display: contents;
	}
	.f2f-mainbar .f2f-logo {
		order: 0;
	}
	.f2f-mainbar .f2f-header-contact {
		order: 1;
		margin-left: auto;
	}
	.f2f-mainbar .menu-mobile {
		order: 2;
		flex: 0 0 auto;
	}
	.f2f-mainbar .wp-block-navigation__responsive-container-open {
		padding: 0.4rem;
	}
	.f2f-mainbar .wp-block-navigation__responsive-container-open svg {
		width: 2rem;
		height: 2rem;
	}
}

/* Tablet / mobile: keep the phone pill, drop the social icons. */
@media (max-width: 1100px) {
	.f2f-topbar .wp-block-navigation {
		font-size: var(--wp--preset--font-size--small);
	}
	.f2f-header-social {
		display: none !important;
	}
}
@media (max-width: 600px) {
	/* Phones: the institutional links live in the overlay menu; the top bar keeps only the flag. */
	.f2f-topbar .menu-top {
		display: none;
	}
	.f2f-topbar > .wp-block-group {
		justify-content: flex-end;
	}
	.f2f-logo img {
		width: 64px !important;
	}
	.wp-block-button.is-style-phone .wp-block-button__link {
		padding-left: 2.3rem;
		font-size: var(--wp--preset--font-size--small);
	}
}

/* Heading: uppercase section title with a short red rule under the end of the word.
 * Shrink-wraps the text (display: table) so the rule can sit at its right end; constrained
 * layouts centre children with !important margins, so left-aligned ones are pinned back. */
.is-style-underline,
.f2f-form__title {
	display: table;
	color: var(--wp--preset--color--body);
}
.is-style-underline {
	font-size: var(--wp--preset--font-size--large);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.is-style-underline::after,
.f2f-form__title::after {
	content: "";
	display: block;
	width: 42%;
	min-width: 2rem;
	height: 2px;
	margin: 0.15em 0 0 auto;
	background: var(--wp--preset--color--primary);
}
.is-style-underline.has-text-align-center {
	margin-left: auto !important;
	margin-right: auto !important;
}
.is-style-underline:not(.has-text-align-center),
.f2f-form__title {
	margin-left: 0 !important;
}

/* Button: solid red rectangle (newsletter band). */
.wp-block-button.is-style-block-cta .wp-block-button__link {
	border-radius: 0;
	padding: 1.1rem 2.25rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	min-width: min(100%, 16rem);
}
.wp-block-button.is-style-block-cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-dark);
}

/* ---------------------------------------------------------------------------
 * News (patterns/latest-news.php): white cards with a red image block.
 * Desktop: image block on the left. Mobile: title, image bar, excerpt (stacked).
 * ------------------------------------------------------------------------- */
.f2f-news__list {
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30);
}
.f2f-news-card {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	grid-template-areas:
		"media date"
		"media title"
		"media excerpt";
	grid-template-rows: auto auto 1fr;
	column-gap: 0.5rem;
	height: 100%;
	padding: 0.9rem 1rem 0.9rem 0.9rem;
}
.f2f-news-card > * {
	margin: 0 !important;
}
.f2f-news-card__media {
	grid-area: media;
	min-height: 9rem;
	overflow: hidden;
}
.f2f-news-card__media .wp-block-post-featured-image,
.f2f-news-card__media .wp-block-post-featured-image a,
.f2f-news-card__media .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.f2f-news-card__date {
	grid-area: date;
	color: #6b6b6b; /* 5.3:1 on white (the palette's light grey fails WCAG AA for text) */
}
.f2f-news-card__title {
	grid-area: title;
	margin-bottom: 0.4rem !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.35;
}
.f2f-news-card__title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.f2f-news-card__title a:hover {
	text-decoration: underline;
}
.f2f-news-card__excerpt {
	grid-area: excerpt;
	color: var(--wp--preset--color--body);
	font-size: 0.95rem;
	line-height: 1.5;
}
.f2f-news-card__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

@media (max-width: 781px) {
	.f2f-news {
		background-color: var(--wp--preset--color--base) !important;
	}
	.f2f-news__list.wp-block-post-template {
		grid-template-columns: 1fr;
	}
	.f2f-news-card {
		grid-template-columns: 1fr;
		grid-template-areas:
			"date"
			"title"
			"media"
			"excerpt";
		grid-template-rows: auto;
		row-gap: 0.6rem;
		padding: 0;
		background: transparent !important;
	}
	.f2f-news-card__media {
		min-height: 2.5rem;
		max-height: 12rem;
	}
	.f2f-news-card__title {
		font-size: var(--wp--preset--font-size--large);
		margin-bottom: 0 !important;
	}
	.f2f-news-card__excerpt {
		font-size: var(--wp--preset--font-size--medium);
	}
}

/* ---------------------------------------------------------------------------
 * Footer (patterns/footer.php)
 * ------------------------------------------------------------------------- */
.f2f-footer-contacts {
	color: var(--wp--preset--color--body);
}
.f2f-footer-contacts p {
	margin: 0;
}
.f2f-footer-contacts a {
	color: inherit;
	text-decoration: none;
}
.f2f-footer-contacts a:hover {
	color: var(--wp--preset--color--primary);
}
.f2f-icon {
	padding-left: 1.6rem;
	background: no-repeat 0 50% / 1.3rem;
}
.f2f-icon--phone {
	background-image: url(../images/phone.svg);
}
.f2f-icon--email {
	background-image: url(../images/email.svg);
}
.f2f-footer-social.wp-block-social-links {
	gap: 0.5rem;
	margin: 0;
}

/* Footer menu: centred, white, thin dividers between items (no dividers once it wraps on mobile). */
.f2f-footer-legal .wp-block-navigation .wp-block-navigation__container {
	justify-content: center;
	gap: 0.25rem 0;
}
.f2f-footer-legal .wp-block-navigation-item {
	padding: 0 0.6rem;
}
.f2f-footer-legal .wp-block-navigation-item + .wp-block-navigation-item {
	border-left: 1px solid currentColor;
}
.f2f-footer-legal .wp-block-navigation-item__content:hover {
	text-decoration: underline;
}
.f2f-footer-legal__text {
	max-width: 70rem;
	margin-inline: auto;
	font-size: 0.75rem !important;
	line-height: 1.6;
}
.f2f-footer-legal__text a {
	text-decoration: underline;
}

@media (max-width: 781px) {
	/* Phone takes its own line; e-mail and social icons share the next one. */
	.f2f-footer-contacts .wp-block-group {
		gap: 0.6rem 1.25rem;
		text-align: center;
	}
	.f2f-footer-contacts .f2f-icon--phone {
		flex-basis: 100%;
	}
	.f2f-footer-legal .wp-block-navigation-item + .wp-block-navigation-item {
		border-left: 0;
	}
	.f2f-footer-legal .wp-block-navigation {
		font-size: var(--wp--preset--font-size--medium);
	}
}

/* Header/footer template parts sit flush against the content (no block gap seams). */
.wp-site-blocks > .site-footer,
.wp-site-blocks > main + .site-footer,
.site-footer > .wp-block-cover,
.site-footer > .wp-block-group {
	margin-block-start: 0;
}
.wp-site-blocks > main {
	margin-block-end: 0;
}

/* ---------------------------------------------------------------------------
 * Forms (Contact Form 7). Markup from f2f-migrate Forms::semantic():
 * .f2f-field > label > .f2f-field__label + control. Floating label: sits inside the
 * field, moves above it on focus or once filled (placeholder = label, kept invisible).
 * ------------------------------------------------------------------------- */
.wpcf7 form {
	display: flex;
	flex-direction: column;
	gap: 1.9rem;
}
.f2f-field {
	margin: 0;
}
.f2f-field > label {
	position: relative;
	display: block;
}
.f2f-field__label {
	position: absolute;
	z-index: 1;
	top: 0.7rem;
	left: 0.9rem;
	color: var(--wp--preset--color--body);
	font-size: 1rem;
	font-style: italic;
	font-weight: 700;
	line-height: 1.3;
	pointer-events: none;
	transition: top var(--wp--custom--transition), left var(--wp--custom--transition), font-size var(--wp--custom--transition);
}
.f2f-field:focus-within .f2f-field__label,
.f2f-field:has(:is(input, textarea):not(:placeholder-shown)) .f2f-field__label {
	top: -1.55rem;
	left: 0.25rem;
	font-size: 1.05rem;
}
.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea, select) {
	box-sizing: border-box;
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid #cfcfcf;
	border-radius: 2px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 1rem;
}
.wpcf7 :is(input, textarea)::placeholder {
	color: transparent;
}
.wpcf7 textarea {
	min-height: 9rem;
	resize: vertical;
}
.wpcf7 :is(input, textarea, select):focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 0;
	border-color: transparent;
}

.f2f-form__title {
	align-self: flex-start; /* the form is a flex column; don't stretch, so the rule sits under the word */
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--x-large);
	text-transform: none;
}
.f2f-form__question {
	margin: 0;
	color: var(--wp--preset--color--body);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--large);
}

/* Checkbox groups and consent: compact, inline. */
.f2f-field--choices,
.f2f-field--acceptance {
	font-size: 0.85rem;
	color: var(--wp--preset--color--body);
}
.f2f-field--choices {
	margin-top: -1rem;
	padding-left: 0.4rem;
}
.f2f-field--choices .wpcf7-list-item {
	display: inline-flex;
	margin: 0 0.9rem 0.25rem 0;
}
.wpcf7 .wpcf7-list-item {
	margin-left: 0;
}
.wpcf7 .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	cursor: pointer;
}
.wpcf7 input[type="checkbox"] {
	width: 0.95rem;
	height: 0.95rem;
	margin: 0;
	accent-color: var(--wp--preset--color--primary);
}
.f2f-field--acceptance + .f2f-field--acceptance {
	margin-top: -1.6rem;
}
.f2f-field--acceptance:has(+ .f2f-field--acceptance),
.wpcf7 form > .f2f-field--acceptance {
	padding-left: 0.4rem;
}

/* Submit: full-width red bar. */
.f2f-field--submit {
	position: relative;
	margin-top: -0.6rem;
}
.wpcf7 input[type="submit"] {
	width: 100%;
	padding: 0.55rem 1rem;
	border: 0;
	border-radius: 2px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color var(--wp--custom--transition);
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus-visible {
	background: var(--wp--preset--color--primary-dark);
}
/* CF7 disables submit until consent is ticked: keep the design's solid red, signal via cursor. */
.wpcf7 input[type="submit"]:disabled {
	cursor: not-allowed;
}
.f2f-field--submit .wpcf7-spinner {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	margin: -12px 0 0;
}

/* Validation & response messages. */
.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 0.3rem;
	color: var(--wp--preset--color--primary);
	font-size: 0.8rem;
}
.wpcf7 .wpcf7-not-valid {
	border-color: var(--wp--preset--color--primary);
}
.wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 0.75rem 1rem;
	border-width: 1px;
	font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------
 * Contact page (template page-contact)
 * ------------------------------------------------------------------------- */
.f2f-hero-page .f2f-page-hero {
	margin-top: 0;
}
/* Testimonials page: hero image block with the same red line as the featured-image heroes. */
.f2f-testimonials-page .f2f-page-hero {
	margin-bottom: 0;
}
.f2f-testimonials-page .f2f-page-hero img {
	width: 100%;
	border-bottom: 3px solid var(--wp--preset--color--primary);
}
.f2f-contact-page .wp-block-post-content > .wp-block-columns {
	gap: var(--wp--preset--spacing--50);
}
/* Contact details list (right column). */
.f2f-contact-page .is-style-contacts {
	font-size: 1.05rem;
}
.f2f-contact-page .is-style-contacts li {
	padding-left: 2.2rem;
	margin-bottom: 1.2rem;
	background-size: 1.4rem;
}
.f2f-contact-page .is-style-contacts small {
	font-size: 0.8rem;
}
/* Quote request: narrower, centred column (legacy layout used spacer columns around it). */
.f2f-contact-page .wp-block-columns:has(#simulacao) {
	justify-content: center;
	margin-top: var(--wp--preset--spacing--60);
}
.f2f-contact-page .wp-block-column:has(> #simulacao) {
	flex: 0 1 46rem !important;
}
.f2f-hero-page .wp-block-post-title.is-style-underline {
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--contrast);
}
.f2f-contact-page .team-section .is-style-section {
	font-size: var(--wp--preset--font-size--medium);
}

@media (max-width: 781px) {
	.f2f-hero-page .f2f-page-hero {
		aspect-ratio: 2 / 1 !important;
	}
	.f2f-testimonials-page .f2f-page-hero {
		aspect-ratio: auto !important;
	}
	.f2f-testimonials-page .f2f-page-hero img {
		aspect-ratio: 2 / 1 !important;
	}
	.f2f-contact-page .wp-block-post-content > .wp-block-columns {
		gap: var(--wp--preset--spacing--60);
	}
}

/* Smallest phones (≤400px): logo, phone pill and menu button must share one row. */
@media (max-width: 400px) {
	.f2f-mainbar .f2f-logo img {
		width: 52px !important;
	}
	.f2f-mainbar > .wp-block-group > .wp-block-group {
		gap: 0.6rem;
	}
	.wp-block-button.is-style-phone .wp-block-button__link {
		padding: 0.3rem 0.6rem 0.25rem 1.9rem;
		background-position: 0.55rem center;
		background-size: 1rem;
		font-size: 0.8rem;
	}
	.f2f-mainbar .wp-block-navigation__responsive-container-open {
		padding: 0.2rem;
	}
}

/* ---------------------------------------------------------------------------
 * Content pages on the grey hero framing (page-hero, page-product)
 * ------------------------------------------------------------------------- */

/* Single posts: content in a white card. */
.f2f-content-card {
	max-width: calc(800px + 2 * var(--wp--preset--spacing--50)) !important;
	border-top: 3px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--small);
}

/* Product pages (legacy layout): white page, wide text column, red coverage heading, square CTAs. */
.f2f-product-page .wp-block-post-content > :is(h2, h3):first-child:not(.has-primary-color) {
	margin-top: 0;
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}
.f2f-product-page .wp-block-post-content .wp-block-columns {
	gap: var(--wp--preset--spacing--40);
}
/* CTA row: solid red block and red outline, square (legacy "btn-efect-red"). */
.f2f-product-cta .wp-block-button__link {
	min-height: 100%;
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 0;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.4;
}
.f2f-product-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link strong {
	font-weight: 400;
	text-transform: uppercase;
}
.f2f-product-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary-dark);
	background: var(--wp--preset--color--primary-dark);
}
@media (max-width: 600px) {
	.f2f-product-cta .wp-block-button {
		width: 100%;
	}
}
/* Product lists: red check bullets (the legacy "redbullet" look). */
.f2f-product-page .wp-block-post-content ul:not([class*="is-style-"]) {
	list-style: none;
	padding-left: 0;
}
.f2f-product-page .wp-block-post-content ul:not([class*="is-style-"]) > li {
	padding-left: 2rem;
	margin-bottom: 0.5rem;
	background: url(../images/redbullet.svg) no-repeat 0 0.3em / 1.1em;
}
.f2f-product-page .wp-block-post-content :is(h2, h3, h4).has-primary-color {
	margin-top: var(--wp--preset--spacing--50);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	text-transform: uppercase;
}

/* Accordions (Sinistros) and glossary terms: white rows, red edge when open. */
.f2f-hero-page .wp-block-details {
	margin-block: 0 0.6rem !important;
	padding: 0.9rem 1.25rem;
	border: 0;
	border-left: 3px solid transparent;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base);
	transition: border-color var(--wp--custom--transition);
}
.f2f-hero-page .wp-block-details[open] {
	border-left-color: var(--wp--preset--color--primary);
}
.f2f-hero-page .wp-block-details summary {
	font-size: var(--wp--preset--font-size--medium);
}
.f2f-hero-page .wp-block-details[open] summary {
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--primary);
}
.f2f-hero-page .f2f-glossary .wp-block-details summary {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
}

/* Document downloads (Informação financeira / legal): white rows. */
.f2f-hero-page .wp-block-file {
	margin-bottom: 0.5rem;
	padding: 0.6rem 0.75rem 0.6rem 1rem;
	border: 0;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base);
}
.f2f-hero-page .wp-block-file > a:first-child {
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	text-decoration: none;
}
.f2f-hero-page .wp-block-file .wp-block-file__button {
	padding: 0.4rem 0.9rem;
	border-radius: var(--wp--custom--radius--small);
	font-size: 0.85rem;
}
.f2f-hero-page .wp-block-post-content h2 {
	font-size: var(--wp--preset--font-size--large);
}

/* Legal text pages: readable white card. */
.f2f-hero-page .wp-block-post-content > p,
.f2f-hero-page .wp-block-post-content > ul {
	line-height: 1.7;
}

/* ---------------------------------------------------------------------------
 * Listings (news index, archives, search), single post, testimonials archive
 * ------------------------------------------------------------------------- */
.f2f-listing > .is-style-underline {
	margin-bottom: var(--wp--preset--spacing--50) !important;
}
.f2f-listing .f2f-search {
	margin: 0 auto var(--wp--preset--spacing--50) !important;
}
.f2f-pagination {
	margin-top: var(--wp--preset--spacing--50);
	gap: 0.4rem;
	font-weight: 700;
}
.f2f-pagination :is(.page-numbers, a) {
	padding: 0.35rem 0.7rem;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base);
	text-decoration: none;
}
.f2f-pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/* Single news post. */
.f2f-single__date {
	color: #6b6b6b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.f2f-single__title {
	margin-top: 0.4rem;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-large);
}
.f2f-single__nav {
	max-width: calc(800px + 2 * var(--wp--preset--spacing--50));
	margin: var(--wp--preset--spacing--40) auto 0 !important;
	gap: var(--wp--preset--spacing--30);
	font-size: 0.95rem;
}
.f2f-single__nav a {
	text-decoration: none;
	font-weight: 700;
}

/* Testimonials archive: white quote cards. */
.f2f-listing .wp-block-f2f-testimonials.is-layout-grid-cards .wp-block-quote.is-style-testimonial {
	height: 100%;
	margin: 0;
	padding: 3rem var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base) url(../images/testemunho-inicio-red.svg) no-repeat center 1rem / 2rem;
}
.f2f-listing .wp-block-f2f-testimonials.is-layout-grid-cards figure {
	margin: 0;
}

/* Visually hidden text that stays available to screen readers. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Button: red circle with "+" (home "Empresa" read more); the label stays for screen readers. */
.wp-block-button.is-style-plus .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	padding: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1;
	box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
}
.wp-block-button.is-style-plus .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-dark);
}

/* Home: the slideshow sits flush under the header. */
.wp-site-blocks > main .wp-block-post-content > .f2f-hero-slider:first-child {
	margin-top: 0;
}

/* Spam protection widget (Cloudflare Turnstile) above the submit button. */
.f2f-field--captcha:empty {
	display: none;
}
.f2f-field--captcha .wpcf7-turnstile {
	min-height: 65px;
}
