/* ===========================
   FONT & RESET
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0f1a;
    color: #e5e7eb;
    line-height: 1.6;
}

/* ===========================
   COLOR PALETTE
=========================== */
:root {
    --bg-dark: #0a0f1a;
    --bg-darker: #05070d;
    --white: #ffffff;
    --green: #22c55e;
    /* --purple: #5d5dff; */
    --purple: #3f3fff;
    --purple-light: #e2e1ff;
    --purple-dark: #4b4acf;
    --gray-400: #9ca3af;
    --gray-800: #25282C;
    --blue-primary: #3b82f6;
    --violet-primary: #8b5cf6;
    --gradient-accent: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

h4, .h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

p {
    font-size: 20px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.container ul{
    list-style: none;
    font-size: 20px;
    color: var(--gray-400);
}

/* ===========================
   LAYOUT
=========================== */
.section {
    padding: 80px 0;
    position: relative;
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.text-justify{
    text-align: left;
}

.text-center{
    text-align: center;
}

a{
    text-decoration: none;
    color: var(--purple);
}

/* ===========================
   HEADER
=========================== */
.header {
    padding: 20px 0;
    background: var(--bg-darker);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.menu a {
    margin-left: 25px;
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
}

.menu a.start{
    color: var(--white);
    background-color: var(--purple);
}

.menu a.start:hover {
    background-color: var(--purple-dark);
}

.menu a:hover{
    color: var(--white);
}

/* ===========================
   HERO
=========================== */
.hero {
    background: #03265f;
   /*  background-image: url('images/hero.webp'); 
    background-size: cover;       
    background-position: center;  
    background-repeat: no-repeat; 
    background-attachment: fixed;  */
    color: white;                
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0.6); /* overlay blu-nero trasparente */
}

.hero-grid {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 40px;
    align-items: center;
    text-align: center;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
}

.hero-text{
    z-index: 0;
}

.hero-text .btn{
    margin-top: 16px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    /* transition: 0.2s ease; */
}

.btn:hover {
    opacity: 0.85;
}

/* ===========================
   GRID
=========================== */
.grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-top: 60px;
}

#servizi, #portfolio, #testimonianze{
    padding-bottom: 0px;
}

#servizi .container{
    padding-bottom: 64px;
    border-bottom: var(--gray-400) solid 1px;
}

#portfolio .container{
    border-bottom: var(--gray-400) solid 1px;
}

/* ===========================
   CARDS
=========================== */
.card {
    background: var(--bg-darker);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
    /* transition: 0.25s ease; */
}

.card:hover {
    /* transform: translateY(-4px); */
    box-shadow: 0 0 30px rgba(0,0,0,0.35);
}

.card .icon{
    width: 64px;
    margin: 0 auto;
}

#testimonianze .card{
    background-color: var(--gray-800);    
    color: var(--gray-400);
    font-size: 18px;
    text-align: left;
}

#testimonianze .cliente{
    margin-top: 32px;
    padding: 20px 0px;
    border-top: var(--gray-400) solid 1px;
    text-align: left;
    color: var(--white);
    font-weight: bold;
}

#testimonianze .cliente a{
    text-decoration: none;
    color: var(--purple);
}

#testimonianze .cliente a:hover{
    color: var(--white);
}

#testimonianze .card img{
    border-radius: 9999px;
}

#testimonianze .card svg{
    width: 20px;
    position: relative;
    margin-bottom: 30px;
    margin-left: -14px;
    top: 0;
}

#contatti, #cookie-declaration, #privacy-policy, #termini{
    margin-bottom: 64px;
}

#contatti .container{
    position: relative;
    background-color: var(--purple);
    color: var(--purple-light);
    padding: 64px;
    text-align: left;
}

#contatti .container p{
    color: var(--purple-light);
    font-size: 18px;
}

#contatti svg{
    position: absolute;
    right: 0;
    top: 0;
    pointer-events: none;
}

#working-in-progress img{
    margin-bottom: 32px;
}

/* ===========================
   PORTFOLIO ITEMS
=========================== */
.portfolio-item {
    margin-bottom: 60px;
    text-align: left;
}

.portfolio-item img {
    width: 100%;
    border-radius: 12px;
    margin-top: 15px;
}

.portfolio-item ul{
    list-style: none;
    font-family: inherit;
    font-size: 18px;
    color: var(--gray-400);
}   

.portfolio-item li{
    margin-bottom: 5px;
}

.portfolio-item svg{
    width: 15px;
    color: var(--green);
}

.portfolio-item .overtitle{
    font-family: 'Architects Daughter', cursive;
    font-size: 20px;
    color: var(--purple);
}

.portfolio-item .grid .description{
    margin: auto 0px;
}

.description.left{
    padding-right: 64px;
}

.description.right{
    padding-left: 64px;
}

/* ===========================
   FOOTER
=========================== */
.footer {
    background: var(--bg-darker);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
}

/* ===========================
   RESPONSIVE BREAKPOINTS
=========================== */

/* Tablet */
@media (max-width: 992px) {
    h1 {
        font-size: 42px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .menu a {
        margin-left: 15px;
    }

    .menu{
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .menu {
        display: none;
        /* display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px; */
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 30px;
    }

    p {
        font-size: 15px;
    }

    .btn {
        padding: 10px 22px;
    }
}
