/* ==========================================================================
   Header και footer (μόνο frontend).
   ========================================================================== */

/* Μαύρη μπάρα χορηγού */
.pn-topbar { background: var(--wp--preset--color--black); color: var(--wp--preset--color--gray-20); }
.pn-topbar__in { min-height: 34px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; font-size: var(--wp--preset--font-size--xs); }
.pn-topbar__sponsor { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pn-topbar__sponsor img { height: 22px; width: auto; background: var(--wp--preset--color--white); padding: 2px 6px; border-radius: 2px; }
.pn-social { display: flex; gap: 2px; align-items: center; margin: 0; padding: 0; list-style: none; }
.pn-social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--wp--preset--color--white); }

/* Header: sticky, με μεγάλο σήμα που «κρέμεται» και μικραίνει στο scroll */
.pn-header { position: sticky; top: 0; z-index: 30; background: var(--wp--preset--color--white); transition: box-shadow .25s ease; }
.admin-bar .pn-header { top: var(--wp-admin--admin-bar--height, 0px); }
.pn-header__in { min-height: 80px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; transition: min-height .25s ease; }
.pn-logo { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.pn-logo img {
	width: 112px; height: 112px; margin: -10px 0 -50px; padding: 6px;
	box-sizing: border-box; background: var(--wp--preset--color--white); border-radius: 50%;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22); flex: none; object-fit: contain;
	transition: width .25s ease, height .25s ease, margin .25s ease, padding .25s ease, box-shadow .25s ease;
}
.pn-logo__name { font-size: 24px; font-weight: 700; white-space: nowrap; }
.pn-nav { margin-left: auto; font-size: 20px; font-weight: 700; }
.pn-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.pn-nav a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
.pn-nav a:hover, .pn-nav a:focus-visible, .pn-nav .current-menu-item > a { background-size: 100% 3px; }
.pn-header__cta { margin-left: 0; }
.pn-menu-btn { all: unset; display: none; box-sizing: border-box; cursor: pointer; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-size: 18px; font-weight: 700; color: var(--wp--preset--color--black); }
.pn-menu-btn:focus-visible { outline: 3px solid var(--wp--preset--color--black); outline-offset: 2px; }
.pn-menu-btn .pn-i-close { display: none; }
.pn-navopen .pn-menu-btn .pn-i-open { display: none; }
.pn-navopen .pn-menu-btn .pn-i-close { display: inline; }

.pn-hdr-small .pn-header { box-shadow: 0 2px 14px rgba(0, 0, 0, .10); }
.pn-hdr-small .pn-header__in { min-height: 70px; }
.pn-hdr-small .pn-logo img { width: 64px; height: 64px; margin: 0; padding: 3px; box-shadow: none; }

@container (max-width: 1200px) {
	.pn-nav { display: none; }
	.pn-menu-btn { display: inline-flex; }
	.pn-header__in { gap: 12px; min-height: 68px; }
	.pn-header__cta { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 18px; white-space: nowrap; }
	.pn-logo img { width: 88px; height: 88px; margin: -10px 0 -38px; padding: 5px; }
	.pn-logo__name { font-size: 20px; }
	.pn-navopen .pn-nav { display: block; width: 100%; order: 9; padding: 8px 0 16px; font-size: 26px; }
	.pn-navopen .pn-nav ul { flex-direction: column; gap: 14px; }
	.pn-hdr-small .pn-logo img { width: 54px; height: 54px; padding: 2px; }
	.pn-hdr-small .pn-header__in { min-height: 60px; }
}
@container (max-width: 420px) {
	.pn-menu-btn .pn-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	/* Μικρά κινητά: σήμα, όνομα και «Διαρκείας» πάντα σε μία γραμμή (εκτός όταν είναι ανοιχτό το μενού) */
	.pn-header__in { gap: 6px; flex-wrap: nowrap; padding-inline: var(--wp--preset--spacing--30); }
	.pn-navopen .pn-header__in { flex-wrap: wrap; }
	.pn-menu-btn { padding: 0; }
	.pn-logo { gap: 6px; min-width: 0; }
	.pn-logo img { width: 60px; height: 60px; margin: -6px 0 -20px; padding: 4px; }
	.pn-logo__name { font-size: clamp(12px, 3.9cqw, 16px); }
	.pn-header__cta { flex: none; font-size: 14px; padding: 0 10px; min-height: 42px; }
	.pn-hdr-small .pn-logo img { width: 46px; height: 46px; }
	.pn-hdr-small .pn-header__in { min-height: 56px; }
}

/* Footer */
.pn-footer { background: var(--wp--preset--color--black); color: var(--wp--preset--color--gray-20); }
.pn-footer__photo { margin: 0; position: relative; height: clamp(240px, 34cqw, 520px); overflow: hidden; }
.pn-footer__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.pn-footer .pn-band { height: 8px; }
.pn-footer__in { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 56px; }
.pn-footer__brand { display: flex; align-items: center; gap: clamp(12px, 2.4cqw, 36px); text-decoration: none; color: var(--wp--preset--color--white); }
.pn-footer__brand img { width: min(11cqw, 160px); height: auto; flex: none; }
.pn-footer__brand span { font-size: min(11.4cqw, 178px); line-height: .8; white-space: nowrap; }
.pn-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 32px; font-size: 16px; }
.pn-footer__cols ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pn-footer__cols a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
.pn-footer__cols a:hover, .pn-footer__cols a:focus-visible { background-size: 100% 3px; }
.pn-footer__contact { display: flex; flex-direction: column; gap: 10px; font-style: normal; }
.pn-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: #A3A3A3; font-size: var(--wp--preset--font-size--xs); }
.pn-footer__credit { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pn-footer__credit img { height: 40px; width: auto; margin: -8px 0; }

@container (max-width: 860px) {
	.pn-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Στην κορυφή: floating, εμφανίζεται μετά από λίγο scroll */
.pn-totop {
	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 40;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	box-shadow: 0 0 0 3px var(--wp--preset--color--white), 0 4px 16px rgba(0, 0, 0, .28);
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease, color .2s ease;
}
.pn-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.pn-totop:hover,
.pn-totop:focus-visible { background: var(--wp--preset--color--white); color: var(--wp--preset--color--black); box-shadow: 0 0 0 3px var(--wp--preset--color--black), 0 4px 16px rgba(0, 0, 0, .28); }
.pn-totop:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 3px; }
.pn-totop__arrow svg { stroke-width: 2.4; }
/* Hover: το βελάκι φεύγει προς τα πάνω και εμφανίζεται μπάλα που γυρίζει */
.pn-totop__in { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.pn-totop__arrow,
.pn-totop__ball { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
.pn-totop__ball { opacity: 0; transform: translateY(100%); }
.pn-totop__ball svg { display: block; }
.pn-totop:focus-visible .pn-totop__arrow { opacity: 0; transform: translateY(-100%); }
.pn-totop:focus-visible .pn-totop__ball { opacity: 1; transform: none; }
.pn-totop:focus-visible .pn-totop__ball svg { animation: pn-ball-spin 1.2s linear infinite; }
@media (hover: hover) {
	.pn-totop:hover .pn-totop__arrow { opacity: 0; transform: translateY(-100%); }
	.pn-totop:hover .pn-totop__ball { opacity: 1; transform: none; }
	.pn-totop:hover .pn-totop__ball svg { animation: pn-ball-spin 1.2s linear infinite; }
}
@keyframes pn-ball-spin { to { transform: rotate(360deg); } }
/* Πρόοδος κύλισης: χρυσό δαχτυλίδι πάνω στο λευκό περίγραμμα (--pn-p: 0–1 από το site.js) */
.pn-totop::before {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	background: conic-gradient(var(--wp--preset--color--gold) calc(var(--pn-p, 0) * 360deg), transparent 0);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
	pointer-events: none;
}
@media (max-width: 600px) {
	.pn-totop { width: 46px; height: 46px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* Περιεχόμενο */
.pn-content > *:last-child { margin-bottom: 0; }
.pn-main:focus { outline: none; }
[id] { scroll-margin-top: 100px; }
