/* variables */
:root {
    --menu-height: 80px;
    --menu-text-size: calc(var(--menu-height) * 0.23);    
    --menu-corner-radius: calc(var(--menu-height)/2);
    --menu-item-padding-h: calc(var(--menu-height)/5);
    --menu-item-padding-v: calc(var(--menu-height)/10);
    --text-size: var(--menu-text-size);
    --hexatek-theme-bg: #f47c20;
    --hexatek-theme-fg2: #c51;
    --menu-width: 90%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
    font-family: 'Lexend', 'Trebuchet MS', Arial, sans-serif;
    font-weight: 250;
    font-size: var(--text-size);
    margin: 0;
}

nav {
    font-family: Montserrat, 'Trebuchet MS', Arial, sans-serif;
    display: flex;
    align-items: center;
    background-color: var(--hexatek-theme-bg);
    padding: 0 calc(var(--menu-height) * 0.28) 0 calc(var(--menu-height) * 0.1);
    height: var(--menu-height);
    border-radius: var(--menu-corner-radius);
    font-size: var(--menu-text-size);
    width: var(--menu-width);
    margin: 0 auto;
    overflow: hidden;
}

.nav-left {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.nav-left .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 300;
    font-size: calc(var(--menu-height)*0.45);
}

.nav-left .logo img {
    height: calc(var(--menu-height) * 0.8);
    width: auto;
    display: block;
}

.nav-left .logo span {
    color: #ecf0f1;
    padding: calc(var(--menu-text-size) - 1px) var(--menu-text-size) calc(var(--menu-text-size) + 1px);
}

.nav-center {
    display: flex;
    align-items: center;
    margin: 0 0 0 auto;
    gap: var(--menu-item-padding-h);
}

.nav-right {
    display: flex;
    gap: var(--menu-item-padding-h);
    margin-left: auto;
}

nav a {
    color: white;
    text-decoration: none;
    padding: var(--menu-item-padding-v) var(--menu-item-padding-h);
    border-radius: 4px;
    transition: background-color 0.2s;
    font-weight: 600;
}

nav a.sel {
    background-color: white;
    color: var(--hexatek-theme-bg);
}

nav a.contact {
    display: block;
    border: 1px solid white;
    border-radius: var(--menu-corner-radius);
}

nav a:hover {
    background-color: #3d5166;
    color: white;
}
nav a.logo:hover {
    background: none;    
}

.logo span {
    font-family: 'Montserrat Alternates', Montserrat, 'Trebuchet MS', Arial, sans-serif;
}

.home nav {
    background-color: #0004;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


h1 {
    margin-top: 1.75em;
    margin-bottom: 0;
}

.home h1 {
    font-size: 2.5em;
    margin-top: 2em;
}
h1, h2, h3 {
    font-weight: 300;
}


.content {
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    width: 100%;
    padding: calc(var(--menu-height) / 4) 0;
    position: relative;
}

.content.home .header {
    background-image: url('/photo/homebkg.jpg');
    background-size: cover;
    background-position: center;
}

.pgsummary {
    width: var(--menu-width);
    margin: 0 auto;
    padding: 0 1ex;
}

.pgsummary .btn {
    margin-top: 5em;
    margin-bottom: 5em;
}

.home .pgsummary {
    color: white;
}

.pgbody {
    background-color: white;
    flex: 1;
}
.pgbody span {
    color: #777;
}
.bodytext {
    padding: var(--menu-text-size) calc(2 * var(--menu-height));
}

a.btn {
    display: inline-block;
    padding: 1em 2em;
    margin: 2em 0 1em 0;
    border-radius: 1em;
    text-decoration: none;
}
.home a.btn {
    color: black;
    background-color: white;
}
.home a.btn:hover {
    background-color: #0006;
    color: white;
}

.pgbody a.btn {
    margin: 0 auto;
    color: white;
    background-color: var(--hexatek-theme-bg);
}
a.btn:hover {
    background-color: #0006;
    color: white;
}

.test {
    height: 400px;
    width: 200%;
    border: 1px solid black;
    margin: 0 40px;
    background-color: yellow;
}

.btnsection {
    text-align: center;
    padding: var(--menu-corner-radius) 0 var(--menu-height);
}

footer {
    background-color: var(--hexatek-theme-bg);
    font-family: Montserrat, 'Trebuchet MS', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--menu-text-size);
    background-color: var(--hexatek-theme-bg);
    padding: 0 var(--menu-height) 0 calc(var(--menu-height) * 0.1) ;
    height: calc(1.2 * var(--menu-height));
    font-size: calc(var(--menu-text-size) * 0.7);
}

footer .pagini {
    font-size: smaller;
    font-weight: bold;
}

.f-left img {
    height: calc(var(--menu-height));
    width: auto;
    display: block;
    padding-bottom: 2px;
    flex: 1;
}

.f-left {
    align-items: center;
    margin-right: auto;
    margin-left: 2em;
}

.f-center {
    display: flex;
    flex-direction: column;
    margin-right: auto;
    margin-left: 2em;
}

.f-right {
    display: flex;
    flex-direction: column;
}
.f-right span {
    color: var(--hexatek-theme-fg2);
    font-weight: bold;
}

footer a {
    text-decoration: none;
    color: white;
}
footer a:hover {
    text-decoration: underline;
    color: #3d5166;
}

/* Hamburger button — hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown menu — hidden by default */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--hexatek-theme-bg);
    opacity: 0.95;
    border-radius: 0 0 1em 1em;
    padding: 0 var(--menu-item-padding-h) var(--menu-item-padding-h);
    gap: 4px;
    width: calc(var(--menu-width) - var(--menu-height) * 0.65);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}
.mobile-menu.open {
    display: flex;
}
.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: var(--menu-item-padding-v) var(--menu-item-padding-h);
    border-radius: 4px;
    font-family: Montserrat, 'Trebuchet MS', Arial, sans-serif;
    font-size: var(--menu-text-size);
    font-weight: 600;
}
.mobile-menu a:hover {
    background-color: #3d5166;
}
.home .mobile-menu {
    background-color: #554433f4;
}

/* ── Responsive: 780px and below ── */
@media (max-width: 780px) {

    .hamburger {
        display: block;
    }

    .nav-center,
    .nav-right {
        display: none;
    }

    nav {
        flex-wrap: wrap;
        height: calc(var(--menu-height) * 0.65);
        border-radius: calc(var(--menu-height) * 0.325);
        font-size: calc(var(--menu-text-size) * 0.85);
        padding: 0 calc(var(--menu-height) * 0.2);
    }

    .nav-left {
        height: 100%;
    }

    .nav-left .logo {
        font-size: calc(var(--menu-height) * 0.3);
    }

    .nav-left .logo img {
        height: calc(var(--menu-height) * 0.45);
    }

    .header {
        width: 100%;
        max-width: none;
    }

    .bodytext {
        padding: var(--menu-text-size) 1em;
    }

    .content {
        width: 100%;
        box-shadow: none;
    }

    footer {
        flex-direction: column;
        height: auto;
        padding: 1.5em 1em;
        text-align: center;
        gap: 1em;
    }

    .f-left {
        margin: 0 auto;
    }

    .f-center {
        margin: 0 auto;
    }

    .f-right {
        align-items: center;
    }
}

