/* -------------------------------------- */
/*                  FONTS                 */
/* -------------------------------------- */
@font-face {
  font-family: "Ysabeau Infant";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/ysabeau-infant-v4-greek_latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Ysabeau Infant";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ysabeau-infant-v4-greek_latin-600.woff2") format("woff2");
}

/* -------------------------------------- */
/*              CSS VARIABLES             */
/* -------------------------------------- */
:root {
  /*  laptop: 1519px;  */
  /*  tablet: 1168px;  */
  /*  mobile: 750px;  */
  --logo-height: 5rem;
  --nav-height: 2.5rem;
  --nav-width: 71rem;
  --header-height: calc(var(--logo-height) + 2.5rem);
  --aside-width: 20rem;
  --aside-margin: max(2rem, 1vw);
  /*--aside-margin: max(2rem, calc(12vw - 9.4rem));*/
  /* aside-margin: (100*(5 - 2)/(120 - 95))vw + ((5x95 - 120x2)/(95-120))rem */
}
@media (max-width: 1519px) {
  :root {
    --header-height: calc(var(--logo-height) + var(--nav-height) + 2.5rem);
  }
}
@media (max-width: 1168px) {
  :root {
    --header-height: calc(var(--logo-height) + 1.5rem);
    --nav-width: 20rem;
  }
}

:root {
  --color-main-bg: #f7f1ea;
  --color-text: #000000;
  --color-misc: #555555;
  --color-submenu-bg: #ffffff;
  --color-submenu-hover: #f0e7de;
  --color-contact-bg: #6c4a7e;
  --color-contact-hover: #5a3d68;
  --color-contact-text: #ffffff;
  --color-main-bg1: #e8dfd6;
  --color-footer-bg: #222222;
  --color-footer-text: #cccccc;
  --color-footer-text-hover: #ffffff;
  --color-body-bg1: #e3f0e7;
  --color-body-bg2: #f1e8ec;
  --color-cta: #aaaaaa;

  --color-bg-alt: #f0e7de;
  --color-index-h2: #f7f1ea; /*#e8e2dc;*/
  --color-cta-hover: #b8aa9e;
  --color-link-hover: #447199;
  --color-submenu-shadow: rgba(0, 0, 0, 0.1);
  --color-menu-mobile-bg: #ffffff;
  --color-menu-shadow: rgba(0, 0, 0, 0.1);
}

/* -------------------------------------- */
/*              BASE STYLES               */
/* -------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  text-align: left;
}

html {
  font-family: "Ysabeau Infant";
  font-size: 16px;
  font-weight: 300;
  font-style: normal;
  font-optical-sizing: auto;
  color: var(--color-text);
  background-color: var(--color-main-bg);
  overflow-x: hidden;
  scrollbar-width: none; /* απόκρυψη scrollbar */
  -ms-overflow-style: none; /* απόκρυψη scrollbar */
}

html::-webkit-scrollbar {
  display: none; /* απόκρυψη scrollbar */
}

body {
  padding-top: var(--header-height);
}

h1 {
  text-align: center;
}

h1,
h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

hr.anakoinosi {
  clear: both;
  margin: 1rem 0;
}

a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

b {
  font-weight: 600;
}

ol,
ul {
  list-style-position: outside;
  padding-left: 2rem;
}

li {
  vertical-align: top;
}

h1 + p,
h2 + p,
h2 + ul,
p + h2,
ul + h2,
li + li,
p + ul,
p + ol,
ul + p,
ol + p,
ol + h2,
h2 + ol,
p + p {
  margin-top: 1rem;
}

p + figure,
a + a,
div.sections + div.sections {
  margin-top: 2rem;
}

blockquote {
  border-left: 0.25rem solid #ccc;
  padding-left: 0.5rem;
  color: var(--color-misc);
  font-weight: 600;
  margin: 1rem 0;
}
/* -------------------------------------- */
/*       PLUS/MINUS/UP BUTTONS            */
/* -------------------------------------- */

div.fixed-buttons {
  position: fixed !important;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1001;
  padding: 0;
  margin: 0;
}

div.fixed-buttons button {
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

div.fixed-buttons button img {
  width: 3rem;
  height: 3rem;
}

div.fixed-buttons button#scrollTopBtn {
  display: none;
}

/* -------------------------------------- */
/*                HEADER/LOGO             */
/* -------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-end;
  margin: 0;
  padding: 1rem 0;
  background-color: var(--color-main-bg);
  z-index: 1000;
}
@media (max-width: 1519px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  header div.logo {
    width: var(--nav-width);
    align-self: center;
  }
}
@media (max-width: 1168px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto;
  }
}

div.logo {
  margin: 0 1rem;
  font-size: 0;
}
@media (max-width: 1168px) {
  div.logo {
    grid-column: 1;
    justify-self: center;
    margin: 0;
  }
}

a.logo-link {
  font-size: 0;
}

img.logo-img {
  max-width: min(var(--aside-width), calc(100vw - 6rem));
}

/* -------------------------------------- */
/*            HAMBURGER MENU              */
/* -------------------------------------- */
button.hamburger {
  display: none;
}
@media (max-width: 1168px) {
  button.hamburger {
    display: initial;
    background: none;
    border: none;
    cursor: pointer;
    margin: 1rem;
    width: 2rem;
    grid-column: 2;
    justify-self: end;
  }

  button.hamburger:focus {
    outline: 0.125rem solid var(--color-link-hover);
    outline-offset: 0;
  }
}

/* -------------------------------------- */
/*           SEARCH CONTAINER             */
/* -------------------------------------- */
div#search-container {
  position: absolute;
  top: 0.5rem;
  right: 0;
  width: min(var(--aside-width), calc(100vw - 6rem));
  padding: 0;
  margin-right: calc(calc(100% - var(--aside-width) - var(--nav-width)) / 3 - 0.25rem);
  background-color: var(--color-main-bg);
}
@media (max-width: 1519px) {
  div#search-container {
    top: 3rem;
    margin-right: calc(calc(100% - var(--nav-width)) / 2 + 0rem);
  }
}
@media (max-width: 1168px) {
  div#search-container {
    top: 6rem;
    width: calc(100vw - (100vw - 100%));
    margin: 0 auto;
    padding: 0.5rem 1rem;
  }
}

#searchInput {
  width: min(var(--aside-width), calc(100vw - 6rem));
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 300;
  border: 0.0625rem solid var(--color-cta);
  border-radius: 0.5rem;
  color: var(--color-text);
  outline: none;
}
@media (max-width: 1168px) {
  #searchInput {
    background-color: white;
    width: calc(100vw - (100vw - 100%));
  }
}

#searchInput:focus {
  border-color: var(--color-link-hover);
}

#searchResults {
  width: var(--aside-width);
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-submenu-bg);
  border-radius: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1100;
  max-height: 20rem;
  overflow-y: auto;
}
@media (max-width: 1168px) {
  #searchResults {
    right: 1rem;
    width: calc(100vw - (100vw - 100%) - 2rem);
  }
}

#searchResults li a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  white-space: normal;
}

#searchResults li a:hover {
  background-color: var(--color-submenu-hover);
  border-radius: 0.5rem;
}

#searchResults .no-results {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  color: var(--color-misc);
}

div#autocomplete-ghost {
  padding-left: 0.85rem;
  padding-top: 0.475rem;
}

@media (max-width: 1168px) {
  div#autocomplete-ghost {
    padding-left: 1.9rem;
    padding-top: 0.95rem;
  }
}

/* -------------------------------------- */
/*         NAV/MENU & SUBMENU             */
/* -------------------------------------- */
nav.header-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0 1rem;
  height: var(--nav-height);
  width: var(--nav-width);
  text-align: center;
  background-color: var(--color-main-bg);
}
@media (max-width: 1168px) {
  nav.header-nav {
    background-color: white;
    height: auto;
    grid-column: 1 / span 2;
  }
}

/* Αρχικοποίηση λίστας μενού */
ul.menu {
  /* Στοχεύει και το παλιό div και το νέο ul */
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  list-style-type: none; /* Κρύβει τα bullets */
  padding-left: initial;
}
@media (max-width: 1168px) {
  ul.menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: left;
    flex-direction: column;
    gap: 1rem;
    z-index: 1011;
    background-color: white;
  }

  ul.menu.active {
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1011;
  }
}

/* Στυλ για τα li.menu-item */
li.menu-item {
  /* Στοχεύει και τα δύο */
  display: flex;
  align-items: center;
  position: relative; /* ΣΗΜΑΝΤΙΚΟ: Για το absolute submenu */
  padding: 0 1rem 0 0;
}
li.menu-item + li.menu-item {
  margin-top: initial;
}
li#item-6 {
  padding: 0;
}
@media (max-width: 1168px) {
  li.menu-item {
    padding: 0.25rem 0;
  }
}

a.menu-link,
a.submenu-link {
  display: block;
  padding: 0.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  white-space: nowrap;
  text-align: left;
}
@media (max-width: 1168px) {
  a.menu-link,
  a.submenu-link {
    font-size: 1.5rem;
    padding: 0.25rem 0;
    white-space: normal;
  }
}

a.menu-link:hover,
a.submenu-link:hover {
  background-color: var(--color-submenu-hover);
}

/* Το κουμπί toggle (μόνο για mobile) */
button.submenu-toggle {
  display: inline-block; /* Κρυφό στο desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1.25rem;
  order: -1;
  width: 2rem;
}

/* Βασικά στυλ για το .submenu */
ul.submenu {
  display: none; /* Κρυφό εξ' ορισμού */
  background-color: var(--color-submenu-bg);
  border-radius: 0.25rem;
  padding: 0.5rem 0.5rem;
  flex-direction: column;
  gap: 0;
  min-width: 15rem;
  list-style: none;
}

/* Desktop Logic (Hover & Focus)----check */
@media (min-width: 750px) {
  li.menu-item:hover > ul.submenu,
  li.menu-item:focus-within > ul.submenu {
    display: flex; /* Εμφάνιση! */
    position: absolute;
    top: 100%; /* Ακριβώς κάτω από το γονικό li */
    left: 0;
    z-index: 1012;
  }

  /* Για πλοήγηση με πληκτρολόγιο */
  .menu-item a.menu-link:focus + .submenu-toggle + .submenu {
    display: flex;
  }
}

/* Mobile Logic (Click) */
@media (max-width: 1168px) {
  /* Εμφάνιση του κουμπιού toggle */
  button.submenu-toggle {
    display: pointer;
  }

  /* Το link παίρνει λιγότερο χώρο */
  li.has-submenu > a.menu-link {
    flex-grow: 1;
  }

  /* Το .menu-item γίνεται flex-wrap */
  li.menu-item {
    flex-wrap: wrap; /* Επιτρέπει στο submenu να πάει από κάτω */
    align-items: center; /* Ευθυγράμμιση link και toggle */
  }

  /* Απλό link (όχι summary) στο mobile */
  a.menu-link {
    font-size: 1.5rem;
    padding: 0; /* Δώστε λίγο padding */
  }

  li#item-4,
  li#item-5,
  li#item-6 {
    padding-left: 2rem;
  }
  /* Το submenu στο mobile */
  ul.submenu {
    display: none; /* Κρυφό μέχρι να πατηθεί το toggle */
    position: static; /* Όχι absolute! */
    background: none;
    box-shadow: none;
    padding-left: 2rem;
    min-width: auto;
    width: 100%; /* Να πιάνει όλο το πλάτος */
    flex-basis: 100%;
  }

  /* Η κλάση που θα προσθέτει το JS */
  .submenu.submenu-open {
    display: block;
  }
}

a#item-6a {
  background-color: var(--color-contact-bg);
  color: var(--color-contact-text);
  border: none;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
}
a#item-6a:hover {
  background-color: var(--color-contact-hover);
}

/* -------------------------------------- */
/*              MAIN CONTENT              */
/* -------------------------------------- */
main {
  max-width: calc(100vw - (100vw - 100%));
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--aside-margin);
  margin: 0 var(--aside-margin);
}
@media (max-width: 1168px) {
  main {
    display: flex;
    flex-direction: column;
    column-gap: 0;
    margin: 0 1rem;
  }
}

/* -------------------------------------- */
/*                 ASIDE                  */
/* -------------------------------------- */
aside {
  grid-column: 1;
  align-self: start;
  grid-row: 1 / span 1000;
  position: sticky;
  top: var(--header-height);
  width: var(--aside-width);
  padding-bottom: 2rem;
}
@media (max-width: 1168px) {
  aside {
    position: initial;
    width: 100%;
    margin: 0 auto -1rem auto;
  }
}

aside > figure:nth-of-type(odd) {
  float: initial;
  width: var(--aside-width);
  margin: 0; 
  /*margin-top: 2rem; μονο οταν υπαρχει ανακοινωση; */
}
@media (max-width: 1168px) {
  aside > figure:nth-of-type(odd) {
    display: none;
  }
}

aside figure img {
  object-fit: cover;
}

aside figcaption {
  display: block;
  text-align: left;
  padding: 1rem;
  margin-top: 1rem;
  width: var(--aside-width);
  background-color: var(--color-main-bg1);
}

div#anakoinosi {
  text-align: center;
  padding: 1rem 1rem 2rem 1rem;
  background-color: var(--color-main-bg1);
}
@media (max-width: 1168px) {
  div#anakoinosi {
    margin: 3.125rem 0 -1rem 0;
  }
  main#extra div#anakoinosi {
    margin: 3.125rem 0 -1rem 0;
  }
}

main#extra div#anakoinosi p {
  width: calc(3.5 * var(--aside-width));
  margin: 0 auto;
}
@media (max-width: 1168px) {
  main#extra div#anakoinosi p {
    display: none;
  }
}

div#anakoinosi h3 {
  text-align: center;
  font-size: 1.5rem;
}

div#anakoinosi a {
  background-color: var(--color-contact-bg);
  color: var(--color-contact-text);
  padding: 0.5rem 1rem;
  border: none;
  font-size: 1.5rem;
}

div#anakoinosi a:hover {
  background-color: var(--color-contact-hover);
}

/* -------------------------------------- */
/*               BREADCRUMB               */
/* -------------------------------------- */
nav.breadcrumb {
  display: none; /*flex;*/
}
@media (max-width: 1168px) {
  nav.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: var(--color-main-bg1);
    font-size: 1.25rem;
    width: 100%;
    margin: 1rem auto;
    margin-top: 2.25rem;
    /** margin-top: 1rem; μονο οταν υπαρχει ανακοινωση **/
  }
  main > nav.breadcrumb:first-child {
    margin-top: 3.25rem;
  }
}

nav.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

nav.breadcrumb li {
  display: flex;
  align-items: center;
  white-space: nowrap; /* Αποτρέπει τη διάσπαση μεμονωμένων links */
  padding: 0;
}

nav.breadcrumb li + li {
  margin-top: 0;
}

/* ------------------------------------- */
/*                  BODY                 */
/* ------------------------------------- */
main > div,
main > nav {
  grid-column: 2;
}

div.body {
  margin-bottom: 2rem;
  padding: 2rem;
}
@media (max-width: 1168px) {
  div.body {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
  }
}

div.body#top {
  background-color: var(--color-main-bg1);
}

div.body#body {
  background-color: var(--color-body-bg1);
}

div.body#body > img {
  width: 30rem;
  height: auto;
  float: right;
  margin-left: 2rem;
}
@media (max-width: 1519px) {
  div.body#body > img {
    max-width: 30rem;
    width: 100%;
    height: auto;
    float: initial;
    display: block;
    margin: 0 auto 2rem;
  }
}

div.body#bottom {
  background-color: var(--color-main-bg1);
  text-align: center;
  padding-top: 1rem;
}

@media (max-width: 1168px) {
  div.body {
    padding-bottom: 2rem;
  }
}

div.body#bottom h2 {
  text-align: center;
  margin-bottom: 0;
  padding: 0;
}

div.body#bottom p {
  text-align: center;
}

div.body#bottom a {
  background-color: var(--color-contact-bg);
  color: var(--color-contact-text);
  padding: 1rem;
  border: none;
  font-size: 1.5rem;
  text-align: center;
}

div.body#bottom a:hover {
  background-color: var(--color-contact-hover);
}

/* ------------------------------------- */
/*             extra images              */
/* ------------------------------------- */

div.myspace {
  display: flex;
  flex-direction: column;
  padding: 2rem 0 0 0;
}

div.myspace:nth-of-type(odd) {
  clear: right;
  padding-left: 2rem;
}
div.myspace:nth-of-type(even) {
  clear: left;
  padding-right: 2rem;
}
@media screen and (max-width: 1519px) {
  div.myspace:nth-of-type(odd),
  div.myspace:nth-of-type(even) {
    padding: 0;
  }
}

div.myspace a {
  background-color: var(--color-cta);
  padding: 1rem;
}

div.myspace ul {
  list-style: none;
  padding: 0;
}

div.myspace ul li {
  display: flex;
  padding-bottom: 0;
  align-items: center; /* κατακόρυφο κεντράρισμα */
  gap: 0.5em; /* απόσταση εικόνας–κειμένου */
}

img.socialcontact {
  height: 2rem;
  width: 2rem;
  margin-right: 1rem;
  object-fit: contain;
}
@media (max-width: 1168px) {
  img.socialcontact {
    height: 2rem;
    width: 2rem;
    aspect-ratio: 1 / 1;
    margin-right: 0;
    margin-left: 1rem;
  }
}

figure {
  width: 30rem;
  margin: 2rem 0 0 0;
  line-height: 0;
}

figure#anakoinosi1 {
  margin: 0 auto;
  float: right;
}
@media screen and (max-width: 1519px) {
  figure#anakoinosi1 {
    float: unset;
    margin-top: -2rem;
    margin-bottom: 2rem;
  }
}

figure:nth-of-type(odd) {
  clear: right;
  float: left;
}
figure:nth-of-type(even) {
  clear: left;
  float: right;
}
@media screen and (max-width: 1519px) {
  figure:nth-of-type(odd),
  figure:nth-of-type(even) {
    float: initial;
    display: block;
    margin: 1rem auto;
    max-width: var(--aside-width);
  }
}

figure.article-figure {
  display: flex;
  float: initial;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin: 2rem auto 0 auto;
  gap: 2rem;
}

figure img {
  width: 100%;
  height: auto;
  max-height: 30rem;
  object-fit: contain;
}

figure a {
  flex: 0 1 45%;
  margin: 0 auto;
}

figcaption {
  text-align: center;
  flex-basis: 100%;
  line-height: 1.5rem;
}

/* Overlay πάνω στην εικόνα */
a.map-overlay {
  position: relative;
  bottom: 3rem;
  left: 1rem;
  margin: 0;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  white-space: nowrap;
}

/* ------------------------------------- */
/*             extra articles            */
/* ------------------------------------- */
main#extra {
  column-gap: 0;
}

main#extra div.body {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}
@media (max-width: 1168px) {
  main#extra div.body {
    padding: 1rem 1rem 2rem 1rem;
  }
}

main#extra div.body#body {
  background-color: transparent;
  padding: 0;
}

main#extra aside {
  margin-right: var(--aside-margin);
}

main#extra h2.extra {
  padding: 2rem;
  margin-bottom: 2rem;
  text-align-last: center;
  background-color: var(--color-main-bg1);
}

div.sections {
  display: grid;
  background-color: var(--color-body-bg2);
  align-items: center;
}

div.sections:nth-child(odd) {
  background-color: var(--color-body-bg1);
}

div.sections:nth-child(odd) figure,
div.sections:nth-child(even) div.myspace {
  grid-row: 1;
  grid-column: 2;
}

div.sections:nth-child(even) figure,
div.sections:nth-child(odd) div.myspace {
  grid-row: 1;
  grid-column: 1;
}

@media (max-width: 750px) {
  div.sections:nth-child(odd) figure,
  div.sections:nth-child(even) div.myspace,
  div.sections:nth-child(even) figure,
  div.sections:nth-child(odd) div.myspace {
    grid-row: unset;
    grid-column: 1;
    justify-self: center;
  }
}

div.sections.contact div,
div.sections.contact figure,
div.sections.contact div a {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

div.sections.contact div a {
  white-space: wrap;
}

@media (max-width: 750px) {
  div.sections.contact > div.myspace {
    padding-top: 1rem;
    margin: 0;
  }
}

div.sections.index {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem var(--aside-margin);
  align-items: stretch;
  background-color: transparent;
}

div.sections.index > div {
  flex: 1 1 calc((100% - 3 * var(--aside-margin)) / 4);
  display: flex;
  flex-direction: column;
  background-color: var(--color-body-bg2);
}
@media (max-width: 1519px) {
  div.sections.index > div {
    flex: 1 1 calc((100% - 1 * var(--aside-margin)) / 2);
  }
}
@media (max-width: 1168px) {
  div.sections.index > div {
    flex: 1 1 auto;
  }
}

div.sections.index > div:nth-child(even) {
  background-color: var(--color-body-bg1);
}

div.sections.index > div > p,
div.sections.index div div {
  padding: 1rem;
}

div.sections.index div figure {
  padding: 0;
}

div.sections.index > div > p {
  margin-top: auto;
}

div.sections.index > div > p > a {
  padding: 1rem;
  background-color: var(--color-cta);
}

div.sections.index > div > figure {
  width: auto;
}
@media (max-width: 1519px) {
  div.sections.index > div > figure {
    max-width: var(--aside-width);
  }
}
@media (max-width: 1168px) {
  div.sections.index > div > figure {
    max-width: calc(1.5 * var(--aside-width));
  }
}

div.sections > div.myspace {
  margin: 2rem;
  padding: 0;
}

div.sections > figure {
  margin: 2rem;
}

@media (max-width: 1168px) {
  div.sections > figure,
  div.sections > div.myspace {
    margin: 1rem 1rem 2rem 1rem;
  }
}

/*----------------------------------------------------------*/
/*                override ΜΟΝΟ όταν είναι 6                */
/*----------------------------------------------------------*/
div.sections.index#stratigikes {
  display: grid;
  grid-template-columns: calc((100% - 1 * var(--aside-margin)) / 2) calc((100% - 1 * var(--aside-margin)) / 2);
}
@media (max-width: 1168px) {
  div.sections.index#stratigikes {
    display: flex;
  }
}

div.sections.index#stratigikes > div {
  display: grid;
  grid-template-columns: auto;
}
@media (max-width: 1519px) {
  div.sections.index#stratigikes > div {
    display: flex;
  }
}

div.sections.index#stratigikes > div > figure {
  grid-column: 1;
  grid-row: 1 / span 2;
  max-width: var(--aside-width);
  align-self: center;
  margin: 1.5rem 0;
}
@media (max-width: 1168px) {
  div.sections.index#stratigikes > div > figure {
    max-width: calc(1.5 * var(--aside-width));
    margin: 2rem;
  }
}

div.sections.index#stratigikes > div > div.myspace {
  grid-row: 1;
  grid-column: 2;
  margin-top: 1.5rem;
}
@media (max-width: 1519px) {
  div.sections.index#stratigikes > div > div.myspace {
    margin-top: 0;
  }
}

div.sections.index#stratigikes > div > p {
  grid-row: 2;
  grid-column: 2;
  margin-top: auto;
  margin-bottom: 1.5rem;
}

/* 1η στήλη (θέσεις 1,3,5) */
div.sections.index#stratigikes > div:nth-child(4n + 1),
div.sections.index#stratigikes > div:nth-child(4n + 4) {
  background-color: var(--color-body-bg2);
}

div.sections.index#stratigikes > div:nth-child(4n + 2),
div.sections.index#stratigikes > div:nth-child(4n + 3) {
  background-color: var(--color-body-bg1);
}

/*----------------------------------------------------------*/
/*               override ΜΟΝΟ όταν είναι 1                 */
/*----------------------------------------------------------*/
div.sections.index#vima > div {
  flex: 1 1 calc((100% - 1 * var(--aside-margin)) / 2);
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background-color: var(--color-body-bg2);
}
@media (max-width: 1168px) {
  div.sections.index#vima > div {
    margin-top: 1rem;
    flex-direction: column-reverse;
  }
}

div.sections.index#vima > div figure {
  max-width: calc(1.5 * var(--aside-width));
  margin: 1rem;
  padding: 0;
}

div.sections.index#vima > div p {
  max-width: calc(2 * var(--aside-width));
}
@media (max-width: 1168px) {
  div.sections.index#vima > div p {
    max-width: calc(2 * var(--aside-width));
  }
}

div.sections.index#vima > div p#logiki {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (max-width: 750px) {
  div.sections.index#vima > div p#logiki {
    flex-direction: column;
  }
}

div.sections.index#vima > div a {
  white-space: nowrap;
  padding: 0;
  background-color: transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

div.sections.index#vima > div p#logiki a {
  background-color: var(--color-contact-bg);
  color: var(--color-contact-text);
  padding: 1rem;
  border: none;
  font-size: 1.5rem;
  text-align: center;
  margin: 0;
}

/* -------------------------------------- */
/*                NEWSLETTER              */
/* -------------------------------------- */
form {
  display: flex;
  flex-direction: column;
  width: fit-content;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 1168px) {
  form {
    margin: 1em 0 0 0;
    padding: 0;
  }
}

form input[type="email"] {
  padding: 0.5rem;
  width: 100%;
}
@media (max-width: 750px) {
  form input[type="email"] {
    width: 95%;
  }
}

form div label a {
  background-color: transparent;
}

form button {
  width: fit-content;
  padding: 0.6rem;
  font: inherit;
  font-weight: 600;
  background-color: var(--color-contact-bg);
  color: var(--color-contact-text);
  border: none;
  cursor: pointer;
  text-align: center;
}

form button:hover {
  background-color: var(--color-contact-hover);
}

#popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

#popup-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  z-index: 1000;
  max-width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

#popup-message.show {
  display: block;
}

#popup-message button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* -------------------------------------- */
/*                FOOTER                  */
/* -------------------------------------- */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* Ευθυγραμμίζει στην κορυφή */
  gap: var(--aside-margin);
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin: 0;
  padding: 3rem var(--aside-margin);
}

footer div {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1519px) {
  footer div {
    flex: 1 1 29rem;
  }
}

footer div h2 {
  border-bottom: 0.1rem solid var(--color-misc);
}

footer div ul {
  list-style-type: none;
  padding-left: 0;
}

footer div ul img {
  width: 1.25rem;
  height: auto;
  filter: invert(80%);
}

footer div ul li {
  font-size: 1rem;
  display: flex;
  align-items: center; /* κατακόρυφη στοίχιση */
  gap: 1rem;
}

footer div ul li a {
  color: var(--color-footer-text);
}

footer div ul li a:hover {
  color: var(--color-footer-text-hover);
}

/* ------------------------------------- */
/* REVIEWS                */
/* ------------------------------------- */

div.slideshow-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* review πάνω/μεσαίο, dots κάτω */
  width: 100%;
  position: relative;
  margin: 2rem 0;
  background-color: var(--color-bg-section2);
}

div.review {
  display: none;
  text-align: left;
  font-size: 1.25rem;
  max-width: calc(3 * var(--aside-width));
  width: auto;
  margin: 0 auto;
  padding: 1rem;
  height: auto;
}

div.review > span {
  display: block;
  text-align: center;
  width: 100%;
}

div.review p + p {
  text-align: center;
}
/* ------------------------------------- */
/* DOTS - BULLETS - INDICATORS      */
/* ------------------------------------- */

span.dot {
  height: 1rem;
  width: 1rem;
  margin: 0;
  padding: 0;
  background-color: var(--color-menu-shadow);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

span.dot.active {
  background-color: var(--color-text);
}
/* Next & previous buttons */
a.prev,
a.next {
  cursor: pointer;
  width: 2rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.25rem;
  user-select: auto;
}

div.dots {
  text-align: center;
  padding-bottom: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 3rem;
  padding: 1rem 0;
}

/* -------------------------------------- */
/*                SHADOWS                 */
/* -------------------------------------- */
nav.breadcrumb,
div.body,
a#item-6a,
aside figcaption,
div#anakoinosi,
div#anakoinosi a,
button#newsletter,
div.body#bottom a,
main#extra h2.extra,
div.myspace a,
div.sections.index > div > p > a,
div.sections.index > div,
div.sections {
  box-shadow: 0.1rem 0.1rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 1rem; /* αν θέλεις στρογγυλεμένες γωνίες */
}

main#extra div.body#body,
div.body#bottom h2,
div.sections.contact,
div.sections.contact a,
div.sections.index {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  border-radius: 0; /* αν δεν θέλεις στρογγυλεμένες γωνίες */
}

div.body#body > img,
img.logo-img,
aside img,
figure img {
  filter: drop-shadow(0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5));
  border-radius: 1rem; /* αν θέλεις στρογγυλεμένες γωνίες */
}
