/* Font e corpo */
body {
    font-family: 'Liberation Serif', Georgia, serif;
    line-height: 1.7;
    background-color: #f7f7f7; /* grigio chiaro neutro */
    color: #222;
}

/* Header */
header {
    background-color: #333333;
    color: #f0f0f0;
    padding: 20px 40px;
}
header h1 { font-size: 28px; }
nav ul { list-style: none; display: flex; gap: 20px; margin-top: 10px; }
nav a { color: #f0f0f0; text-decoration: underline; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: #004080; text-decoration: none; }

/* Sezioni */
section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px;
}
.hero h1 { font-size: 42px; margin-bottom: 15px; }
.hero p { font-size: 18px; margin-bottom: 25px; }

/* Pulsazione bottone minimal */
.btn-primary {
    background-color: #004080;
    color: #f0f0f0;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #00264d;
}

/* Features */
.features {
    display: flex;
    gap: 20px;
    margin: 50px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.feature {
    background-color: #fefefe;
    padding: 25px;
    border-radius: 8px;
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* About */
.about { padding: 60px 20px; text-align: center; }

/* Contact */
.contact { padding: 60px 20px; }
.contact form { display: flex; flex-direction: column; gap: 15px; max-width: 500px; margin: 0 auto; }
.contact input, .contact textarea, .contact button { padding: 12px; border-radius: 6px; border: 1px solid #ccc; font-size: 16px; }
.contact button {
    background-color: #004080;
    color: #f0f0f0;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.contact button:hover { background-color: #00264d; }

/* logo AIPMS */
.logo img {
    height: clamp(35px, 5vw, 60px);
    width: auto;
}

/* title and logo  */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

/* Container logo + titolo */
.logo-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo più grande ma responsivo */
.logo-title img {
    height: clamp(50px, 6vw, 90px);
    width: auto;
}

/* Titolo più visibile */
.logo-title h1 {
    font-size: clamp(28px, 3vw, 48px);
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}
/* è la classe dello stile sotto titolo */

.lead {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    max-width: 850px;
    margin: 30px auto;
    line-height: 1.5;
    letter-spacing: 1px;
    /*color: #7a1c24;*/
	color: #6b0f1a;
}

/* ===== CONTACT PAGE – CLASSIC CLEAN ===== */

.contact-premium {
    max-width: 720px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: left;
}

.contact-premium h2 {
    margin-bottom: 10px;
}

.contact-premium .lead {
    margin-bottom: 30px;
    color: #555;
    font-size: 18px;
}

/* FORM STRUCTURE */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* INPUTS */

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* FOCUS CLEAN */

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #800020; /* bordeaux elegante */
}

/* BUTTON */

.btn-primary {
    margin-top: 10px;
    padding: 12px 18px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: 0.2s ease;
}

.btn-primary:hover {
    background-color: #800020; /* richiama il logo */
}

/*.contact-premium h2 {
    border-top: 1px solid #ddd;
    padding-top: 30px;
}*/

.contact-premium .btn-primary {
  margin-top: 25px;
  display: inline-block;
}

/*registered tmark*/
.reg{
font-size:0.6em;
vertical-align:super;
}

/* Footer */
footer { margin-top: 40px; text-align: center; padding: 15px; font-size: 14px; color: #555; }

/* Responsive */
@media (max-width: 768px) {
    .features { flex-direction: column; align-items: center; }
    nav ul { flex-direction: column; gap: 10px; }
}
html {
scroll-behavior: smooth;
}