/* Ενότητες σελίδων: ό,τι δεν εκφράζεται με τα styles των blocks (animations κ.λπ.). */

/* Συνεργαζόμενες ασφαλιστικές: κυλιόμενη ταινία λογοτύπων.
   Το track έχει δύο ίδια σετ, οπότε μετακίνηση κατά -50% κλείνει τον κύκλο χωρίς άλμα. */
[data-gpi="marquee"] {
	display: flex;
	width: max-content;
	animation: gpi-marquee 45s linear infinite;
}

[data-gpi="marquee"]:hover {
	animation-play-state: paused;
}

@keyframes gpi-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-gpi="marquee"] {
		animation: none;
	}
}

/* «Η διαφορά μας»: 4 ψηλές κάρτες με φωτογραφία (Global Styles gpi-panels / gpi-panel).
   Στο hover / focus εμφανίζεται το κόκκινο βέλος στο κέντρο και η φωτογραφία ζουμάρει ελαφρά. */
.gpi-panel .gpi-panel-arrow {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.8);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.gpi-panel:is(:hover, :focus-within) .gpi-panel-arrow {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

@media (hover: none) {
	.gpi-panel .gpi-panel-arrow {
		display: none;
	}
}

/* Πλαίσιο σελίδας (look & feel megabrokers): τα «πλαισιωμένα» μπλοκ σταματούν σε μέγιστο πλάτος
   και αφήνουν λευκό περιθώριο γύρω τους. Ισχύει για hero, hero σελίδων, φόρμα, CTA (.gpi-frame)
   και τις γκρι ενότητες, που γίνονται κάρτες με στρογγυλεμένες γωνίες αντί για λωρίδες σε όλο το πλάτος.
   Το «body» ανεβάζει την ειδικότητα πάνω από τα margins των blocks (style-*.css φορτώνει μετά). */
:root {
	--gpi-frame-max: 1580px;
	--gpi-frame-gutter: 24px;
}

@media (max-width: 1024px) {
	:root {
		--gpi-frame-gutter: 16px;
	}
}

@media (max-width: 767px) {
	:root {
		--gpi-frame-gutter: 8px;
	}
}

body :is([data-gpi="hero"], [data-gpi="page-hero"], #prosfora, .gpi-frame, .gpi-section-muted) {
	max-width: var(--gpi-frame-max);
	margin-right: max(var(--gpi-frame-gutter), calc((100% - var(--gpi-frame-max)) / 2));
	margin-left: max(var(--gpi-frame-gutter), calc((100% - var(--gpi-frame-max)) / 2));
}

body .gpi-section-muted {
	border-radius: 40px 12px 40px 12px;
}

@media (max-width: 767px) {
	body .gpi-section-muted {
		border-radius: 24px 8px 24px 8px;
	}
}

/* Κάρτα μενού desktop (look & feel megabrokers): φαρδιά κάρτα έως 1380px, 30px από τις άκρες, ύψος ~86px,
   μεγαλύτερο λογότυπο, links 16px και κουμπί 43px. Περιεχόμενο και χρώματα ίδια.
   Στο 1025–1279 ισχύει η «compact» εκδοχή του block, με μικρότερα μεγέθη. */
@media (min-width: 1025px) {
	body [data-gpi="header-card"] {
		width: auto;
		max-width: min(1380px, calc(100% - 36px));
		min-height: 86px;
		margin-right: auto;
		margin-left: auto;
		padding: 10px 24px 10px 32px;
	}

	body [data-gpi="header-card"] > a img {
		width: 62px;
		height: 62px;
	}
}

@media (min-width: 1280px) {
	body [data-gpi="header-card"] > a span,
	body [data-gpi="header-card"] > a div {
		font-size: 23px;
	}

	body [data-gpi="header-card"] .gb-menu-link {
		padding: 18px 12px;
		font-size: 16px;
		font-weight: 500;
	}

	body [data-gpi="header-card"] > :last-child {
		column-gap: 16px;
	}

	body [data-gpi="header-card"] > :last-child a:not(.gb-menu-link) {
		min-height: 43px;
		padding: 8px 24px 8px 20px;
		font-size: 15px;
	}
}

@media (min-width: 1280px) and (max-width: 1439px) {
	body [data-gpi="header-card"] .gb-menu-link {
		padding-right: 9px;
		padding-left: 9px;
		font-size: 15px;
	}
}

/* «Γιατί GP Insurance» στο κινητό: οι 4 λευκές κάρτες γίνονται μία λίστα
   (εικονίδιο αριστερά, κείμενο δεξιά, διαχωριστικές γραμμές) αντί για ψηλά κουτιά.
   Η σκούρη κάρτα (πρώτη) και η κάρτα με το κουμπί (τελευταία) μένουν κάρτες.
   Markup: Grid με data-gpi="why-list". Tablet / desktop ως έχουν. */
@media (max-width: 767px) {
	.gpi-container > [data-gpi="why-list"] {
		row-gap: 0;
	}

	[data-gpi="why-list"] > :first-child {
		margin-bottom: 16px;
	}

	.gpi-container > [data-gpi="why-list"] > :first-child {
		row-gap: 20px;
	}

	.gpi-container > [data-gpi="why-list"] > :last-child {
		margin-top: 16px;
		padding: 24px;
		row-gap: 16px;
	}

	.gpi-container > [data-gpi="why-list"] > .gpi-card:not(:first-child, :last-child) {
		flex-direction: row;
		align-items: flex-start;
		column-gap: 16px;
		padding: 20px;
		border-radius: 0;
		border-top-width: 0;
		border-bottom-width: 0;
	}

	.gpi-container > [data-gpi="why-list"] > .gpi-card:nth-child(2) {
		border-top-width: 1px;
		border-radius: 28px 8px 0 0;
	}

	.gpi-container > [data-gpi="why-list"] > .gpi-card:nth-last-child(2) {
		border-bottom-width: 1px;
		border-radius: 0 0 28px 8px;
	}

	[data-gpi="why-list"] > .gpi-card:not(:first-child, :nth-child(2), :last-child)::before {
		content: "";
		position: absolute;
		top: 0;
		right: 20px;
		left: 20px;
		border-top: 1px solid var(--base);
	}

	[data-gpi="why-list"] > .gpi-card:not(:first-child, :last-child) .gpi-icon {
		width: 44px;
		height: 44px;
	}

	[data-gpi="why-list"] > .gpi-card:not(:first-child, :last-child) .gpi-icon .gb-shape svg {
		width: 22px;
		height: 22px;
	}

	[data-gpi="why-list"] > .gpi-card:not(:first-child, :last-child) .gpi-h4 {
		margin-bottom: 4px;
		font-size: 17px;
	}

	[data-gpi="why-list"] > .gpi-card:not(:first-child, :last-child) .gpi-text {
		margin-bottom: 0;
		font-size: 15px;
		line-height: 1.55;
	}
}
