/* Variables */
:root {
    --background-color: #000;
    --text-color: #FFF;
    --logo-background: #E91E25;
}

@font-face {
    font-family: 'Satoshi-Light';
    src: url('fonts/satoshi/Satoshi-Light.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-Light.woff') format('woff'),
        url('fonts/satoshi/Satoshi-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi-LightItalic';
    src: url('fonts/satoshi/Satoshi-LightItalic.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-LightItalic.woff') format('woff'),
        url('fonts/satoshi/Satoshi-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'Satoshi-Regular';
    src: url('fonts/satoshi/Satoshi-Regular.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-Regular.woff') format('woff'),
        url('fonts/satoshi/Satoshi-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi-Italic';
    src: url('fonts/satoshi/Satoshi-Italic.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-Italic.woff') format('woff'),
        url('fonts/satoshi/Satoshi-Italic.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'Satoshi-Medium';
    src: url('fonts/satoshi/Satoshi-Medium.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-Medium.woff') format('woff'),
        url('fonts/satoshi/Satoshi-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi-MediumItalic';
    src: url('fonts/satoshi/Satoshi-MediumItalic.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-MediumItalic.woff') format('woff'),
        url('fonts/satoshi/Satoshi-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'Satoshi-Bold';
    src: url('fonts/satoshi/Satoshi-Bold.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-Bold.woff') format('woff'),
        url('fonts/satoshi/Satoshi-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi-BoldItalic';
    src: url('fonts/satoshi/Satoshi-BoldItalic.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-BoldItalic.woff') format('woff'),
        url('fonts/satoshi/Satoshi-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: italic;
}

@font-face {
    font-family: 'Satoshi-Black';
    src: url('fonts/satoshi/Satoshi-Black.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-Black.woff') format('woff'),
        url('fonts/satoshi/Satoshi-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi-BlackItalic';
    src: url('fonts/satoshi/Satoshi-BlackItalic.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-BlackItalic.woff') format('woff'),
        url('fonts/satoshi/Satoshi-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
    font-style: italic;
}

/**
* This is a variable font
* You can control variable axes as shown below:
* font-variation-settings: wght 900.0;
*
* available axes:
'wght' (range from 300.0 to 900.0
*/
@font-face {
    font-family: 'Satoshi-Variable';
    src: url('fonts/satoshi/Satoshi-Variable.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-Variable.woff') format('woff'),
        url('fonts/satoshi/Satoshi-Variable.ttf') format('truetype');
    font-weight: 300 900;
    font-display: swap;
    font-style: normal;
}

/**
* This is a variable font
* You can control variable axes as shown below:
* font-variation-settings: wght 900.0;
*
* available axes:
'wght' (range from 300.0 to 900.0
*/
@font-face {
    font-family: 'Satoshi-VariableItalic';
    src: url('fonts/satoshi/Satoshi-VariableItalic.woff2') format('woff2'),
        url('fonts/satoshi/Satoshi-VariableItalic.woff') format('woff'),
        url('fonts/satoshi/Satoshi-VariableItalic.ttf') format('truetype');
    font-weight: 300 900;
    font-display: swap;
    font-style: italic;
}

/* RESET */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Satoshi-Regular', Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
}

h1,
h2,
h3 {
    font-family: 'Satoshi-Medium', Arial, sans-serif;
}

p {
    margin: 0 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* HEADER */
.logo-area {
    background-color: var(--logo-background);
    padding: 0.5rem 5% 0;
}

header {
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    @media screen and (min-width: 768px) {
        flex-direction: row;
        justify-content: space-between;
    }
}

nav a {
    color: #fff;
    text-decoration: none;
}

/* MAIN */
.background-carta {
    position: relative;
    z-index: 1;
    background-image: url(img/background.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.overlay {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0px;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
}

.content {
    position: relative;
    z-index: 3;
}

/* SECTIONS */
section {
    padding: 2rem 0;
    margin-bottom: 4rem;

    h2 {
        text-align: center;
        text-transform: uppercase;
        margin: 1rem 0;
        font-size: 1.5rem;
    }
}

/* HERO */
#hero {

    h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        text-align: center;
        text-transform: uppercase;

        @media screen and (min-width: 1024px) {
            font-size: 2.5rem;
        }
    }

    img {
        @media screen and (min-width: 1024px) {
            display: block;
            max-width: 900px;
            margin: 0 auto;
        }
    }
}

#territorio {
    padding: 10rem 0;

    .content {
        display: grid;
        gap: 2rem;

        @media screen and (min-width: 1024px) {
            grid-template-columns: repeat(2, 1fr);

            h2 {
                grid-column: span 2;
            }
        }
    }

    article {
        border: 1px solid #FFF;
        background-color: #111;
        padding: 2rem;
        max-width: 500px;
        margin: 2rem auto;
        text-align: justify;
    }
}

h3 {
    margin-bottom: 0.5rem;
}

#povos {

    .content {
        display: grid;
        gap: 2rem;

        img {
            border-radius: 0.5rem;
        }

        @media screen and (min-width: 768px) {
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: 9;

            h2 {
                grid-column: span 2;
                grid-row: 1;
            }

            article {
                max-width: 400px;
            }

            .medio,
            .alto {
                grid-column: 1;
            }

            .baixo,
            .leste {
                grid-column: 2;
            }

            .baixo {
                grid-row: 2/4;
            }

            .medio {
                grid-row: 3/5;
            }

            .leste {
                grid-row: 4/6;
            }

            .alto {
                grid-row: 5/7;
            }
        }

    }
}


/* EIXOS */

#eixos {
    article {
        border: 1px solid #ddd;
        display: grid;
        margin-bottom: 2rem;

        @media screen and (min-width: 768px) {
            grid-template-columns: repeat(2, 1fr);
        }

        .text-content {
            padding: 2rem 1.5rem;
        }

        h3 {
            text-transform: uppercase;
        }

        a {
            text-decoration: none;
            color: var(--logo-background);
        }
    }
}

/* INSTITUTO */

#instituto {
    article {
        display: grid;
        gap: 1rem;

        @media screen and (min-width: 768px) {
            grid-template-columns: repeat(2, 1fr);

        }

    }

}

/* FOOTER */
footer {
    border-top: 1px solid #111;
    text-align: center;
    padding: 1rem;
}

/* 📱 TABLET */
@media (min-width: 768px) {
    .regions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .regions>div {
        width: 48%;
    }
}

/* 💻 DESKTOP */
@media (min-width: 1024px) {
    .regions>div {
        width: 23%;
    }
}