/* ===== BASE ===== */
* {
    font-family: "Segoe UI", Arial, sans-serif !important;
}

body {
    margin:0;
    background:#EAF2F1;
    color:#1A1A1A;
}

/* ===== CONTAINER ===== */
.container {
    max-width:1100px;
    margin:30px auto;
    background:white;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

/* ===== HEADER ===== */
.header {
    padding:20px 30px;
    background:white;
    border-bottom:1px solid #eee;
}

.header-inner {
    display:flex;
    align-items:center;
    gap:20px;
}

.logo img {
    height:90px;
}

.header-title {
    font-size:26px;
    font-weight:600;
    color:#1F4E79;
}

.header-sub {
    font-size:14px;
    color:#555;
    margin-top:5px;
    line-height:1.4;
}

/* ===== HERO ===== */
.hero {
    background:url('https://www.oculisticaveterinaria.org/clinica_fronte.jpg') center/cover;
    height:350px;
    position:relative;
    color:white;
}
.hero::before {
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0.75) 100%
    );
}
.hero-content {
    position:relative;
    z-index:2;
}
.hero h1 {
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.hero p {
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-content {
    position:absolute;
    bottom:10px;
    left:50%;
    transform:translateX(-50%);
    text-align:center;
    width:90%;
    max-width:700px;
}

/* ===== BOTTONI ===== */
.btn {
    background:#005F73;
    color:white;
    padding:14px 30px;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
    display:inline-block;
    margin-top:30px;
}

.btn:hover {
    background:#0A9396;
}

/* ===== LAYOUT ===== */
.content {
    display:flex;
    gap:20px;
    padding:30px;
}

.main {
    width:70%;
}

.sidebar {
    width:30%;
    background:#E6F4F1;
    padding:12px;
    border-left:2px solid #009E78;
    border-radius:0 0 0 10px;
    overflow:hidden;
}

.sidebar a {
    display:block;
    padding:6px 0;
    color:#1F4E79;
    text-decoration:none;
    word-break:break-word;
 
}

.sidebar a:hover {
    text-decoration:underline;
   font-weight: bold;
}

/* ===== CLINICA ===== */
.clinic-box {
    background:#E6F4F1;
    padding:25px;
    border-radius:10px;
    margin-bottom:30px;
}

/* ===== FOOTER ===== */
.footer {
    text-align:center;
    padding:25px;
    font-size:14px;
    color:#777;
    border-top:1px solid #eee;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .container {
        margin:10px;
        border-radius:8px;
    }

    .header-inner {
        flex-direction:column;
        text-align:center;
    }

    .logo img {
        height:70px;
    }

    .header-title {
        font-size:22px;
    }

    .header-sub {
        font-size:13px;
    }

    .hero {
      
        padding:50px 15px;
    }
  .hero {
    height:220px;
    background-position: center top;
}

    .hero-content {
        bottom:20px;
    }

    .hero h1 {
        font-size:22px;
    }

    .hero p {
        font-size:15px;
    }

    .content {
        display:block;
        padding:15px;
    }

    .main,
    .sidebar {
        width:100%;
        display:block;
    }

    .sidebar {
        margin-top:20px;
        border-left:none;
        border-top:1px solid #ddd;
        padding-top:10px;
        background:#F4F9F8;
        border-radius:8px;
    }

    .btn {
        display:inline-block;
        max-width:260px;
        width:100%;
        text-align:center;
        margin:25px auto 0 auto;
    }
}
.main {
    line-height:1.7;
    font-size:16px;
}

.main h1, .main h2 {
    color:#1F4E79;
    margin-bottom:10px;
}

.main p {
    margin-bottom:15px;
}
.main, .main * {
    font-family: "Segoe UI", Arial, sans-serif !important;
}
.article-content {
    line-height:1.7;
    font-size:16px;
}

.article-content p {
    margin-bottom:15px;
}

.article-content img {
    max-width:100%;
    height:auto;
    border-radius:6px;
    margin:15px 0;
}

/* ===== NORMALIZZAZIONE CONTENUTO ARTICOLI ===== */

.article-content {
    line-height:1.7;
    font-size:16px;
    color:#1A1A1A;
}

/* PARAGRAFI */
.article-content p {
    margin-bottom:16px;
}

/* LINE BREAK SPORCHI */
.article-content br {
    line-height:1.8;
}

/* TITOLI */
.article-content h1,
.article-content h2,
.article-content h3 {
    color:#1F4E79;
    margin-top:25px;
    margin-bottom:10px;
}

/* LINK */
.article-content a {
    color:#00796B;
    text-decoration:none;
}

.article-content a:hover {
    text-decoration:underline;
}

.article-content img {
    max-width:100%;
    height:auto;
    display:block;
    margin:20px auto;
    border-radius:8px;
}

/* FONT VECCHI */
.article-content font {
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size:16px !important;
}

/* ALIGNMENT VECCHI */
.article-content [align="center"] {
    text-align:center;
}

.article-content [align="right"] {
    text-align:right;
}

/* TABELLE (se ci sono) */
.article-content table {
    width:100%;
    border-collapse:collapse;
    margin:20px 0;
}

.article-content td {
    padding:8px;
}
.article-content > * {
    margin-bottom:15px;
}

.article-content img[align="left"] {
    float:left;
    margin:10px 20px 10px 0;
    max-width:40%;
}

.article-content img[align="right"] {
    float:right;
    margin:10px 0 10px 20px;
    max-width:40%;
}

.header-inner a {
    text-decoration: none;
    color: inherit;
}
.header-title {
    color:#1F4E79;
}
.header-inner a:hover {
    opacity:0.85;
}
.header-inner a:hover .header-title {
    text-decoration: underline;
}
.header-inner a {
    display:flex;
    align-items:center;
    gap:20px;
}

.articolo-item {
    padding:20px 0;
    border-bottom:1px solid #eee;
}

.articolo-item h2 {
    margin:0;
    font-size:20px;
}

.articolo-item h2 a {
    color:#1F4E79;
    text-decoration:none;
}

.articolo-item h2 a:hover {
    text-decoration:underline;
}

.articolo-meta {
    font-size:13px;
    color:#777;
    margin-top:5px;
}

.articolo-excerpt {
    margin-top:10px;
    line-height:1.6;
}

.excerpt-inner {
    max-width:100%;
    overflow:hidden;
}

.excerpt-inner img,
.excerpt-inner table {
    max-width:100%;
}
.excerpt-inner {
    font-size:15px;
    line-height:1.6;
}
.leggi-tutto {
    display:inline-block;
    margin-top:8px;
    color:#00796B;
    text-decoration:none;
    font-weight:600;
}

.leggi-tutto:hover {
    text-decoration:underline;
}

.box-immagini {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:10px;
    margin-top:20px;
}

.box-immagini a {
    display:block;
    aspect-ratio:1 / 1; /* quadrato perfetto */
    overflow:hidden;
    border-radius:8px;
}

.box-immagini img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.3s;
}

.box-immagini a:hover img {
    transform:scale(1.1);
}
#lightbox {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

#lightbox img {
    max-width:90%;
    max-height:90%;
    border-radius:8px;
}
.gallery {
  width: 100%;
}
.gallery-nav {
    display:flex;
    justify-content:space-between;
    margin-top:15px;
}

.gallery-nav a {
    color:#00796B;
    text-decoration:none;
    font-weight:600;
}

.gallery-nav a:hover {
    text-decoration:underline;
}