/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    background: linear-gradient(to right, #4a90e2, #67b26f);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.logo-placeholder {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Navigation Styles */
nav {
    background-color: #333;
    padding: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    background-color: #555;
}

nav a.active {
    background-color: white;
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    nav {
        padding: 0.5rem;
        flex-direction: column;
        align-items: stretch;
    }

    nav a {
        margin: 0.25rem;
        text-align: center;
        display: block;
    }

    nav a.active {
        margin: 0.25rem;
    }
}

/* home page */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}


.intro,.how-it-works {
  display: flex;
  align-items: center;      /* centra verticalmente */
  gap: 2rem;                /* spazio fra foto e testo */
  flex-wrap: wrap;          /* impila gli elementi su schermi piccoli */
  padding: 2rem 1rem;
}

.intro__media img {
  max-width: 260px;         /* dimensione controllata */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.intro__media2 img {
  max-width: 450px;         /* dimensione controllata */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.intro__text {
  flex: 1;                  /* occupa lo spazio rimanente */
  font-size: 1.1rem;
  line-height: 1.6;
}

.intro__text h2 {
  margin-top: 0;
  font-size: 2rem;
  color: #1b6ca8;           /* un tocco di colore coerente con il brand */
}
.intro__text h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  border-left: 4px solid #3498db;
  padding-left: 12px;
  margin-top: 2rem;
  background: linear-gradient(to right, #f5f9fc 0%, transparent 100%);
  padding: 8px 15px;
  border-radius: 0 4px 4px 0;
}

@media (max-width: 600px) {
  .intro, .how-it-works { flex-direction: column; }  /* immagine sopra, testo sotto su mobile */
  .intro__media img { max-width: 180px; }
  .intro__media2 img { max-width: 250px; }
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin: 3rem 0;
}

.feature-card {
	background-color: #f5f5f5;
	padding: 1.5rem;
	border-radius: 10px;
	text-align: center;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.feature-card:hover {
	transform: translateY(-5px);
}

.feature-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.how-it-works {
	background-color: #f9f9f9;
	padding: 3rem 0;
}



/* Project Phases Styles */
.phase-container {
    padding: 2rem 0;
}

.phase-card {
    height: 100%;
    min-height: 250px;
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #4472C4, #3a5fa3);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.last-phase {
    max-width: 800px;
    margin: 0 auto;
    min-height: 200px;
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.phase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.phase-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    color: #4472C4;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.phase-card h2 {
    margin: 1.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    padding-left: 45px;
}

.highlight {
    color: #FFD700;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.phase-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}


/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #4472C4;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #3a5fa3;
}

.contact-info {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    color: #4472C4;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Previene lo zoom su iOS */
    }

    .contact-method {
        margin-bottom: 1.25rem;
    }

    .contact-method h3 {
        font-size: 1rem;
    }
}

/* login Styles */
.login-btn {
	background-color: #4a90e2;
	color: white;
	padding: 1rem 2rem;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	width: 100%;
	transition: background-color 0.3s;
}
.login-container {
	background: #f5f5f5;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 400px;
 }
 
 .container_login {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
 
.login-btn:hover {
	background-color: #357abd;
}

.forgot-password {
	text-align: center;
	margin-top: 1rem;
}

.forgot-password a {
	color: #4a90e2;
	text-decoration: none;
}

.forgot-password a:hover {
	text-decoration: underline;
}
.error-message {
	color: #dc3545;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	padding: 0.5rem;
	border-radius: 5px;
	margin-bottom: 1rem;
	display: none;
}

/* Footer Styles */
.theme-toggle {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	background-color: #4a90e2;
	color: white;
	cursor: pointer;
}

footer {
	background-color: #2a65ae;
	color: white;
	padding: 2rem;
	text-align: center;
}
footer img {
 width: 40%
}

footer a {
	color: white;
	text-decoration: none;
}

.dark-theme {
	background-color: #222;
	color: #fff;
}

.dark-theme .feature-card {
	background-color: #333;
	color: #fff;
}

.dark-theme .how-it-works {
	background-color: #2a2a2a;
}

/* Responsive Design */
@media (max-width: 767px) {
    .phase-container {
        padding: 1rem;
    }
    
    .phase-card {
        min-height: auto;
    }
    
    .last-phase {
        max-width: 100%;
    }
    
    nav a {
        display: inline-block;
        margin: 0.5rem;
    }
    
    header {
        padding: 1rem;
    }
    
    .logo-placeholder {
        width: 80px;
        height: 80px;
    }
} 