/* ==========================================================================
   Square 61 Studio — αυτόνομο theme
   Τα 4 βασικά χρώματα ρυθμίζονται στο Dostosuj → Square 61 → Kolory
   (γράφονται inline πάνω από αυτές τις τιμές).
   ========================================================================== */

:root {
	--s61-accent: #da1f2c;
	--s61-text: #231f20;
	--s61-bg: #fafafa;
	--s61-footer-bg: #f1f2f2;
	--s61-accent-hover: color-mix(in srgb, var(--s61-accent) 82%, #000);
	--s61-heading: var(--s61-text);
	--s61-border: #dfdfdf;
	--s61-white: #ffffff;
	--s61-muted: #5f5f5f;
	--s61-font: "Inconsolata", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--s61-container: 1260px;
	--s61-gutter: clamp(20px, 5vw, 70px);
	--s61-gap: 20px;
	--s61-header-h: 142px;
	--s61-sticky-top: calc(var(--s61-header-h) + 8px);
	--s61-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset / βάση
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--s61-header-h);
}

body {
	margin: 0;
	background: var(--s61-bg);
	color: var(--s61-text);
	font-family: var(--s61-font);
	font-size: 14px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.7em;
	font-family: var(--s61-font);
	font-weight: 600;
	line-height: 1.3;
	color: var(--s61-heading);
}

p,
ul,
ol,
figure,
blockquote {
	margin: 0 0 1.2em;
}

ul,
ol {
	padding-left: 1.4em;
}

a {
	color: inherit;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

.s61-main {
	display: block;
	min-height: 50vh;
}

.s61-skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100001;
	padding: 10px 14px;
	background: var(--s61-text);
	color: #fff;
	text-decoration: none;
}

.s61-skip:focus {
	top: 12px;
}

.s61-button {
	display: inline-block;
	padding: 10px 16px;
	background: var(--s61-border);
	color: var(--s61-text);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.s61-button:hover {
	background: #d1d1d1;
	color: var(--s61-accent);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.s61-header {
	/* Fixed (όχι sticky): η αλλαγή ύψους δεν μετακινεί το περιεχόμενο, άρα δεν «τρέμει» στο scroll */
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--s61-bg) 94%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	transition: box-shadow 0.3s;
}

.admin-bar .s61-header {
	top: 32px;
}

/* Χώρος για τον fixed header (πάντα το πλήρες ύψος) */
body.s61 {
	padding-top: var(--s61-header-h);
}

.s61-header.is-scrolled {
	box-shadow: 0 1px 0 var(--s61-border);
}

.s61-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--s61-header-h);
	transition: height 0.45s var(--s61-ease);
}

.s61-header.is-scrolled .s61-header__inner {
	height: 96px;
}

.s61-logo {
	display: block;
	flex-shrink: 0;
	color: var(--s61-text);
	text-decoration: none;
}

.s61-logo__img {
	display: block;
	width: 98px;
	height: auto;
	aspect-ratio: 543 / 569;
	overflow: visible;
	color: var(--s61-text);
	/* Μόνο transform (GPU), χωρίς αλλαγή width: ομαλή κίνηση χωρίς relayout */
	transform-origin: left center;
	transition: transform 0.45s var(--s61-ease);
	will-change: transform;
}

.s61-header.is-scrolled .s61-logo__img {
	transform: scale(0.7);
}

.s61-logo__text {
	font-size: 20px;
	font-weight: 600;
}

.s61-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(20px, 3vw, 46px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.s61-nav__list a {
	display: block;
	padding: 6px 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	color: var(--s61-text);
	text-decoration: none;
	transition: color 0.2s;
}

.s61-nav__list a:hover,
.s61-nav__list .current-menu-item > a,
.s61-nav__list .current-menu-ancestor > a,
.s61-nav__list .current_page_item > a {
	color: var(--s61-accent);
}

/* Υπομενού (αν προστεθεί) */
.s61-nav__list li {
	position: relative;
}

.s61-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -16px;
	min-width: 200px;
	margin: 0;
	padding: 10px 16px;
	list-style: none;
	background: var(--s61-white);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s var(--s61-ease), visibility 0s linear 0.2s;
}

.s61-nav__list li:hover > .sub-menu,
.s61-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.s61-nav__list .sub-menu a {
	font-size: 15px;
	padding: 8px 0;
}

/* Burger */
.s61-burger {
	display: none;
	position: relative;
	z-index: 102;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.s61-burger__lines,
.s61-burger__lines::before,
.s61-burger__lines::after {
	position: absolute;
	left: 10px;
	width: 24px;
	height: 1.5px;
	background: var(--s61-text);
	transition: transform 0.35s var(--s61-ease), opacity 0.2s, top 0.35s var(--s61-ease);
}

.s61-burger__lines {
	top: 21px;
}

.s61-burger__lines::before,
.s61-burger__lines::after {
	content: "";
	left: 0;
}

.s61-burger__lines::before {
	top: -7px;
}

.s61-burger__lines::after {
	top: 7px;
}

.s61-burger[aria-expanded="true"] .s61-burger__lines {
	background: transparent;
}

.s61-burger[aria-expanded="true"] .s61-burger__lines::before {
	top: 0;
	transform: rotate(45deg);
}

.s61-burger[aria-expanded="true"] .s61-burger__lines::after {
	top: 0;
	transform: rotate(-45deg);
}

.s61 ::selection {
	background: var(--s61-accent);
	color: #fff;
}

.s61 :focus-visible {
	outline: 2px solid var(--s61-accent);
	outline-offset: 3px;
}

.s61 img,
.s61 video {
	max-width: 100%;
	height: auto;
}

.s61-container {
	width: min(var(--s61-container), 100% - 2 * var(--s61-gutter));
	margin-inline: auto;
}

.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Περιεχόμενο (Gutenberg)
   -------------------------------------------------------------------------- */
.s61 .entry-content {
	font-size: 16px;
	line-height: 1.7;
}

/* Μήκος γραμμής έως ~70 χαρακτήρες */
.s61 .entry-content p,
.s61 .entry-content li,
.s61 .entry-content .wp-block-heading {
	max-width: 70ch;
}

.s61 .entry-content p,
.s61 .entry-content li {
	text-wrap: pretty;
}

.s61 .entry-content a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--s61-border);
	text-underline-offset: 3px;
	transition: color 0.2s, text-decoration-color 0.2s;
}

.s61 .entry-content a:hover {
	color: var(--s61-accent);
	text-decoration-color: currentColor;
}

.s61 .entry-content h2,
.s61 .entry-content h3 {
	color: var(--s61-heading);
	font-weight: 600;
	line-height: 1.3;
}

.s61 .entry-content h2 {
	font-size: clamp(22px, 2.2vw, 28px);
}

.s61 .entry-content h3 {
	font-size: 18px;
}

/* Block style: «Podkreślony» — αριστερή στοίχιση, μαζί με το κείμενο */
.s61 .is-style-s61-underline {
	font-weight: 400 !important;
	padding-bottom: 0.45em;
	margin: 1.6em 0 1em;
	position: relative;
}

.s61 .is-style-s61-underline::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 1px;
	background: var(--s61-text);
}

.s61 .entry-content > .is-style-s61-underline:first-child,
.s61 .wp-block-column > .is-style-s61-underline:first-child {
	margin-top: 0;
}

/* Block style: "Quote (italic)" */
.s61 .is-style-s61-quote {
	font-style: italic;
}

.s61 .entry-content .wp-block-columns {
	gap: clamp(24px, 3vw, 40px);
}

.s61 .entry-content .wp-block-image img,
.s61 .entry-content .wp-block-gallery img {
	display: block;
	height: auto;
}

.s61 .entry-content .wp-block-gallery .wp-block-image a {
	cursor: zoom-in;
}

/* Accordion (core/details) όπως το παλιό toggle */
.s61 .entry-content .wp-block-details {
	border-bottom: 1px solid var(--s61-border);
	margin: 0;
	padding: 0;
}

.s61 .entry-content .wp-block-details summary {
	list-style: none;
	cursor: pointer;
	padding: 14px 0 14px 34px;
	position: relative;
	font-size: 15px;
	font-weight: 600;
	transition: color 0.2s;
}

.s61 .entry-content .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.s61 .entry-content .wp-block-details summary::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 50%;
	border-left: 6px solid var(--s61-accent);
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	transform: translateY(-50%);
	transition: transform 0.25s var(--s61-ease);
}

.s61 .entry-content .wp-block-details[open] summary::before {
	transform: translateY(-50%) rotate(90deg);
}

.s61 .entry-content .wp-block-details summary:hover {
	color: var(--s61-accent);
}

.s61 .entry-content .wp-block-details > *:not(summary) {
	padding-left: 34px;
	margin-top: 0;
}

.s61 .entry-content .wp-block-details > *:last-child {
	padding-bottom: 14px;
}

/* Usługi (κλασική διάταξη όπως στο παλιό site): λίστα + akordeon */
.s61-services__why li + li {
	margin-top: 6px;
}

.s61-services__list {
	margin-top: clamp(40px, 5vw, 64px);
}

.s61-services__cols > section > .is-style-s61-underline:first-child {
	margin-top: 0;
}

/* Desktop: «Why Work with Us» αριστερά, «Architecture Services» δεξιά */
@media (min-width: 1000px) {
	.s61-services__cols {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(40px, 5vw, 80px);
		align-items: start;
	}

	.s61-services__list {
		margin-top: 0;
	}
}

.s61 .s61-accordion {
	max-width: 70ch;
	margin-top: 1.4em;
	border-top: 1px solid var(--s61-border);
}

.s61 .s61-accordion .wp-block-details summary {
	font-size: 16px;
}

.s61 .s61-accordion .wp-block-details ul {
	margin-bottom: 0;
}

.s61 .s61-accordion .wp-block-details li + li {
	margin-top: 4px;
}

/* Ομαλό άνοιγμα όπου υποστηρίζεται (Chrome/Edge 131+), αλλιώς ανοίγει αμέσως */
@supports selector(::details-content) {
	.s61 .s61-accordion {
		interpolate-size: allow-keywords;
	}

	.s61 .s61-accordion .wp-block-details::details-content {
		block-size: 0;
		overflow: hidden;
		transition: block-size 0.4s var(--s61-ease), content-visibility 0.4s allow-discrete;
	}

	.s61 .s61-accordion .wp-block-details[open]::details-content {
		block-size: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.s61 .s61-accordion .wp-block-details::details-content {
		transition: none;
	}
}

/* Τίτλος σελίδας (H1): αριστερά, με λεπτή γραμμή */
.s61 .s61-page-header {
	margin: clamp(32px, 5vw, 56px) 0 clamp(28px, 3.5vw, 48px);
}

.s61 .s61-page-title {
	display: inline-block;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 400;
	line-height: 1.15;
	margin: 0;
	padding-bottom: 0.35em;
	position: relative;
}

.s61 .s61-page-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 1px;
	background: var(--s61-text);
}

/* --------------------------------------------------------------------------
   WPForms (φόρμα επικοινωνίας και newsletter)
   -------------------------------------------------------------------------- */
.s61 .wpforms-container .wpforms-field input[type="text"],
.s61 .wpforms-container .wpforms-field input[type="email"],
.s61 .wpforms-container .wpforms-field textarea,
.s61-newsletter__form input[type="email"] {
	width: 100%;
	max-width: 100%;
	background: transparent;
	border: 1px solid #c8c8c8;
	border-radius: 0;
	padding: 12px;
	font-size: 14px;
	color: var(--s61-text);
	transition: border-color 0.2s;
}

.s61 .wpforms-container .wpforms-field input:focus,
.s61 .wpforms-container .wpforms-field textarea:focus,
.s61-newsletter__form input[type="email"]:focus {
	border-color: var(--s61-text);
	box-shadow: none;
	outline: none;
}

.s61 .wpforms-container button[type="submit"],
.s61-newsletter__form button {
	background: var(--s61-border);
	color: var(--s61-text);
	border: 0;
	border-radius: 0;
	padding: 10px 16px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, transform 0.15s var(--s61-ease);
}

.s61 .wpforms-container button[type="submit"]:hover,
.s61-newsletter__form button:hover {
	background: #d1d1d1;
	color: var(--s61-accent);
}

.s61 .wpforms-container button[type="submit"]:active,
.s61-newsletter__form button:active {
	transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   Αρχική — slider
   -------------------------------------------------------------------------- */
.s61-home {
	padding-top: clamp(8px, 2vw, 24px);
}

.s61-hero {
	position: relative;
	aspect-ratio: 1260 / 700;
	background: #e9e9e9;
	overflow: hidden;
	touch-action: pan-y;
}

.s61-hero__track,
.s61-hero__slide {
	position: absolute;
	inset: 0;
}

.s61-hero__slide {
	display: block;
	color: inherit;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s var(--s61-ease), visibility 0s linear 0.9s;
}

.s61-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.9s var(--s61-ease), visibility 0s;
	z-index: 1;
}

.s61-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.s61-hero__caption {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 8px 12px;
	background: rgba(250, 250, 250, 0.9);
	color: var(--s61-text);
	font-size: 13px;
	letter-spacing: 0.02em;
	transform: translateY(100%);
	transition: transform 0.35s var(--s61-ease);
}

.s61-hero__slide:hover .s61-hero__caption,
.s61-hero__slide:focus-visible .s61-hero__caption {
	transform: translateY(0);
}

.s61-hero__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(250, 250, 250, 0.88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--s61-accent);
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform 0.2s var(--s61-ease), color 0.2s;
}

.s61-hero__nav--prev {
	left: 16px;
}

.s61-hero__nav--next {
	right: 16px;
}

.s61-hero__nav:hover {
	color: var(--s61-accent-hover);
}

.s61-hero__nav--prev:hover {
	transform: translate(-3px, -50%);
}

.s61-hero__nav--next:hover {
	transform: translate(3px, -50%);
}

.s61-hero__dots {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: flex;
	gap: 6px;
}

.s61-hero__dots button {
	width: 22px;
	height: 3px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: background-color 0.3s, width 0.3s var(--s61-ease);
}

.s61-hero__dots button[aria-current="true"] {
	width: 34px;
	background: var(--s61-accent);
}

/* Μεγαλύτερη περιοχή κλικ για τα dots */
.s61-hero__dots button::before {
	content: "";
	position: absolute;
	inset: -10px -2px;
}

.s61-hero__dots button {
	position: relative;
}

.s61-hero__count {
	display: none;
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	margin: 0;
	padding: 4px 8px;
	background: rgba(250, 250, 250, 0.9);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--s61-text);
}

.s61-home__content {
	margin: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 96px);
}

/* --------------------------------------------------------------------------
   Portfolio grid
   -------------------------------------------------------------------------- */
.s61-portfolio {
	padding-bottom: clamp(48px, 6vw, 96px);
}

.s61-portfolio__intro {
	max-width: 70ch;
	margin: 0 0 32px;
}

.s61-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 6px 24px;
	margin: 0 0 clamp(24px, 3vw, 40px);
}

.s61-filters__btn {
	position: relative;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--s61-text);
	font-size: 15px;
	cursor: pointer;
	transition: color 0.2s;
}

.s61-filters__btn::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--s61-accent);
	transform: scaleX(0);
	transition: transform 0.3s var(--s61-ease);
}

.s61-filters__btn:hover,
.s61-filters__btn[aria-pressed="true"] {
	color: var(--s61-accent);
}

.s61-filters__btn[aria-pressed="true"]::after {
	transform: scaleX(1);
}

.s61-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(32px, 4vw, 48px) clamp(16px, 2vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.s61-card {
	margin: 0;
	text-align: center;
}

.s61-card[hidden] {
	display: none;
}

.s61-card.is-filtering-in {
	animation: s61-fade-in 0.45s var(--s61-ease) both;
}

.s61-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.s61-card__media {
	aspect-ratio: 1;
	overflow: hidden;
	background: #ececec;
}

.s61-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--s61-ease), opacity 0.3s;
}

.s61-card__link:hover .s61-card__media img {
	transform: scale(1.035);
}

.s61-card__title {
	margin: 18px 0 10px;
	font-size: 16px !important;
	font-weight: 600;
	color: var(--s61-heading);
	transition: color 0.2s;
}

.s61-card__link:hover .s61-card__title {
	color: var(--s61-accent);
}

.s61-card__excerpt {
	max-width: 46ch;
	margin: 0 auto;
	font-size: 14px;
	line-height: 1.7;
	color: var(--s61-text);
}

/* --------------------------------------------------------------------------
   Σελίδα project
   -------------------------------------------------------------------------- */
.s61-project {
	padding: clamp(24px, 3vw, 40px) 0 0;
}

.s61-project__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 2.5vw, 32px);
	align-items: start;
}

.s61-project__media {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--s61-gap);
}

.s61-project__figure {
	margin: 0;
}

.s61-project__figure a {
	display: block;
	cursor: zoom-in;
	overflow: hidden;
	background: #ececec;
}

.s61-project__figure img,
.s61-project__video {
	display: block;
	width: 100%;
	height: auto;
}

.s61-project__figure img {
	transition: opacity 0.3s, transform 0.8s var(--s61-ease);
}

.s61-project__figure a:hover img {
	opacity: 0.92;
}

.s61-project__figure figcaption {
	margin-top: 8px;
	font-size: 12px;
	color: var(--s61-muted);
}

.s61-project__sticky {
	position: sticky;
	top: var(--s61-sticky-top);
}

.s61-project__title {
	margin: 0 0 18px;
	font-size: clamp(18px, 1.5vw, 20px) !important;
	font-weight: 600;
	line-height: 1.3;
	color: var(--s61-heading);
}

.s61-project__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px 24px;
	margin: 0 0 24px;
	padding: 14px 0;
	border-top: 1px solid var(--s61-border);
	border-bottom: 1px solid var(--s61-border);
	font-size: 13px;
}

.s61-project__meta dt {
	color: var(--s61-muted);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.s61-project__meta dd {
	margin: 2px 0 0;
}

.s61-project__content {
	font-size: 15px !important;
}

.s61-project__content p {
	margin: 0 0 1.2em;
}

.s61-project__content p:has(> strong:only-child) {
	margin-top: 1.8em;
}

.s61-project__nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	margin-top: clamp(48px, 6vw, 80px);
	margin-bottom: clamp(48px, 6vw, 80px);
	padding-top: 24px;
	border-top: 1px solid var(--s61-border);
}

.s61-project__nav a {
	color: inherit;
	text-decoration: none;
}

.s61-project__nav-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.s61-project__nav-link--next {
	text-align: right;
}

.s61-project__nav-label {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--s61-muted);
}

.s61-project__nav-title {
	font-size: 15px;
	font-weight: 600;
	transition: color 0.2s;
}

.s61-project__nav-link:hover .s61-project__nav-title,
.s61-project__nav-all:hover {
	color: var(--s61-accent);
}

.s61-project__nav-all {
	font-size: 13px;
	transition: color 0.2s;
}

/* --------------------------------------------------------------------------
   Footer + newsletter
   -------------------------------------------------------------------------- */
.s61-footer {
	background: var(--s61-footer-bg);
	padding: clamp(32px, 4vw, 40px) 0 24px;
	font-size: 13px;
	text-align: center;
}

.s61-footer a {
	color: var(--s61-text);
	text-decoration: none;
	transition: color 0.2s;
}

.s61-footer a:hover {
	color: var(--s61-accent);
}

.s61-newsletter__text {
	margin: 0 auto 16px;
	color: var(--s61-muted);
	font-size: 14px;
	max-width: 60ch;
}

.s61-newsletter .wpforms-container,
.s61-newsletter__form {
	max-width: 280px;
	margin: 0 auto !important;
}

.s61-newsletter__form {
	display: grid;
	justify-items: center;
	gap: 12px;
}

.s61-newsletter .wpforms-field-label,
.s61-newsletter .wpforms-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.s61-newsletter .wpforms-submit-container {
	text-align: center;
}

.s61-footer__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
	gap: 16px;
	margin: 32px 0 24px;
}

.s61-footer ul,
.s61-footer li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.s61-footer li::marker {
	content: none;
}

.s61-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.s61-social {
	display: flex;
	justify-content: center;
	gap: 17px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.s61-social a {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	color: #222;
}

.s61-social svg {
	width: auto;
	height: 14px;
}

.s61-footer__copy {
	margin: 0;
	font-size: 11px;
	color: var(--s61-muted);
}

.s61-admin-hint {
	font-size: 12px;
	color: var(--s61-accent);
}

/* Popup newsletter (μη-modal, κάτω δεξιά όπως πριν) */
.s61-popup {
	position: fixed;
	inset: auto 24px 24px auto;
	z-index: 9999;
	width: min(340px, calc(100vw - 32px));
	margin: 0;
	padding: 28px 26px 26px;
	border: 2px solid var(--s61-text);
	background: var(--s61-white);
	color: var(--s61-text);
	font-size: 14px;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.4s var(--s61-ease), transform 0.4s var(--s61-ease), display 0.4s allow-discrete, overlay 0.4s allow-discrete;
}

.s61-popup[open] {
	opacity: 1;
	transform: none;
}

@starting-style {
	.s61-popup[open] {
		opacity: 0;
		transform: translateY(16px);
	}
}

.s61-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--s61-text);
	cursor: pointer;
}

.s61-popup__close:hover {
	color: var(--s61-accent);
}

.s61-popup__text {
	margin: 0 28px 16px 0;
	line-height: 1.4;
}

.s61-popup .s61-newsletter__form,
.s61-popup .wpforms-container {
	max-width: none;
	justify-items: start;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.s61-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	background: rgba(24, 22, 22, 0.94);
	opacity: 0;
	transition: opacity 0.3s var(--s61-ease);
	touch-action: pan-y;
}

.s61-lightbox.is-open {
	opacity: 1;
}

/* Κλειστό lightbox: πραγματικά κρυφό. Αλλιώς το display:grid νικάει το [hidden]
   και ένα αόρατο overlay σκεπάζει τη σελίδα (δεν ανοίγει δεύτερη φωτογραφία). */
.s61-lightbox[hidden],
.s61-lightbox button[hidden] {
	display: none;
}

.s61-lightbox:not(.is-open) {
	pointer-events: none;
}

.s61-lightbox__img {
	max-width: 92vw;
	max-height: 86vh;
	width: auto;
	height: auto;
	object-fit: contain;
	transform: scale(0.98);
	transition: transform 0.4s var(--s61-ease), opacity 0.25s;
	user-select: none;
}

.s61-lightbox.is-open .s61-lightbox__img {
	transform: none;
}

.s61-lightbox__img.is-loading {
	opacity: 0;
}

.s61-lightbox button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s, color 0.2s;
}

.s61-lightbox button:hover {
	opacity: 1;
	color: var(--s61-accent);
}

.s61-lightbox__close {
	top: 12px;
	right: 12px;
}

.s61-lightbox__prev {
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.s61-lightbox__next {
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.s61-lightbox__count {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.75);
	font-size: 12px;
	letter-spacing: 0.08em;
}

html.s61-no-scroll {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Reveal animation (μόνο με JS, σέβεται το reduced motion)
   -------------------------------------------------------------------------- */
.s61-js .s61-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s var(--s61-ease), transform 0.8s var(--s61-ease);
}

.s61-js .s61-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@keyframes s61-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.s61-js .s61-reveal,
	.s61-hero__slide,
	.s61-hero__img,
	.s61-card__media img,
	.s61-popup,
	.s61-lightbox,
	.s61-lightbox__img {
		transition: none !important;
		animation: none !important;
		transform: none !important;
	}
	.s61-js .s61-reveal {
		opacity: 1;
	}
}

/* --------------------------------------------------------------------------
   Block styles των νέων διατάξεων
   -------------------------------------------------------------------------- */

/* Κουμπιά */
.s61 .wp-block-button__link,
.s61 .entry-content .wp-block-button__link {
	display: inline-block;
	padding: 13px 22px;
	border: 1px solid var(--s61-text);
	border-radius: 0;
	background: var(--s61-text);
	color: var(--s61-bg);
	font-size: 15px;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--s61-ease);
	max-width: none;
}

.s61 .wp-block-button__link:hover,
.s61 .entry-content .wp-block-button__link:hover {
	background: var(--s61-accent);
	border-color: var(--s61-accent);
	color: #fff;
}

.s61 .wp-block-button__link:active {
	transform: scale(0.98);
}

.s61 .is-style-outline .wp-block-button__link,
.s61 .entry-content .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--s61-text);
}

.s61 .is-style-outline .wp-block-button__link:hover,
.s61 .entry-content .is-style-outline .wp-block-button__link:hover {
	background: transparent;
	border-color: var(--s61-accent);
	color: var(--s61-accent);
}

/* Wstęp (lead) */
.s61 .is-style-s61-lead {
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.4;
	max-width: 34ch;
	margin-bottom: 1.2em;
	text-wrap: balance;
}

/* Sticky στήλη (About) */
@media (min-width: 782px) {
	.s61 .wp-block-column.is-style-s61-sticky {
		position: sticky;
		top: var(--s61-sticky-top);
		align-self: flex-start;
	}
}

.s61 .s61-about,
.s61 .s61-contact {
	display: flex;
	gap: clamp(32px, 5vw, 72px) !important;
}

.s61 .s61-about > .wp-block-column,
.s61 .s61-contact > .wp-block-column {
	min-width: 0;
}

@media (max-width: 781px) {
	.s61 .s61-about,
	.s61 .s61-contact {
		flex-direction: column;
	}

	.s61 .s61-about > .wp-block-column,
	.s61 .s61-contact > .wp-block-column {
		flex-basis: auto !important;
	}
}

.s61 .s61-about .wp-block-image {
	margin: 0;
}

/* About: η πάνω γραμμή του κειμένου (ύψος κεφαλαίων) ευθυγραμμίζεται με την πάνω άκρη της φωτογραφίας */
@media (min-width: 782px) {
	.s61 .s61-about > .wp-block-column > :first-child {
		margin-top: 0;
	}

	/* Inconsolata: ascent 0.859, descent 0.19, cap height 0.623 → η κορυφή των κεφαλαίων είναι 0.5lh − 0.2885em κάτω από την αρχή της γραμμής */
	.s61 .s61-about > .wp-block-column > :is(p, h2):first-child {
		margin-top: calc(0.2885em - 0.5lh);
	}

	@supports (text-box: trim-start cap alphabetic) {
		.s61 .s61-about > .wp-block-column > :is(p, h2):first-child {
			margin-top: 0;
			text-box: trim-start cap alphabetic;
		}
	}
}

/* Oś czasu */
.s61 .is-style-s61-timeline {
	list-style: none;
	padding: 0;
	margin: 1.4em 0 0;
	border-top: 1px solid var(--s61-border);
}

.s61 .is-style-s61-timeline li {
	position: relative;
	max-width: none;
	padding: 14px 0 14px 126px;
	border-bottom: 1px solid var(--s61-border);
}

.s61 .is-style-s61-timeline li > strong:first-child {
	position: absolute;
	left: 0;
	top: 14px;
	color: var(--s61-accent);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.s61 .is-style-s61-timeline .s61-tl-name {
	display: block;
	margin-bottom: 2px;
}

/* Services: siatka i karty */
.s61 .is-style-s61-grid {
	margin: clamp(32px, 4vw, 48px) 0 clamp(56px, 7vw, 96px);
}

/* Το WordPress (χωρίς theme.json) τυλίγει τα blocks σε .wp-block-group__inner-container */
.s61 .is-style-s61-grid:not(:has(> .wp-block-group__inner-container)),
.s61 .is-style-s61-grid > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 40px);
}

.s61 .is-style-s61-card {
	padding-top: 18px;
	border-top: 1px solid var(--s61-text);
}

.s61 .is-style-s61-card h2,
.s61 .is-style-s61-card h3 {
	margin: 0 0 14px;
	font-size: 18px;
}

.s61 .is-style-s61-card ul {
	margin: 0;
	padding-left: 1.1em;
	font-size: 15px;
}

.s61 .is-style-s61-card li + li {
	margin-top: 6px;
}

.s61 .is-style-s61-number {
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: 0.08em;
	color: var(--s61-accent);
}

/* Punkty w kolumnach */
.s61 .is-style-s61-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px clamp(20px, 3vw, 40px);
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
}

.s61 .is-style-s61-points li {
	max-width: none;
	padding-top: 14px;
	border-top: 1px solid var(--s61-border);
	font-size: 15px;
}

.s61 .is-style-s61-points li > strong:first-child {
	display: block;
	margin-bottom: 4px;
}

/* CTA */
.s61 .is-style-s61-cta {
	margin: clamp(56px, 7vw, 96px) 0 0;
	padding: clamp(28px, 4vw, 48px);
	background: var(--s61-footer-bg);
}

.s61 .is-style-s61-cta h2 {
	margin: 0 0 10px;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 400;
}

.s61 .is-style-s61-cta p {
	margin: 0 0 22px;
}

/* Contact */
.s61 .s61-contact {
	align-items: stretch !important;
	gap: clamp(32px, 4vw, 56px) !important;
}

.s61 .is-style-s61-email {
	margin: 1em 0 1.4em;
	font-size: clamp(20px, 2.2vw, 28px);
	line-height: 1.2;
}

.s61 .is-style-s61-email a {
	text-decoration: none !important;
	border-bottom: 1px solid currentColor;
}

.s61 .s61-contact .wpforms-container {
	margin: 0 0 24px !important;
}

.s61 .wp-block-image.is-style-s61-fill {
	height: 100%;
	margin: 0;
}

.s61 .wp-block-image.is-style-s61-fill img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
}

/* Duży cytat */
.s61 .wp-block-quote.is-style-s61-large {
	margin: clamp(40px, 5vw, 72px) 0 0;
	padding: 0 0 0 clamp(20px, 3vw, 40px);
	border-left: 2px solid var(--s61-accent);
}

.s61 .wp-block-quote.is-style-s61-large p {
	max-width: 40ch;
	font-size: clamp(22px, 2.6vw, 34px);
	font-style: italic;
	line-height: 1.35;
	margin: 0 0 14px;
}

.s61 .wp-block-quote.is-style-s61-large cite {
	font-size: 14px;
	font-style: normal;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--s61-muted);
}

/* Selected projects */
.s61-featured {
	padding-bottom: clamp(56px, 7vw, 96px);
}

.s61-featured__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--s61-border);
}

.s61-featured__title {
	margin: 0;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 400;
}

.s61-featured__all {
	font-size: 15px;
	text-decoration: none;
	transition: color 0.2s;
}

.s61-featured__all:hover {
	color: var(--s61-accent);
}

.s61-home__content {
	margin-bottom: clamp(48px, 6vw, 80px);
}

/* Αρχική: κείμενο σε όλο το πλάτος, όπως στο παλιό site */
.s61 .s61-home__content p {
	max-width: none;
}

@media (max-width: 999px) {
	.s61 .is-style-s61-grid:not(:has(> .wp-block-group__inner-container)),
	.s61 .is-style-s61-grid > .wp-block-group__inner-container,
	.s61 .is-style-s61-points {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 689px) {
	.s61 .is-style-s61-grid:not(:has(> .wp-block-group__inner-container)),
	.s61 .is-style-s61-grid > .wp-block-group__inner-container,
	.s61 .is-style-s61-points {
		grid-template-columns: minmax(0, 1fr);
	}

	.s61 .is-style-s61-timeline li {
		padding-left: 0;
		padding-top: 36px;
	}

	.s61 .wp-block-image.is-style-s61-fill img {
		min-height: 0;
		height: auto;
	}
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 999px) {
	:root {
		--s61-sticky-top: 0;
	}

	.s61-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.s61-project__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Όπως πριν: στο κινητό πρώτα το κείμενο, μετά οι εικόνες */
	.s61-project__text {
		order: -1;
	}

	.s61-project__sticky {
		position: static;
	}
}

@media (max-width: 689px) {
	.s61 .entry-content,
	.s61-project__content {
		font-size: 15px !important;
	}

	.s61-hero {
		aspect-ratio: 4 / 3;
	}

	.s61-hero__caption {
		transform: none;
		font-size: 12px;
	}

	.s61-hero__nav {
		width: 40px;
		height: 40px;
	}

	.s61-hero__nav--prev {
		left: 8px;
	}

	.s61-hero__nav--next {
		right: 8px;
	}

	/* Στο κινητό: μετρητής αντί για dots (17 slides δεν χωράνε) */
	.s61-hero__dots {
		display: none;
	}

	.s61-hero__count {
		display: block;
	}

	.s61-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.s61-card__excerpt {
		font-size: 14px;
	}

	.s61-footer__row {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.s61-project__nav {
		grid-template-columns: 1fr 1fr;
	}

	.s61-project__nav-all {
		grid-column: 1 / -1;
		grid-row: 2;
		text-align: center;
	}

	.s61-popup {
		inset: auto 16px 16px 16px;
		width: auto;
	}
}

/* --------------------------------------------------------------------------
   Journal (λίστα άρθρων)
   -------------------------------------------------------------------------- */
.s61-journal {
	padding-bottom: clamp(48px, 6vw, 96px);
}

.s61-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.s61-post-card {
	background: var(--s61-white);
	border: 1px solid #ececec;
	transition: box-shadow 0.35s var(--s61-ease), transform 0.35s var(--s61-ease);
}

.s61-post-card:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
	transform: translateY(-2px);
}

.s61-post-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.s61-post-card__media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f1f1f1;
}

.s61-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.s61-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 18px 20px;
}

.s61-post-card__title {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.35;
	transition: color 0.2s;
	overflow-wrap: anywhere;
}

.s61-post-card__link:hover .s61-post-card__title {
	color: var(--s61-accent);
}

.s61-post-card__excerpt {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--s61-muted);
}

.s61-post-card__meta {
	display: flex;
	gap: 8px;
	margin: auto 0 0;
	font-size: 12px;
	color: var(--s61-muted);
}

.s61-pagination {
	margin-top: 40px;
	text-align: center;
}

.s61-pagination .nav-links {
	display: inline-flex;
	gap: 6px;
}

.s61-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s;
}

.s61-pagination .page-numbers.current,
.s61-pagination a.page-numbers:hover {
	background: var(--s61-border);
	color: var(--s61-accent);
}

.s61-empty {
	text-align: center;
}

/* --------------------------------------------------------------------------
   Άρθρο
   -------------------------------------------------------------------------- */
.s61-single__inner {
	max-width: 820px;
	padding: clamp(24px, 4vw, 48px) 0 0;
}

.s61-single__header {
	margin-bottom: 32px;
	text-align: center;
}

.s61-single__date {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--s61-muted);
}

.s61-single__title {
	font-size: clamp(22px, 2.6vw, 30px);
	overflow-wrap: anywhere;
}

.s61-single__content .wp-block-image {
	margin: 32px 0;
}

/* --------------------------------------------------------------------------
   Σελίδες, 404
   -------------------------------------------------------------------------- */
.s61-page {
	padding: 0 0 clamp(48px, 6vw, 96px);
}

.s61-404 {
	padding-bottom: 96px;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Header & λίστες σε tablet / κινητό
   -------------------------------------------------------------------------- */
@media (max-width: 999px) {
	.s61-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	:root {
		--s61-header-h: 92px;
	}

	.s61-logo__img,
	.s61-header.is-scrolled .s61-logo__img {
		width: 64px;
		transform: none;
	}

	.s61-header.is-scrolled .s61-header__inner {
		height: 76px;
	}

	.s61-burger {
		display: block;
	}

	/* Χωρίς backdrop-filter: αλλιώς το fixed μενού κλειδώνει μέσα στον header */
	.s61-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: var(--s61-bg);
	}

	.s61-nav {
		position: fixed;
		inset: 0;
		z-index: 101;
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--s61-bg);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s var(--s61-ease), visibility 0s linear 0.35s;
	}

	.s61-nav.is-open {
		opacity: 1;
		visibility: visible;
		transition-delay: 0s;
	}

	.s61-nav__list {
		flex-direction: column;
		gap: 22px;
		text-align: center;
	}

	.s61-nav__list a {
		font-size: 24px;
	}

	.s61-nav__list > li {
		opacity: 0;
		transform: translateY(12px);
		transition: opacity 0.4s var(--s61-ease), transform 0.4s var(--s61-ease);
	}

	.s61-nav.is-open .s61-nav__list > li {
		opacity: 1;
		transform: none;
	}

	.s61-nav.is-open .s61-nav__list > li:nth-child(2) { transition-delay: 0.04s; }
	.s61-nav.is-open .s61-nav__list > li:nth-child(3) { transition-delay: 0.08s; }
	.s61-nav.is-open .s61-nav__list > li:nth-child(4) { transition-delay: 0.12s; }
	.s61-nav.is-open .s61-nav__list > li:nth-child(5) { transition-delay: 0.16s; }
	.s61-nav.is-open .s61-nav__list > li:nth-child(6) { transition-delay: 0.2s; }
	.s61-nav.is-open .s61-nav__list > li:nth-child(n+7) { transition-delay: 0.24s; }

	.s61-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: none;
		padding: 8px 0 0;
	}
}

@media (max-width: 782px) {
	.admin-bar .s61-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .s61-header {
		top: 0;
	}
}

@media (max-width: 689px) {
	.s61-posts {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.s61-nav,
	.s61-nav__list > li,
	.s61-header__inner,
	.s61-logo__img,
	.s61-post-card {
		transition: none !important;
		transform: none !important;
	}
}
