* {
    box-sizing: border-box;
}

body {
    display: block;
    position: relative;
    margin: 0;
    font-family: 'EB Garamond', serif;
    color: #000000;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure {
    margin: 0;
    padding: 0;
}

p {
    font-size: 1.6em;
}

a, a.visited {
    text-decoration: none;
    color: black;
}

.bold {
    font-weight: bold;
}

.script {
    font-family: 'Carattere', sans-serif;
    font-size: 2em;
}

.header {
  position: fixed;
  top: 0;
  border-bottom: 1px solid #dddddd;
  padding: 10px;
  height: 60px;
  background-color: #ffffff;
  z-index: 1000;
  width: 100%;
}

.header .top {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
}

.logotitle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.logotitle img {
  height: 40px;
}

.logotitle .title {
  font: 1.3em 'Trykker', sans-serif;
  color: #08008a;
}

.nav-menu {
    display: block;
    width: max-content;
    list-style-type: none;
    padding: 10px 0;
    border-radius: 20px;
}

.nav-menu-icon {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 20px;
}

.nav-menu-links li {
    display: inline-block;
    margin-right: 12px;
}

.nav-menu-links li a {
    font-family: 'Montserrat', sans-serif;
    color: #000000;
    font-size: 1.1em;
    text-decoration: none;
    padding: 12px 20px;
}
.nav-menu-links li a:hover {
    text-decoration: underline;
}

.nav-menu-links-top {
  padding: 10px 0;
}

.nav-menu-links-expanded {
  margin-top: 10px;
  padding-top: 10px;
  display: none;
  border-top: 1px solid #000000;
}

.nav-menu {
  display: none;
}

.main {
    margin-bottom: 60px;
}

.home {
    background: linear-gradient(135deg, #ccccff, #ffffff, #ccccff);
    padding-top: 60px;
}

.presentation {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 100px 80px;
    max-width: 1600px;
    margin: 0 auto;
}

.presentation .left {
    flex: 1;
    margin-right: 40px;
}

.presentation-logo {
    width: 100px;
    height: 100px;
    background: url('/assets/images/sda_logo_default_transparent_x512.png') 0/100%;
}

.presentation-title {
    font-size: 5em;
    color: #08008a;
    font-family: 'Trykker', sans-serif;
}

.presentation-title .small {
    font-size: 0.5em;
    display: block;
}

.presentation-description {
    color: #000000;
    margin-top: 40px;
}

.presentation-figure {
    position: relative;
    max-height: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 20px #dddddd;
    margin: 0 auto;
}

.presentation-figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px;
    background-color: #ffffffee;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.presentation-image {
    display: block;
    max-height: 400px;
    border-radius: 20px;
    aspect-ratio: 3/2;
}

.section {
    max-width: 800px;
    padding: 80px 20px 0;
    margin: 0 auto 40px;
}

.section h2 {
    font-size: 2em;
    color: #08008a;
    margin-bottom: 40px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.about p {
    color: #000000;
    margin-bottom: 20px;
    font-family: 'EB Garamond', serif;
    text-align: center;
}

.schedule-table {
    border: 1px solid #bbbbbb;
    border-radius: 20px;
}

.schedule-row {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid #bbbbbb;
}

.divine-service {
    background: linear-gradient(135deg, #ffee97, #ff8f91);
    border-radius: 0 0 20px 20px;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.schedule-notes {
    margin-top: 10px;
    text-align: center;
}

.schedule-notes {
    display: block;
    border: 2px solid #000000;
    border-radius: 20px;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.schedule-notes:hover {
    background-color: #ffffff44;
}

.schedule-notes a {
    color: #000000;
    text-decoration: none;
}

.schedule-notes a:hover {
    text-decoration: underline;
}

.zoom-link {
    border: 2px solid #0b5cff;
}

.zoom-link a {
    color: #0b5cff;
}

.zoom-link:hover {
    background-color: #0b5cff22;
}

.location-link {
    border: 2px solid #000000;
}

.location-link a {
    color: #000000;
}

.location-address {
    font-size: 1.2em;
    color: #08008a;
    text-align: center;
}

.location-maps {
    display: block;
    margin: 20px auto;
    width: 100%;
    max-width: 900px;
}

.social-media {
  text-align: center;
}

.social-media-links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.social-media-links ul li {
  display: block;
  width: 100%;
}

.social-media-links ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #f3f3f3;
    width: 260px;
    height: 200px;
    padding: 20px;
    border-radius: 16px;
}

.social-media-links img {
  width: 120px;
  height: 120px;
}

.footer {
    padding: 60px 40px;
    background: linear-gradient(135deg, #8ad6ff, #08008a);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer-content {
    font-size: 1.4em;
    color: #ffffff;
}

.footer-content address {
    font-size: 0.8em;
    margin-top: 20px;
}

.footer-links {
    color: #ffffff;
    font-weight: bold;
    margin-left: 40px;
    margin-top: 0;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 40px;
}

.footer-links ul li {
    display: inline-block;
    margin-top: 12px;
    padding: 0 12px;
}

.footer-links a {
    color: #cfdeff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .presentation {
        padding: 40px 20px;
    }

    .social-media-links ul {
      grid-template-columns: auto;
    }

    .social-media-links ul li a {
      width: 100%;
    }

    .footer {
        padding: 0 20px;
    }

    .footer-container {
        text-align: center;
        flex-direction: column;
    }

    .footer-content {
        margin-top: 40px;
    }

    .footer-links {
        margin-left: 0;
        margin-top: 40px;
    }

    .footer-links ul {
        margin-bottom: 40px;
    }
}

@media (max-width: 575px) {
  .header .title {
    display: none;
  }
}

@media (max-width: 700px) {
    .schedule-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-info p {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 1100px) {
    .header {
        min-height: 60px;
        height: auto;
        padding: 10px 20px;
    }

    .nav-menu-icon {
        display: block;
    }

    .nav-menu-links-top {
      display: none;
    }

    .nav-menu {
      display: block;
    }

    .logotitle {
      margin-left: 0;
    }

    .nav-menu-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-menu-links.show {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu-links li {
        display: block;
        margin: 10px 0;
    }
}

@media (max-width: 1300px) {
    .presentation {
        flex-direction: column;
        text-align: center;
    }

    .presentation .left {
        margin-right: 0;
    }

    .presentation-logo {
        margin: 0 auto;
    }

    .presentation .right {
        margin-top: 40px;
    }

    .presentation-title {
        font-size: 3em;
    }

    .presentation-figure {
        width: 100%;
        max-height: 100%;
        aspect-ratio: 3/2;
    }

    .presentation-image {
        width: 100%;
        max-height: 100%;
    }
}
